cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4525
Views
100
Helpful
31
Replies

cube and cucm intigration with sip trunk from isp

sandysp4u
Level 1
Level 1

Hello Friends, 

I am trying to setup cube router i tried everything but somehow it's not working can I get little help from helpful people around here. 

my cube ip is 172.16.8.1

my cucm ip is 172.16.20.11

ISP gateway ip 100.64.77.89
ISP SBC ip100.64.216.4

 

gateway and sbc is reachable to me from my router 

 

bellow is my configuration 

 

voice service voip
ip address trusted list
ipv4 100.64.77.89
ipv4 100.64.216.4
ipv4 172.16.20.11
ipv4 172.16.20.9
mode border-element license capacity 20
media bulk-stats
allow-connections sip to sip sip
header-passing
error-passthru
early-offer forced
midcall-signaling passthru
voice class uri 1000 sip
host 172.16.20.11
voice class codec 1
codec preference 1 g711ulaw
codec preference 2 g711alaw
voice translation-rule 100
rule 1 /.*/ /826/
voice translation-profile TP100
translate called 100
dial-peer voice 200 voip
description ***Cube to Cucm ***
translation-profile incoming TP100
session protocol sipv2
incoming called-number 02632350100
codec transparent
no vad
dial-peer voice 100 voip
description ***Cube to Cucm826 ***
destination-pattern 826
session protocol sipv2
session target ipv4:172.16.20.11
codec transparent

 

I am also attaching my cucm config ss of trunk and dial pattern 

What else i need to do to make this sip work ?????

Thanks in advance 

 

31 Replies 31

Are you only allowed to make national calls in India via the circuit?

If so you could use the route pattern in CM to drop the 0 (zero) and prefix the called number with +91 en-route to the gateway. Then on the gateway you can use +91T as the destination pattern on the outbound dial peer. As an option you could use 0T as outlined before and use a voice translation rule to rewrite the called number to start with +91 and drop the 0 (zero).

You'll likely also need to modify your calling number information sent to the service provider to fit their requirement. You can do that in a few different ways. Either with a voice translation rule in the gateway or by modifying it in CM via the options that are present on the route pattern.



Response Signature


No i am unable to make any outgoing calls through sip i can only receive calls from out to in. I will try working out your solution. 

I am really thankful for the time you are giving to my problem. I haven't done much work in voice and that also in cisco voice never. I did some work in freepbx but its very easy to configure. 

i will try to implement your solution and will let you know. 

Keep trying.You will resolve it .Try the Roger's solution.It will work.

i will be waiting to resd good news from you

These is the settings in my cm attached file, please correct me if i am wrong. If i use discard digit pre dot then i don't get dial tone if user dial 0 and then the phone number so i have removed the discard digit settings and had only kept prefix add settings. 

 

Merry Christmas to you and your family Sir and to entire cisco community 

are you sure the discard pre dot prevents users to get get dial tone ? can you uncheck the "provide outside dial tone?

 

have you tried the otpion of using voice translation rule to remove 0 and +91?

 

Dial tone has no correlation with discard digits, that’s controlled by Provide Outside Dial Tone setting on the route pattern.

With the setting that you have in the screenshots you would prefix +91 in front of the zero and that would result in an invalid number as there are very few countries that has a zero as part of the phone number after the country code. The only example of this that comes to mind is Italy, where they keep the leading zero in the area code for inbound international calls.

My question about what calls you should be able to make was possibly somewhat unclear. What I meant are you only allowed by the service provider, once you get the calls to work, to make calls to external numbers in India (+91)?



Response Signature


yes sir i am allowed to make calls to anyone anywhere by my service provider the only thing is i am unable to make it work. 

Okay, thanks for clarification. Then you’re destination pattern should be +T to allow calls to any country and you’ll need to format the sent called number for calls from your CM to the gateway to match this destination pattern.

Can you please share the output from these two debugs for an outbound call?

  • debug voip ccapi inout 
  • debug ccsip message 


Response Signature


sir please find the debug output bellow also i have changed some configurations and was trying to resolve the issue. please find the changed config bellow 

 

