cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3251
Views
0
Helpful
36
Replies

ITSP-SIP-CUBE-SIP-CUCM

ashraf1891
Level 1
Level 1

Inbound call not connecting:

calling number 559903358

called number +966114817200 (translated to 7200)

________________________________________

below is my dial peers:

dial-peer voice 3 voip
description LOCAL-CALLS-1
translation-profile outgoing OUT
destination-pattern .T
session protocol sipv2
session target dns:fmc.stc.com.sa
session transport udp
voice-class codec 1
voice-class sip early-offer forced
voice-class sip bind control source-interface GigabitEthernet0/1
voice-class sip bind media source-interface GigabitEthernet0/1
dtmf-relay rtp-nte sip-notify
no vad
!
dial-peer voice 1 voip
description TO-CUCM-PUB
destination-pattern ^[1-9]...
session protocol sipv2
session target ipv4:172.30.2.10
session transport udp
voice-class codec 1
voice-class sip bind control source-interface GigabitEthernet0/0
voice-class sip bind media source-interface GigabitEthernet0/0
dtmf-relay rtp-nte sip-notify
!
dial-peer voice 2 voip
description TO-CUCM-SUB
preference 1
destination-pattern ^[1-9]...
session protocol sipv2
session target ipv4:172.30.2.11
session transport udp
voice-class codec 1
voice-class sip bind control source-interface GigabitEthernet0/0
voice-class sip bind media source-interface GigabitEthernet0/0
dtmf-relay rtp-nte sip-notify
!
dial-peer voice 4 voip
translation-profile incoming IN
session protocol sipv2
session transport udp
incoming called-number +966.T
voice-class codec 1
voice-class sip bind control source-interface GigabitEthernet0/1
voice-class sip bind media source-interface GigabitEthernet0/1
dtmf-relay rtp-nte sip-notify
no vad

_______________________________________
attached is  the Debug CCSIP Messages

 

36 Replies 36

What you are writing just doesn’t make sense as if the problem was in what the service provider sent in their invite it would affect inbound calls and you’re saying that outbound now are working after they changed something. This doesn’t add up IMHO. Possibly, but just speculating, what could have been altered by the service provider is what they send in their return response for authentication for outbound calls.

On the missing response for invites sent to CM from the gateway, could it be that there is something in between these two entities, like a firewall? Assuming the obvious, have you verified that you have connectivity from the gateway to the CM nodes and the other way around?



Response Signature


The ITSP has introduce SIP Registrar Server recently before the were providing peer trunk service

INVITE sip:+9661110138992@10.170.32.146:5060 SIP/2.0

if you look in the above invite message from the debug you can see the invite message is to +9661110138992 which is the user name for the CUBE to register, whenever I called to any number from the SIP range always the invite message is coming to this number

rest of the debug because I already translated this number in the IN profile for testing that's why this number was translated to 7200

for the other comments who was asking about run on all active node, yes it is enabled

and also the DTMF setting has been updated in the trunk 

now waiting for update from the ITSP 

FYI SIP registration is used in the inbound direction, not in the outbound. For that Authentication is used. For detailed information on this please have a look at this great post. Handle CUBE Registration & Authentication Like a Boss 

On the topic of the value in the Invite, that is actually a phone number in the +E.164 format, but it can be that it is also what is used as the user name for the SIP circuit. That said it might be good for you to know that CM uses information in the request URI, ie the very first line in the invite to route the call to the right recipient. So if you do get something goofy there from the SP, like a name, you would need to modify that with a SIP profile to copy data from another field, likely the To field into the request URI to let CM route the call.

In the post I referenced there is a link to this site - Where UC pros belong. These are some really good gems on this site that likely should have valuable information to you.



Response Signature


That is a good Idea, I will try to modify the Invite with the field in the TO, if you can post sample configuration for the profile it will be great

Did you look at the page I linked to? It has an example for how to do this.



Response Signature


Tried the below to copy from TO header to INVITE, but it did not work:

voice class sip-copylist 2
sip-header To
!
dial-peer voice 3 voip

ICOMING FROM ITSP
voice-class sip copy-list 2
!
voice class sip-profiles 2
request INVITE peer-header sip TO copy "sip:(.*)@" u01
request INVITE sip-header SIP-Req-URI modify ".*@(.*)" "INVITE sip:\u01@\1"
!
dial-peer voice 3 voip

ICOMING FROM ITSP
voice-class sip profiles 2

_________________________________

also the below did not work:

voice class sip-copylist 2
sip-header To
!
dial-peer voice 3 voip

ICOMING FROM ITSP
voice-class sip copy-list 2
!
voice class sip-profiles 2
request INVITE peer-header sip TO copy "sip:(.*)@" u01
request INVITE sip-header SIP-Req-URI modify ".*@(.*)" "INVITE sip:\u01@\1"
!
dial-peer voice 4 voip

OUTGOING TO CUCM
voice-class sip profiles 2

 

Did you see my response from 2023-02-02 10:36 PM?



Response Signature


Yes, this message is no more appearing now , it is confirmed now the issue is the SIP-Req-UR header, because when I translate what it coming in this header (+9661110138992) the call going through, and whenever calling to any number from the range the INVITE message is coming to the user name only

