adk avm

adk avm

Post by christoba » Fri, 31 Oct 2003 03:39:52


Hi, I'm working on a ISDN Application, that should find out
CallingPartynumber and CalledPartynumber. So I started working with
the avm adk and built a new interact function, which is used to listen
at the capi and that handles incoming messages. In this case the
application waits for an incoming call.
Until up to now everything works. The problem is, when someone calls,
I just get the callingpartynumber. The calledpartynumber has a default
value.

I added to the function

"Handle_Indication()"
"SetCalledPartyNumberStruct (Connection,
CONNECT_IND_CALLEDPARTYNUMBER(CMSG))"

and tried to print the CalledPartyNumber with

"printf("\nCalledPartyNumber: %s", GetCalledPartyNumber(Connection));"

but it seems like there is no entry in the structure for
CalledPartynumber of the message.

Can anybody help me with that. Is it possible that my isdn controller
doesn't work right?

Thanx in advance
 
 
 

adk avm

Post by Hans-Jgen » Fri, 31 Oct 2003 20:26:37

Christoph,

Did you check, if CONNECT_IND_CALLEDPARTYNUMBER(CMSG) is filled with the
right contents, when you receive the CONNECT_IND message ?

HansJuergen

 
 
 

adk avm

Post by christoba » Sat, 01 Nov 2003 00:58:18


I checked the values CONNECT_IND_CALLEDPARTYNUMBER(CMSG) and
CONNECT_IND_CALLINGPARTYNUMBER(CMSG) which are pointer to the structur
of the incoming message CONNECT_IND. The values of
CONNECT_IND_CALLEDPARTYNUMBER(CMSG) is
CONNECT_IND_CALLINGPARTYNUMBER(CMSG) + 1 in my case: 1365870 and
1365871.
That seems correct, isn't it?
 
 
 

adk avm

Post by christoba » Sat, 01 Nov 2003 01:02:06

Hi Hans Jgen,
I checked the values CONNECT_IND_CALLEDPARTYNUMBER(CMSG) and
CONNECT_IND_CALLINGPARTYNUMBER(CMSG) which are pointer to the structur
of the incoming message CONNECT_IND. The values of
CONNECT_IND_CALLEDPARTYNUMBER(CMSG) is
CONNECT_IND_CALLINGPARTYNUMBER(CMSG) + 1 in my case: 1365870 and
1365871.
That seems correct, isn't it?
 
 
 

adk avm

Post by Hans-Jgen » Sun, 02 Nov 2003 00:03:23


"Christoph" < XXXX@XXXXX.COM > schrieb im Newsbeitrag


no, for sure that's a problem:

both are pointers to the corresponding cstructs, there you're right:

#define CONNECT_IND_CALLEDPARTYNUMBER(x) ((x)->CalledPartyNumber)
#define CONNECT_IND_CALLINGPARTYNUMBER(x) ((x)->CallingPartyNumber)

if CMSG is the adress(!) of a _csmg structure

e.g.
_cmsg _ThisIsMyCmsgStructure;
_cmsg *CMSG = &_ThisIsMyCmsgStrucutre;

they must(!) differ by sizeof(cstruct), which usually is 4.

Anyway, the value of course is not important. You have to look at the
contents, where the pointers are referring to. But in your case you have to
look, why there are some strange values...

HansJuergen