DungriRouter#show run | sec voice
voice service voip
ip address trusted list
ipv4 100.64.77.89
ipv4 100.64.216.4
ipv4 172.16.20.11
ipv4 172.16.20.9
mode border-element license capacity 20
media bulk-stats
allow-connections sip to sip
sip
header-passing
error-passthru
early-offer forced
midcall-signaling passthru
voice class uri 1000 sip
host 172.16.20.11
voice class codec 1
codec preference 1 g711ulaw
codec preference 2 g711alaw
voice translation-rule 100
rule 1 /.*/ /826/
voice translation-rule 101
rule 1 /\(.*\)101$/ /894/
voice translation-rule 200
voice translation-profile 101
translate called 101
voice translation-profile TP100
translate called 100
dial-peer voice 200 voip
description ***ISP to CUCM826***
translation-profile incoming TP100
session protocol sipv2
incoming called-number +912632350100
voice-class sip bind control source-interface GigabitEthernet0/1/1
voice-class sip bind media source-interface GigabitEthernet0/1/1
dtmf-relay rtp-nte
codec g711ulaw
no vad
dial-peer voice 100 voip
description ***Cube to Cucm826 ***
destination-pattern 826
session protocol sipv2
session target ipv4:172.16.20.11
voice-class sip bind control source-interface GigabitEthernet0/0/0
voice-class sip bind media source-interface GigabitEthernet0/0/0
codec g711ulaw
no vad
dial-peer voice 300 voip
description ***Outbound Cube to JIO ****
destination-pattern +91
session protocol sipv2
session target ipv4:100.64.216.4
voice-class sip bind control source-interface GigabitEthernet0/1/1
voice-class sip bind media source-interface GigabitEthernet0/1/1
dtmf-relay rtp-nte
codec g711ulaw
no vad
dial-peer voice 400 voip
description ****Inbound Cucm to Cube ****
session protocol sipv2
voice-class sip bind control source-interface GigabitEthernet0/0/0
voice-class sip bind media source-interface GigabitEthernet0/0/0
dtmf-relay rtp-nte
codec g711ulaw
no vad
dial-peer voice 101 voip
description ***Cube to Cucm894***
destination-pattern 894
session protocol sipv2
session target ipv4:172.16.20.11
voice-class sip bind control source-interface GigabitEthernet0/0/0
voice-class sip bind media source-interface GigabitEthernet0/0/0
codec g711ulaw
no vad
dial-peer voice 201 voip
description ***JIO to CUCM894***
translation-profile incoming 101
session protocol sipv2
incoming called-number +912632350101
voice-class sip bind control source-interface GigabitEthernet0/1/1
voice-class sip bind media source-interface GigabitEthernet0/1/1
codec g711ulaw
no vad

 

--------------------------------

DungriRouter#debug voip ccapi inout
voip ccapi inout debugging is on
DungriRouter#term moni
DungriRouter#
Dec 27 13:27:20.648: //-1/B673B1800000/CCAPI/cc_api_display_ie_subfields:
cc_api_call_setup_ind_common:
cisco-username=806
----- ccCallInfo IE subfields -----
cisco-ani=sip:806@172.16.20.11
cisco-anitype=0
cisco-aniplan=0
cisco-anipi=0
cisco-anisi=1
dest=sip:+919979436496@172.16.8.1:5060
cisco-desttype=0
cisco-destplan=0
cisco-rdie=FFFFFFFFFFFFFFFF
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

Dec 27 13:27:20.649: //-1/B673B1800000/CCAPI/cc_api_call_setup_ind_common:
Interface=0x7F6C01EF3190, Call Info(
Calling Number=sip:806@172.16.20.11,(Calling Name=)(TON=Unknown, NPI=Unknown, Screening=User, Passed, Presentation=Allowed),
Called Number=sip:+919979436496@172.16.8.1:5060(TON=Unknown, NPI=Unknown),
Calling Translated=FALSE, Subscriber Type Str=Unknown, FinalDestinationFlag=TRUE,
Incoming Dial-peer=0, Progress Indication=NULL(0), Calling IE Present=TRUE,
Source Trkgrp Route Label=, Target Trkgrp Route Label=, CLID Transparent=FALSE), Call Id=214
Dec 27 13:27:20.649: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:

Dec 27 13:27:20.649: :cc_get_feature_vsa malloc success
Dec 27 13:27:20.649: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:

Dec 27 13:27:20.649: cc_get_feature_vsa count is 1
Dec 27 13:27:20.649: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:

