No Calling Number with SIP Direct call (SoftIP)

rated by 0 users
This post has 2 Replies | 2 Followers

Not Ranked
Posts 2
Points 25
draouime Posted: 03-09-2009 3:19 PM

Hi,

I use diva SoftIP-SIP with the Diva .Net API (C#).

When I make a SIP call from my softphone directly to the Diva (no registrar server,  PC-To-PC SIP Call), I get a null calling Number. The called Number is OK but not the calling number !!

I have created a phone number mapping corresponding to my softphone.

here is a SDK log :

[03/08/2009 03:22:03:312] [SDK] [DBH] [07b0] [I:00000002] Incoming call object created, LineDevice=1
[03/08/2009 03:22:03:312] [SDK] [DBG] [07b0] [C:00000002] Signalling-Event EventConnectInd: state change StateD_Idle->StateD_Collecting
[03/08/2009 03:22:03:312] [SDK] [DBH] [07b0] [C:00000002] ActionProcessIncomingCall: Called Number=123, Type=0, Ident=0
[03/08/2009 03:22:03:312] [SDK] [DBH] [07b0] [C:00000002] ActionProcessIncomingCall: Calling Number=, Type=0, Ident=0, P=0, S=0
[03/08/2009 03:22:03:312] [SDK] [DBH] [07b0] [I:00000801] MANUFACTURER_IND
[03/08/2009 03:22:03:312] [SDK] [DBG] [07b0] [C:00000002] Signalling-Event EventManufacturerInd: in state StateD_Collecting
[03/08/2009 03:22:03:312] [SDK] [DBH] [07b0] [C:00000002] Calling party name: '"345"'
[03/08/2009 03:22:03:312] [SDK] [DBH] [07b0] [I:00000801] MANUFACTURER_RESP

[03/08/2009 03:22:03:312] [SDK] [DBH] [07b0] [I:00000801] INFO_IND, Info=0x0070 / ''
[03/08/2009 03:22:03:312] [SDK] [DBG] [07b0] [C:00000002] Signalling-Event EventInfoInd: in state StateD_Collecting
[03/08/2009 03:22:03:312] [SDK] [DBH] [07b0] [C:00000002] ActionProcessInfo, InfoNumber=0x0070
[03/08/2009 03:22:03:312] [SDK] [DBH] [07b0] [I:00000801] INFO_RESP
[03/08/2009 03:22:03:312] [SDK] [DBH] [07b0] [I:00000801] INFO_IND, Info=0x0018 / ''
[03/08/2009 03:22:03:312] [SDK] [DBG] [07b0] [C:00000002] Signalling-Event EventInfoInd: in state StateD_Collecting
[03/08/2009 03:22:03:312] [SDK] [DBH] [07b0] [C:00000002] ActionProcessInfo, InfoNumber=0x0018
[03/08/2009 03:22:03:312] [SDK] [DBH] [07b0] [C:00000002] AssignedBchannel=1, DataChannel=1
[03/08/2009 03:22:03:312] [SDK] [DBH] [07b0] [I:00000801] INFO_RESP

I use the CallingName property instead of calling number, but Sometimes, I don't get the MANUFACTURER_IND infos.

I use DSAPI.GetCallInfo()  to retrieve information ('I've also tryied GetCallProperties(), not working better..)  .

Can someone tell me how to get that caller id, or the SIP address of the caller ? or the phone number from the mapping ?

Is it possible to retrieve infos from the SIP frame, like From, To, Contact, ... ?

 

 

 

thx.

Top 10 Contributor
Posts 2,014
Points 22,501
Dialogic Employee

Have you checked with Wireshark to see if the caller's number is actually presented in the SIP message?

  • | Post Points: 20
Not Ranked
Posts 2
Points 25

I've catched the INVITE frame with wireshark. It seems that the caller's number doesn't appear in the SIP address (just in the name "678"). But I've got the IP address. How can I get that address with the SDK ? And in my configuration, I don't manage to retrieve caller name : Soft IP SIP 2.2, Diva Board 4BRI-8PCI V2. (While, on an other PC with no hard board, just SoftIP, I can get the name!)

INVITE sip:123@10.0.12.73:5060 SIP/2.0
Via: SIP/2.0/UDP 10.1.22.25;branch=z9hG4bK0a01161900000bf349b639e100003a2a00000b35;rport
From: "678" <sip:10.1.22.25>;tag=746e8963390
To: <sip:123@10.0.12.73:5060>
Contact: <sip:10.1.22.25>
Call-ID: 253FA13BED394C4E96C34370EE5E11120x0a011619
CSeq: 1 INVITE
Max-Forwards: 70
User-Agent: SJphone/1.65.377a (SJ Labs)
Content-Length: 359
Content-Type: application/sdp
Supported: replaces,norefersub,timer

  • | Post Points: 5
Page 1 of 1 (3 items) | RSS