I’m sorry, but I’m not understanding what you mean. Could you please elaborate?

About the message, I still see it.

3DF47342-8002-4DB0-92D6-60E9700C34C4.jpeg



Response Signature


I meant this one ( “SIP: Trying to parse unsupported attribute at media level”,) 

issue is now very clear as mentioned in the the previous comment, INVITE message does not come with the called number, I need to manipulate the invite message to copy TO field to INVITE field, tried the mentioned profiles but it did not work

As I wrote I’m not sure that this is your problem. Based on the shared debug output it doesn’t seem like that would be the problem. The linked to post, where the error you referenced in your last response, is discussed does not at all cover any problem with the Req-URI. It sounds like you may be out of your league on this topic. Maybe you should seek assistance from a reputable professional consultant service that specialises in Unifed Communication.



Response Signature


Thanks for your suggestion I will sure do

the ITSP now is working on this as all clients has been affected by the same problem (the INVITE message not been sent to the called number) please check the below invite message:

Received:
INVITE sip:+9661110138927@x.x.x.x:5060 SIP/2.0
Via: SIP/2.0/UDP 10.141.40.20:5060;branch=z9hG4bKhcqg62209grceu2gons0.1
Call-ID: tfccd0feu2cjfuojuc3d320jo0vf227u@10.200.10.17
From: "559903358"<sip:559903358@x.x.x.x;transport=udp;user=phone>;tag=jdthggj3
To: <sip:+966118381920@x.x.x.x;transport=udp;user=phone>
CSeq: 1 INVITE
Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,INFO,PRACK,NOTIFY,MESSAGE,UPDATE
Contact: <sip:559903358@10.141.40.20:5060;Dpt=edaa-200;transport=udp>
Max-Forwards: 25
Supported: timer,100rel,histinfo
Session-Expires: 1800
Min-SE: 600
P-Asserted-Identity: <tel:+966559903358>
Privacy: none
P-Early-Media: supported
P-Called-Party-ID: <tel:+966118381920>
Content-Length: 418
Content-Type: application/sdp

and below is the SIP-UA configuration:

sip-ua
credentials number +9661110138927 username +9661110138927@fmc.stc.com.sa password 6 QgdHKH\INPUVIbB\gGQX_AJLgAEgTNNKJ realm fmc.stc.com.sa
authentication username +9661110138927@fmc.stc.com.sa password 6 WBYWMROcU\cWUaZNEa_WKTGUE_D^QhBVS realm fmc.stc.com.sa
retry invite 3
retry register 3
timers register 150
registrar dns:fmc.stc.com.sa expires 3600
connection-reuse

once again many thanks for your kind comments

It seems like there is an issue with getting the message across here. If you look at the invite that you send to CM you can see that the Req-URI does contain the expected value.

*Feb  1 06:15:55.663: //3134/B8A192E78CFD/SIP/Msg/ccsipDisplayMsg:

Sent:

INVITE sip:7200@172.30.2.10:5060 SIP/2.0

Via: SIP/2.0/UDP 172.30.2.9:5060;branch=z9hG4bK7D2577

Remote-Party-ID: "559903358" <sip:559903358@172.30.2.9>;party=calling;screen=no;privacy=off

From: "559903358" <sip:559903358@fmc.stc.com.sa;user=phone>;tag=3A27D84-2293

To: <sip:7200@172.30.2.10>

Date: Wed, 01 Feb 2023 06:15:55 GMT

Call-ID: B8A2CB37-A12E11ED-8D03CFAA-CF3075FD@172.30.2.9

Supported: timer,resource-priority,replaces,sdp-anat

Require: 100rel

Min-SE:  1800

Cisco-Guid: 3097596647-2704151021-2365444010-3476059645

User-Agent: Cisco-SIPGateway/IOS-15.5.1.T2

Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER

CSeq: 101 INVITE

Timestamp: 1675232155

Contact: <sip:559903358@172.30.2.9:5060>

Call-Info: <sip:172.30.2.9:5060>;method="NOTIFY;Event=telephone-event;Duration=2000"

Expires: 180

Allow-Events: telephone-event

Max-Forwards: 24

Session-Expires:  1800

Content-Type: application/sdp

Content-Disposition: session;handling=required

Content-Length: 337

 

v=0

o=CiscoSystemsSIP-GW-UserAgent 7838 2562 IN IP4 172.30.2.9

s=SIP Call

c=IN IP4 172.30.2.9

t=0 0

m=audio 16604 RTP/AVP 8 0 18 101 19

c=IN IP4 172.30.2.9

a=rtpmap:8 PCMA/8000

a=rtpmap:0 PCMU/8000

a=rtpmap:18 G729/8000

a=fmtp:18 annexb=yes

a=rtpmap:101 telephone-event/8000

a=fmtp:101 0-15

a=rtpmap:19 CN/8000

a=ptime:20


What you’re receiving from the service provider is not really related to this as you translate the called number to match what you have as a directory number in CM.



Response Signature


Hello Ashraf,

Are you able to resolve outgoing, incoming call issue? I am also facing the same issue now.

 

Please share your config and debug ccsip messages and debug ccapi inout, if you have SIP-to-SIP connection.