Dec 27 13:27:20.649: :FEATURE_VSA attributes are: feature_name:0,feature_time:140101955578444,feature_id:214
Dec 27 13:27:20.649: //214/B673B1800000/CCAPI/cc_api_call_setup_ind_common:
Set Up Event Sent;
Call Info(Calling Number=(TON=Unknown, NPI=Unknown, Screening=User, Passed, Presentation=Allowed),
Called Number=(TON=Unknown, NPI=Unknown))
Dec 27 13:27:20.650: //214/B673B1800000/CCAPI/cc_process_call_setup_ind:
Event=0x7F6C07708CE0
Dec 27 13:27:20.650: //-1/xxxxxxxxxxxx/CCAPI/cc_setupind_match_search:
Try with the demoted called number +919979436496
Dec 27 13:27:20.651: //214/B673B1800000/CCAPI/ccCallSetContext:
Context=0x7F6C0B4936D8
Dec 27 13:27:20.651: //214/B673B1800000/CCAPI/cc_process_call_setup_ind:
>>>>CCAPI handed cid 214 with tag 0 to app "_ManagedAppProcess_Default"
Dec 27 13:27:20.652: //214/B673B1800000/CCAPI/ccCallProceeding:
Progress Indication=NULL(0)
Dec 27 13:27:20.652: //-1/xxxxxxxxxxxx/CCAPI/ccGetMemPoolFromContainer:
mempool not found from usrContainer(7F6C0646BE80)
Dec 27 13:27:20.652: //-1/xxxxxxxxxxxx/CCAPI/ccCreateMemPoolInContainer:
Mempool(7F6C0571CFA8) created in usrContainer(7F6C0646BE80)
Dec 27 13:27:20.652: //214/B673B1800000/CCAPI/ccCallSetupRequest:
Destination=, Calling IE Present=TRUE, Mode=0,
Outgoing Dial-peer=300, Params=0x7F6C0B496578, Progress Indication=NULL(0)
Dec 27 13:27:20.652: //214/B673B1800000/CCAPI/ccCheckClipClir:
In: Calling Number=sip:806@172.16.20.11(TON=Unknown, NPI=Unknown, Screening=User, Passed, Presentation=Allowed)
Dec 27 13:27:20.653: //214/B673B1800000/CCAPI/ccCheckClipClir:
Out: Calling Number=sip:806@172.16.20.11(TON=Unknown, NPI=Unknown, Screening=User, Passed, Presentation=Allowed)
Dec 27 13:27:20.653: //214/B673B1800000/CCAPI/ccCallSetupRequest:
Destination Pattern=+91, Called Number=+919979436496, Digit Strip=FALSE
Dec 27 13:27:20.653: //214/B673B1800000/CCAPI/ccCallSetupRequest:
Calling Number=sip:806@172.16.20.11(TON=Unknown, NPI=Unknown, Screening=User, Passed, Presentation=Allowed),
Called Number=+919979436496(TON=Unknown, NPI=Unknown),
Redirect Number=, Display Info=
Account Number=806, Final Destination Flag=TRUE,
Guid=B673B180-0001-0000-0000-45CD0B1410AC, Outgoing Dial-peer=300
Dec 27 13:27:20.653: //214/B673B1800000/CCAPI/cc_api_display_ie_subfields:
ccCallSetupRequest:
cisco-username=806
----- ccCallInfo IE subfields -----
cisco-ani=sip:806@172.16.20.11
cisco-anitype=0
cisco-aniplan=0
cisco-anipi=0
cisco-anisi=1
dest=+919979436496
cisco-desttype=0
cisco-destplan=0
cisco-rdie=FFFFFFFFFFFFFFFF
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

Dec 27 13:27:20.653: //214/B673B1800000/CCAPI/ccIFCallSetupRequestPrivate:
Interface=0x7F6C01EF3190, Interface Type=3, Destination=, Mode=0x0,
Call Params(Calling Number=sip:806@172.16.20.11,(Calling Name=)(TON=Unknown, NPI=Unknown, Screening=User, Passed, Presentation=Allowed),
Called Number=+919979436496(TON=Unknown, NPI=Unknown), Calling Translated=FALSE,
Subscriber Type Str=Unknown, FinalDestinationFlag=TRUE, Outgoing Dial-peer=300, Call Count On=FALSE,
Source Trkgrp Route Label=, Target Trkgrp Route Label=, tg_label_flag=0, Application Call Id=)
Dec 27 13:27:20.653: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:

Dec 27 13:27:20.653: :cc_get_feature_vsa malloc success
Dec 27 13:27:20.653: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:

Dec 27 13:27:20.653: cc_get_feature_vsa count is 2
Dec 27 13:27:20.653: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:

Dec 27 13:27:20.654: :FEATURE_VSA attributes are: feature_name:0,feature_time:140101955578668,feature_id:215
Dec 27 13:27:20.654: //215/B673B1800000/CCAPI/ccIFCallSetupRequestPrivate:
SPI Call Setup Request Is Success; Interface Type=3, FlowMode=1
Dec 27 13:27:20.654: //215/B673B1800000/CCAPI/ccCallSetContext:
Context=0x7F6C0B4964F8
Dec 27 13:27:20.654: //214/B673B1800000/CCAPI/ccSaveDialpeerTag:
Outgoing Dial-peer=300
Dec 27 13:27:20.655: //215/B673B1800000/CCAPI/cc_api_call_proceeding:
Interface=0x7F6C01EF3190, Progress Indication=NULL(0)
Dec 27 13:27:20.656: //215/xxxxxxxxxxxx/CCAPI/cc_api_get_xcode_stream:

Dec 27 13:27:20.656: cc_api_get_xcode_stream : 5013
Dec 27 13:27:20.682: //215/B673B1800000/CCAPI/cc_api_call_disconnected:
Cause Value=41, Interface=0x7F6C01EF3190, Call Id=215
Dec 27 13:27:20.682: //215/B673B1800000/CCAPI/cc_api_call_disconnected:
Call Entry(Responsed=TRUE, Cause Value=41, Retry Count=0)
Dec 27 13:27:20.683: //214/B673B1800000/CCAPI/ccCallReleaseResources:
release reserved xcoding resource.
Dec 27 13:27:20.683: //215/B673B1800000/CCAPI/ccCallSetAAA_Accounting:
Accounting=0, Call Id=215
Dec 27 13:27:20.683: //215/B673B1800000/CCAPI/ccCallDisconnect:
Cause Value=41, Tag=0x0, Call Entry(Previous Disconnect Cause=0, Disconnect Cause=41)
Dec 27 13:27:20.683: //215/B673B1800000/CCAPI/ccCallDisconnect:
Cause Value=41, Call Entry(Responsed=TRUE, Cause Value=41)
Dec 27 13:27:20.683: //215/B673B1800000/CCAPI/cc_api_call_disconnect_done:
Disposition=0, Interface=0x7F6C01EF3190, Tag=0x0, Call Id=215,
Call Entry(Disconnect Cause=41, Voice Class Cause Code=0, Retry Count=0)
Dec 27 13:27:20.684: //215/B673B1800000/CCAPI/cc_api_call_disconnect_done:
Call Disconnect Event Sent
Dec 27 13:27:20.684: //-1/xxxxxxxxxxxx/CCAPI/cc_free_feature_vsa:

Dec 27 13:27:20.684: :cc_free_feature_vsa freeing 7F6C074B6B20
Dec 27 13:27:20.684: //-1/xxxxxxxxxxxx/CCAPI/cc_free_feature_vsa:

Dec 27 13:27:20.684: vsacount in free is 1
Dec 27 13:27:20.684: //214/B673B1800000/CCAPI/ccCallDisconnect:
Cause Value=41, Tag=0x0, Call Entry(Previous Disconnect Cause=0, Disconnect Cause=0)
Dec 27 13:27:20.684: //214/B673B1800000/CCAPI/ccCallDisconnect:
Cause Value=41, Call Entry(Responsed=TRUE, Cause Value=41)
Dec 27 13:27:20.684: //-1/xxxxxxxxxxxx/CCAPI/ccMemPoolTDFreeHelper:
data = 7F6C0646AF50
Dec 27 13:27:20.685: ccMemPoolTDFreeHelper:mem_mgr_mempool_free: mem_refcnt(7F6C0571CFA8)=0 - mempool cleanup
Dec 27 13:27:20.688: //214/B673B1800000/CCAPI/cc_api_call_disconnect_done:
Disposition=0, Interface=0x7F6C01EF3190, Tag=0x0, Call Id=214,
Call Entry(Disconnect Cause=41, Voice Class Cause Code=0, Retry Count=0)
Dec 27 13:27:20.688: //214/B673B1800000/CCAPI/cc_api_call_disconnect_done:
Call Disconnect Event Sent
Dec 27 13:27:20.688: //-1/xxxxxxxxxxxx/CCAPI/cc_free_feature_vsa:

Dec 27 13:27:20.688: :cc_free_feature_vsa freeing 7F6C074B6A40
Dec 27 13:27:20.688: //-1/xxxxxxxxxxxx/CCAPI/cc_free_feature_vsa:

Dec 27 13:27:20.688: vsacount in free is 0

 

-------------------------------------------------

 

DungriRouter#debug ccsip message
SIP Call messages tracing is enabled
DungriRouter#term mon
DungriRouter#
Dec 27 13:23:45.357: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Received:
INVITE sip:+919979436496@172.16.8.1:5060 SIP/2.0
Via: SIP/2.0/UDP 172.16.20.11:5060;branch=z9hG4bK2f9ef277e188b
From: <sip:806@172.16.20.11>;tag=3854617~9d59a01e-072f-4b27-994a-1361ee2207c4-30810892
To: <sip:+919979436496@172.16.8.1>
Date: Mon, 27 Dec 2021 13:23:45 GMT
Call-ID: 364d4c00-10001-165d1-93f492a@172.16.20.11
Supported: timer,resource-priority,replaces
Min-SE: 1800
User-Agent: Cisco-CUCM12.5
Allow: INVITE, OPTIONS, INFO, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY
CSeq: 101 INVITE
Expires: 180
Allow-Events: presence, kpml
Supported: X-cisco-srtp-fallback,X-cisco-original-called
Call-Info: <sip:172.16.20.11:5060>;method="NOTIFY;Event=telephone-event;Duration=500"
Call-Info: <urn:x-cisco-remotecc:callinfo>;x-cisco-video-traffic-class=DESKTOP
Session-ID: 2ae63a8200105000a00000eeabb7b710;remote=00000000000000000000000000000000
Cisco-Guid: 0911035392-0000065536-0000017868-0185864364
Session-Expires: 1800
P-Asserted-Identity: <sip:806@172.16.20.11>
Remote-Party-ID: <sip:806@172.16.20.11>;party=calling;screen=yes;privacy=off
Contact: <sip:806@172.16.20.11:5060>;+u.sip!devicename.ccm.cisco.com="SEP00EEABB7B710"
Max-Forwards: 69
Content-Length: 0


Dec 27 13:23:45.364: //212/364D4C000000/SIP/Msg/ccsipDisplayMsg:
Sent:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 172.16.20.11:5060;branch=z9hG4bK2f9ef277e188b
From: <sip:806@172.16.20.11>;tag=3854617~9d59a01e-072f-4b27-994a-1361ee2207c4-30810892
To: <sip:+919979436496@172.16.8.1>
Date: Mon, 27 Dec 2021 13:23:45 GMT
Call-ID: 364d4c00-10001-165d1-93f492a@172.16.20.11
CSeq: 101 INVITE
Allow-Events: telephone-event
Server: Cisco-SIPGateway/IOS-16.12.5
Session-ID: 00000000000000000000000000000000;remote=2ae63a8200105000a00000eeabb7b710
Content-Length: 0


Dec 27 13:23:45.364: //213/364D4C000000/SIP/Msg/ccsipDisplayMsg:
Sent:
INVITE sip:+919979436496@100.64.216.4:5060 SIP/2.0
Via: SIP/2.0/UDP 100.64.77.90:5060;branch=z9hG4bK67B39
Remote-Party-ID: <sip:806@100.64.77.90>;party=calling;screen=yes;privacy=off
From: <sip:806@100.64.77.90>;tag=15454F72-1766
To: <sip:+919979436496@100.64.216.4>
Date: Mon, 27 Dec 2021 13:23:45 GMT
Call-ID: D52C25F-664F11EC-82DBDB9D-1557F22@100.64.77.90
Supported: 100rel,timer,resource-priority,replaces,sdp-anat
Min-SE: 1800
Cisco-Guid: 0911035392-0000065536-0000017868-0185864364
User-Agent: Cisco-SIPGateway/IOS-16.12.5
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
CSeq: 101 INVITE
Timestamp: 1640611425
Contact: <sip:806@100.64.77.90:5060>
Expires: 180
Allow-Events: telephone-event
Max-Forwards: 68
Session-ID: 2ae63a8200105000a00000eeabb7b710;remote=00000000000000000000000000000000
Session-Expires: 1800
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 246

v=0
o=CiscoSystemsSIP-GW-UserAgent 4807 4240 IN IP4 100.64.77.90
s=SIP Call
c=IN IP4 100.64.77.90
t=0 0
m=audio 8424 RTP/AVP 0 101
c=IN IP4 100.64.77.90
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20

