cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

562
Views
0
Helpful
3
Replies
Highlighted
Beginner

CUBE SIP - Route call based on "To" and "From"

Hello,

We have a SIP trunk to Telco (NTT Japan) and when testing inbound calls we had this INVITE message:

INVITE sip:a030c544e5f@118.177.54.111:5060 SIP/2.0
i: 526ceef50afe20697d0c1b7fd71398a9@ntt-east.ne.jp
l: 141
c: application/sdp
f: <sip:65641912346@ntt-east.ne.jp>;tag=725895751
CSeq: 1 INVITE
t: <sip:0357841234@ntt-east.ne.jp>
v: SIP/2.0/UDP 118.177.222.1:5060;branch=z9hG4bK16dda06f83580a716b3eb6487cd8d34c83f0de986282426f85c178a741a47d90
m: <sip:118.177.222.1:5060>
Max-Forwards: 69
Allow: INVITE,ACK,BYE,CANCEL,PRACK,UPDATE
k: 100rel,timer
Min-SE: 300
x: 300;refresher=uac
P-Asserted-Identity: "6564191234"<sip:6564191234@ntt-east.ne.jp>,"6564191234"<tel:6564191234;phone-context=ntt-east.ne.jp>
Privacy: none
Record-Route: <sip:118.177.222.1:5060;lr>
P-Called-Party-ID: <sip:0357841234@ntt-east.ne.jp>

v=0
o=- 3672467593 0 IN IP4 118.177.128.111
s=-
c=IN IP4 118.177.128.111
t=0 0
m=audio 37310 RTP/AVP 0
a=rtpmap:0 PCMU/8000
a=ptime:20

As you can see the Request URI doesnot contain Called number (or it is translated to some other values), the Called number is in "To" and calling number is in "From". But the voice gateway tried to route the call based on the "called number" extracted from Request URI, which is a030c544e5f@118.177.54.111:5060 and this is not routable.

*May 17 09:53:38.672: //-1/10527976AD4D/CCAPI/cc_api_display_ie_subfields:
   cc_api_call_setup_ind_common:
   cisco-username=6564191234
   ----- ccCallInfo IE subfields -----
   cisco-ani=sip:6564191234@ntt-east.ne.jp
   cisco-anitype=0
   cisco-aniplan=0
   cisco-anipi=0
   cisco-anisi=0
   dest=sip:a030c544e5f@118.177.54.111:5060
   cisco-desttype=0
   cisco-destplan=0
   cisco-rdie=FFFFFFFF
   cisco-rdn=
   cisco-rdntype=0
   cisco-rdnplan=0
   cisco-rdnpi=-1
   cisco-rdnsi=-1
   cisco-redirectreason=-1   fwd_final_type =0
   final_redirectNumber =
   hunt_group_timeout =0

Can someone teach me how to route calls based on the field "To" or "P-Called-Party-ID" but not the called number extracted from URI?

Thanks,

Hoanghiep

3 REPLIES 3
Hall of Fame Master

You need to contact the

You need to contact the provider to find out why they are saying "garbage" in the invite instead of called digits which is what they need to send per SIP RFCs.

Engager

Hi Hoanghiep,

Hi Hoanghiep,

There were couple of discussions in the past with same question but none of them got answered whether CUBE has respective capability or not.

Hi Chris,

I have observed with many SIP trunk provider and seen different implementation. Most of the providers send called party number in Request-URI which works good with Cisco environment but there are others send called party number in To field and in that case, Request-URI may contain random characters (specific to internal SIP stack) or main pilot number. Some service providers have capability to entertain the request and change the implementation to send called party number in Request-URI but not with all.

Many other third party IP PBX manufactures (Matrix, Grandstream etc) already have been implemented with to fetch the called party number either from Request-URI or To field.

- Vivek   

Beginner

Hi Vivek,

Hi Vivek,

Cisco has command "call-route p-called-party-id" under voice service voip - sip configuration. I tried this but it did not help.

thanks,

Hoanghiep

CreatePlease to create content
Content for Community-Ad
August's Community Spotlight Awards