|
|
Getting the PartyNumber of an incoming call
Hi there,
uhm I've a problem.
I've written an application that shows the user which number is
calling.
It works perfectly on a normal telephone system. But if I try to get
the number from a PBX ( Private Branch Exchange ) (its the system on
which you need to dial a "0" (in germany) before dialing the proper
number) I get no response from CONNECT_IND_CALLINGPARTYNUMBER. Just
don't know why.
Here the code in question:
LISTEN_REQ_HEADER(&CMSG, Appl_Id, 0, 1);
LISTEN_REQ_INFOMASK(&CMSG) = 0xffff;
LISTEN_REQ_CIPMASK(&CMSG) = ALL_SERVICES;
CAPI_PUT_CMSG(&CMSG);
QVariant str = CAPI_GET_CMSG(&CMSG,Appl_Id);
if (str != "4356" && i == true) {
QVariant var = (char *)CONNECT_IND_CALLINGPARTYNUMBER; //should hold
the calling number
....
Thnaks for your held in advance.
Greetings: Stefan Reinhardt
|
|
0
|
|
|
|
Reply
|
sr198 (1)
|
6/12/2009 6:20:50 PM |
|
> uhm I've a problem.
> I've written an application that shows the user which number is
> calling.
>
> It works perfectly on a normal telephone system. But if I try to get
> the number from a PBX ( Private Branch Exchange ) (its the system on
> which you need to dial a "0" (in germany) before dialing the proper
> number) I get no response from CONNECT_IND_CALLINGPARTYNUMBER. Just
> don't know why.
Hey,
maybe you're PBX only provides empty Calling/Called party numbers?
Anyway, I am having troubles to understand you're code.
You generate a LISTEN_REQ with CIPMASK = ALL_SERVICES. Allright, then
you send your message to CAPI.
After that you call CAPI_GET_CMSG and check if the return value is !=
4356. I guess with 4356 you mean "0x1104 Queue is empty"
So, if the Queue is not empty and i is TRUE (what is i?) you assume that
str contains a CAPI_CONNECT_IND message (wich also would contain the
calling party number). But how do you know that? It could be any other
message, like LISTEN_REQ_CONF or DISCONNECT_IND.
So my guess is you are expecting a message (CAPI_CONNECT_IND) but you're
not getting it but another message. And because of that you are not able
to get the calling party number :-)
Regards, Michael
|
|
0
|
|
|
|
Reply
|
Michael
|
6/12/2009 10:38:30 PM
|
|
Hi,
maybe you get the called number / dialed digits via overlap receiving
(look at the INFO_IND) which contains the number or
a part of the number (extension)...
If the calling number is restricted, the struct will not show any
number otherwise the struct contains the whole number
(the calling one is the easiest one ;-) )...
I also advise to take a look at the second calling party number
(network provided) ...
Kind regards
Christian
|
|
0
|
|
|
|
Reply
|
CHW
|
6/13/2009 9:59:53 AM
|
|
Hi,
thanks to you both for your fast answer.
To Michael Hampicke:
The PBX provides recieving and transmitting the calling number (the
demo32 from the adk works)
some words to the code:
"i" is a bool that makes sure that the correct gui is loaded (for
debugging it's always true)
And yes, 4356 proofs if the queue isn't empty. Hereabout is to say
that I'm workin' with the capi adk the first time and it was the first
idea I had to catch a signal.
Anyway, if str turns to "0" and It's because I'm or somone else is
calling, the CallingPartyNumber stays empty on a PBX.
So from here on I just haven't got a clue how to go on.
To Christian:
Many thanks for your EMail. I'll write you back soon.
Further on: How is it possible to get the calling number from
INFO_IND, and how do I get the second calling party number (both are
named callingpartynumber) ?
Regards: Stefan Reinhardt
|
|
0
|
|
|
|
Reply
|
sr
|
6/13/2009 2:44:37 PM
|
|
|
3 Replies
191 Views
(page loaded in 0.057 seconds)
Similiar Articles: comp.dcom.isdn.capiGetting the PartyNumber of an incoming call 3 135 (6/12/2009 6:20:50 PM) Hi there, uhm I've a problem. I've written an application that shows the user which number is ... Caller ID on gateway FXO ports not working... - comp.dcom.sys ...I may not have quite specified, but I'm talking about incoming caller id, not outgoing. I'm trying to get the caller id of the incoming call and pass it to the end ... How to silence dial tone? - comp.dcom.xdsl... TAP PLUGIN - comp.databases.filemaker... boards - Play and record wave files - Send and receive DTMF tones (touch tone button sounds) - Get caller ID of incoming calls ... ISDN Outgoing calls ! - comp.dcom.sys.ciscoAt this tage if I make an incoming call, ISDN line comes up and I can start making outgoing calls succcessfully. Can anyone please advice how to fix this issue ? Controlling CPU utilization of a process - comp.unix.solaris ...There has to be a buffer of 10% cpu always avaliable for incoming calls or higher priority processes. I also understand that the overload protection is not doing what is ... [Telecom] Does ADSL interfere with cordless phone? - comp.dcom ...I used the filters shipped with the DSL device, but I'm getting lousy sound on my ... Compliance with EMC guidelines (EN55024) makes internal filtering on the incoming ... Using C and Assembly code: 64Bit Calling convention - comp.lang ...If your local variables were stored in me- mory, an incoming call overwrote the parameters of the currently running 'instance' with those passed by the new call. how to get mac address of network interfaces - comp.unix.solaris ...... call the co-class function by reading its address from vtable of COM exposed interface methods. ... Local MAC address connected to incoming 'recvfrom' UDP ... How to get ... Extract Program change number formula - comp.music.midi... as be controlled by midi input. I need help with getting ... that takes much time and it is not allowed to call ... allocate new memory. > > You may only append incoming ... simultaneous connections in solaris 10 x86 - comp.unix.solaris ...... not the command i'm looking for, as I'm now getting 286 ... view which is associated with a queue for incoming ... the system will queue on your behalf before you call ... Incoming calls not getting to Phone - unallocated? - Cisco Support ...Incoming calls not getting to Phone - unallocated? ... Calling Party Number i = 0x0083, '3174400' ... Yes my Css and Partitions are ok as I can call ... Problems incoming calls - Cisco Support CommunityWe are having problems with incoming calls, when someone makes a call from the ... seems that you are getting this from the TELCO Called Party Number i = 0xA1, '9xxxxxxxxx' 7/12/2012 3:45:28 PM
|
|
|
|
|
|
|
|
|