Dec 27 13:23:45.386: //213/364D4C000000/SIP/Msg/ccsipDisplayMsg:
Received:
SIP/2.0 500 Server Internal Error
Via: SIP/2.0/UDP 100.64.77.90:5060;branch=z9hG4bK67B39
From: <sip:806@100.64.77.90>;tag=15454F72-1766
To: <sip:+919979436496@100.64.216.4>;tag=1c286774711
Call-ID: D52C25F-664F11EC-82DBDB9D-1557F22@100.64.77.90
CSeq: 101 INVITE
Reason: SIP ;cause=500 ;text="Classification Failure"
Content-Length: 0


Dec 27 13:23:45.388: //213/364D4C000000/SIP/Msg/ccsipDisplayMsg:
Sent:
ACK sip:+919979436496@100.64.216.4:5060 SIP/2.0
Via: SIP/2.0/UDP 100.64.77.90:5060;branch=z9hG4bK67B39
From: <sip:806@100.64.77.90>;tag=15454F72-1766
To: <sip:+919979436496@100.64.216.4>;tag=1c286774711
Date: Mon, 27 Dec 2021 13:23:45 GMT
Call-ID: D52C25F-664F11EC-82DBDB9D-1557F22@100.64.77.90
Max-Forwards: 70
CSeq: 101 ACK
Allow-Events: telephone-event
Session-ID: 2ae63a8200105000a00000eeabb7b710;remote=c679fe6f467f5e119a4a6d20aa83e1b6
Content-Length: 0


Dec 27 13:23:45.388: //212/364D4C000000/SIP/Msg/ccsipDisplayMsg:
Sent:
SIP/2.0 500 Internal Server Error
Via: SIP/2.0/UDP 172.16.20.11:5060;branch=z9hG4bK2f9ef277e188b
From: <sip:806@172.16.20.11>;tag=3854617~9d59a01e-072f-4b27-994a-1361ee2207c4-30810892
To: <sip:+919979436496@172.16.8.1>;tag=15454F8B-1FFA
Date: Mon, 27 Dec 2021 13:23:45 GMT
Call-ID: 364d4c00-10001-165d1-93f492a@172.16.20.11
CSeq: 101 INVITE
Allow-Events: telephone-event
Server: Cisco-SIPGateway/IOS-16.12.5
Reason: SIP ;cause=500 ;text="Classification Failure"
Session-ID: c679fe6f467f5e119a4a6d20aa83e1b6;remote=2ae63a8200105000a00000eeabb7b710
Content-Length: 0


Dec 27 13:23:45.389: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Received:
ACK sip:+919979436496@172.16.8.1:5060 SIP/2.0
Via: SIP/2.0/UDP 172.16.20.11:5060;branch=z9hG4bK2f9ef277e188b
From: <sip:806@172.16.20.11>;tag=3854617~9d59a01e-072f-4b27-994a-1361ee2207c4-30810892
To: <sip:+919979436496@172.16.8.1>;tag=15454F8B-1FFA
Date: Mon, 27 Dec 2021 13:23:45 GMT
Call-ID: 364d4c00-10001-165d1-93f492a@172.16.20.11
User-Agent: Cisco-CUCM12.5
Max-Forwards: 70
CSeq: 101 ACK
Allow-Events: presence, kpml
Content-Length: 0


DungriRouter#

 

 

You have multiple issues at hand.

First off your call is matching dial peer 0 (zero) for the inbound direction from CM to the gateway. This is not good and should be avoided by having a specific configured dial peer that is used for this direction. Previous I gave you the advice to use information in the via header for inbound dial peer match. Please configure this, you’ll need two inbound dial peers, one from CM and one from your service provider.

Secondly you are matching dial peer 300 for the outbound direction, and that’s good as that’s your intended outbound dial peer towards your service provider. However your destination pattern is +91, not +T or +91T as has been suggested by me. It’s very hard for anyone to help you if you do not use the advice as given. Please correct this.

Thirdly your sending calling number in the wrong format as per your service providers requirements. Please fix that. To do so use voice translation rules in the gateway. Either inbound from CM or outbound from the SBC (Cube) towards the service provider.

Lastly the call is disconnected with this error.

ccCallDisconnect:
Cause Value=41

This is quite likely caused by either that your using the wrong codec as the call matches dial peer 0 inbound, this dial peer is hard coded for g729, or it could be caused by the wrong number format.



Response Signature


Sorry to trouble you i have changed the configuration as per your suggestions please check it and let me know if i am doing any mistakes. i have used a uri from to define inbound calls from cucm to cube and had placed a destination pattern in it as +91T also had configured +91T as destination pattern in outbound dial peers. The only thing i am unable to do is how to send the calls in the format ISP wants, what feature i have to use to do that ?

 

DungriRouter#show run | sec voice
voice service voip
ip address trusted list
ipv4 100.64.77.89
ipv4 100.64.216.4
ipv4 172.16.20.11
ipv4 172.16.20.9
mode border-element license capacity 20
media bulk-stats
allow-connections sip to sip
sip
header-passing
error-passthru
early-offer forced
midcall-signaling passthru
voice class uri 1000 sip
host 172.16.20.11
voice class uri cumctocube sip
host ipv4:172.16.20.11
voice class codec 1
codec preference 1 g711ulaw
codec preference 2 g711alaw
voice translation-rule 100
rule 1 /.*/ /826/
voice translation-rule 101
rule 1 /\(.*\)101$/ /894/
voice translation-rule 200
voice translation-profile 101
translate called 101
voice translation-profile TP100
translate called 100
dial-peer voice 200 voip
description ***ISP to CUCM826***
translation-profile incoming TP100
session protocol sipv2
incoming called-number +912632350100
voice-class sip bind control source-interface GigabitEthernet0/1/1
voice-class sip bind media source-interface GigabitEthernet0/1/1
dtmf-relay rtp-nte
codec g711ulaw
no vad
dial-peer voice 100 voip
description ***Cube to Cucm826 ***
destination-pattern 826
session protocol sipv2
session target ipv4:172.16.20.11
voice-class sip bind control source-interface GigabitEthernet0/0/0
voice-class sip bind media source-interface GigabitEthernet0/0/0
codec g711ulaw
no vad
dial-peer voice 300 voip
description ***Outbound Cube to JIO ****
destination-pattern +91T
session protocol sipv2
session target ipv4:100.64.216.4
voice-class sip bind control source-interface GigabitEthernet0/1/1
voice-class sip bind media source-interface GigabitEthernet0/1/1
dtmf-relay rtp-nte
codec g711ulaw
no vad
dial-peer voice 400 voip
description ****Inbound Cucm to Cube ****
destination-pattern +91T
session protocol sipv2
incoming uri from cumctocube
voice-class sip bind control source-interface GigabitEthernet0/0/0
voice-class sip bind media source-interface GigabitEthernet0/0/0
dtmf-relay rtp-nte
codec g711ulaw
no vad
dial-peer voice 101 voip
description ***Cube to Cucm894***
destination-pattern 894
session protocol sipv2
session target ipv4:172.16.20.11
voice-class sip bind control source-interface GigabitEthernet0/0/0
voice-class sip bind media source-interface GigabitEthernet0/0/0
codec g711ulaw
no vad
dial-peer voice 201 voip
description ***JIO to CUCM894***
translation-profile incoming 101
session protocol sipv2
incoming called-number +912632350101
voice-class sip bind control source-interface GigabitEthernet0/1/1
voice-class sip bind media source-interface GigabitEthernet0/1/1
codec g711ulaw
no vad
DungriRouter#

Knowing that it might be hard to understand all the things mentioned in my prior response I took the time to re-work your configuration to suggest what I would have configured for your described setup. The configuration is based on your previous shared configurations.

voice service voip
 ip address trusted list
  no ipv4 100.64.77.89
  ipv4 100.64.216.4
  ipv4 172.16.20.11
  ipv4 172.16.20.9
 mode border-element license capacity 20
 media bulk-stats
 allow-connections sip to sip
 sip
  header-passing
  error-passthru
  early-offer forced
  midcall-signaling passthru
!
no voice class uri 1000 sip
no voice class uri cumctocube sip ! voice class uri CUCM sip host ipv4:172.16.20.11 host ipv4:172.16.20.9 ! voice class uri JIO sip host ipv4:100.64.216.4 ! voice class codec 1 codec preference 1 g711ulaw codec preference 2 g711alaw ! voice class e164-pattern-map 1 description E164 Pattern Map for CUCM numbers e164 894 e164 826 ! voice class e164-pattern-map 200 description E164 Pattern Map for PSTN numbers e164 +T ! voice class server-group 1 ipv4 172.16.20.11 preference 1 ipv4 172.16.20.9 preference 2 ! voice class server-group 200 ipv4 100.64.216.4 ! voice class sip-options-keepalive 1 ! no voice translation-rule 100 no voice translation-rule 101 no voice translation-rule 200 ! voice translation-rule 100 rule 1 /.*101$/ /894/ rule 2 /.*100$/ /826/ ! voice translation-rule 200 rule 1 /^894$/ /+912632350101/ rule 2 /^826$/ /+912632350100/ ! voice translation-rule 110 rule 1 /^000\(.*\)/ /+\1/
rule 2 /^0\(.*\)/ /+91\1/ ! no voice translation-profile 101 no voice translation-profile TP100 ! voice translation-profile PSTN-IN translate called 100 ! voice translation-profile PSTN-OUT translate calling 200 ! voice translation-profile CUBE-IN translate called 110 ! no dial-peer voice 101 voip no dial-peer voice 201 voip no dial-peer voice 400 voip no dial-peer voice 300 voip no dial-peer voice 200 voip no dial-peer voice 100 voip ! dial-peer voice 1000 voip description ****Inbound CUCM to Cube**** translation-profile incoming CUBE-IN session protocol sipv2 incoming uri via CUCM voice-class sip bind control source-interface GigabitEthernet0/0/0 voice-class sip bind media source-interface GigabitEthernet0/0/0 dtmf-relay rtp-nte sip-kpml voice-class codec 1 no vad ! dial-peer voice 1010 voip description ***Outbound Cube to CUCM*** destination e164-pattern-map 1 session protocol sipv2 session server-group 1 voice-class sip options-keepalive profile 1 voice-class sip bind control source-interface GigabitEthernet0/0/0 voice-class sip bind media source-interface GigabitEthernet0/0/0 dtmf-relay rtp-nte sip-kpml voice-class codec 1 no vad ! dial-peer voice 100 voip description ***Inbound JIO to Cube*** translation-profile incoming PSTN-IN session protocol sipv2 incoming uri via JIO voice-class sip bind control source-interface GigabitEthernet0/1/1 voice-class sip bind media source-interface GigabitEthernet0/1/1 dtmf-relay rtp-nte voice-class codec 1 no vad ! dial-peer voice 110 voip description ***Outbound Cube to JIO**** translation-profile outgoing PSTN-OUT destination e164-pattern-map 200 session protocol sipv2 session server-group 200 voice-class sip options-keepalive profile 1 voice-class sip bind control source-interface GigabitEthernet0/1/1 voice-class sip bind media source-interface GigabitEthernet0/1/1 dtmf-relay rtp-nte voice-class codec 1 no vad !

There might be part(s) that needs a little polishing, but over all this should be a working solution based on the information you have provided. Try it out and let us know how it went.



Response Signature


Sir thanks for all the time and efforts you have given to my issue. The configuration you have provided has resolved the issue and my incoming and outgoing calls are working fine. I have a few questions regarding your solution if you have time and if you wish please answer them because my curious mind is not allowing me to rest. 

What is this pattern and what it does? 

voice class e164-pattern-map 1
 description E164 Pattern Map for CUCM numbers
 e164 894
 e164 826

What this translation does ?
voice translation-rule 110
 rule 1 /^000\(.*\)/ /+\1/
rule 2 /^0\(.*\)/ /+91\1/

I Thanks again for all your help and time you have given on this issue

Glad to hear that you got it to work. About your questions.

voice class e164-pattern-map 1

This is used to map out your extensions you have in your CM. Usually and what is more manageable is to have a range of extensions listed in the list. For example like this.

voice class e164-pattern-map 1
 description E164 Pattern Map for CUCM numbers
 e164 8..

For better manageability it would be advisable if you could reuse some of the digits that you get from your service provider as part of your DID range. For example if you would keep the last two digits then your extensions in CM could be 800 and 801. With this you could simplify your inbound and outbound number translations to this.

voice translation-rule 100
 rule 1 /.*1\(..\)$/ /8\1/
!
voice translation-rule 200
 rule 1 /^8\(..\)$/ /+9126323501\1/

For your second question. This translation rule is used to change the called number outbound from CM from starting with 0 and then more digits to start with +.

voice translation-rule 110
 rule 1 /^000\(.*\)/ /+\1/
rule 2 /^0\(.*\)/ /+91\1/

Rule 1 match on three zeros and copies the rest of the digits into memory and prefix a + in front.

Rule 2 match on one zero and copies the rest of the digits into memory and prefix +91 in front.



Response Signature


collinks2
Level 5
Level 5

issue this command

 

debug voice ccapi inout

remeber to enable terminal monitor