02-03-2014 03:04 AM - edited 03-16-2019 09:34 PM
Hi,
i facing an issue with jabber. My issue is coming from the voice gateway.
I get from the provider a SIP/2.0 100 Trying to the gateway. The Phonenumber get sent to the callmanager via SIP/2.0 183 Session Progress.
May current thinking is the usage of voice class sip-profiles, can i use that like a translation-rule?
How can i change the incoming Remote-Party-ID-field + Contact -field in the sip header?
voice class sip-profiles 500
request INVITE sip-header P-Asserted-Identity modify "<sip:(.*)@(.*)>" "<sip:00496925771065@192.168.50.48>"
request INVITE sip-header P-Asserted-Identity add "P-Asserted-Identity: <sip:00496925771065@192.168.50.48>"
request INVITE sip-header Remote-Party-ID modify "<sip:(.*)@(.*)>" "<sip:00496925771065@192.168.50.48>"
Debugs:
6175365: Feb 2 17:58:00.412: //1315268/2AB9E1800000/SIP/Msg/ccsipDisplayMsg:
Sent:
SIP/2.0 100 Trying
Via: SIP/2.0/TCP 192.168.50.53:5060;branch=z9hG4bK130a9371280707
From: "Test IT-DS" <sip:1065@192.168.50.53>;tag=9230525~8f30a84d-ce6a-4ef2-86e4-7e1d4e6fe6fc-40971876
To: <sip:005123520542@192.168.50.59>
Date: Sun, 02 Feb 2014 16:58:00 GMT
Call-ID: 2ab9e180-2ee17918-113bf8-35401bac@192.168.50.53
CSeq: 101 INVITE
Allow-Events: telephone-event
Server: Cisco-SIPGateway/IOS-15.2.2.T2
Content-Length: 0
!
6175373: Feb 2 17:58:00.412: //1315268/2AB9E1800000/CCAPI/cc_api_display_ie_subfields:
ccCallSetupRequest:
cisco-username=1065
----- ccCallInfo IE subfields -----
cisco-ani=00496925771065
dest=00495123520542
!
6175398: Feb 2 17:58:00.416: //1315269/000000000000/SIP/Info/ccsip_get_int_type_frm_set_mode_ev:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.50.59:5060;branch=z9hG4bK176B16173E
From: "Test IT-DS" <sip:00496925771065@192.168.50.59>;tag=3BABBE1C-319
To: <sip:00495123520542@82.211.220.200>;tag=gK02dcc866
Call-ID: 1C7A118-8B6211E3-AB6BF30F-EC3C4587@192.168.50.59
CSeq: 101 INVITE
Timestamp: 1391360280
Content-Length: 0
!
6175768: Feb 2 17:58:04.240: //1315268/2AB9E1800000/SIP/Msg/ccsipDisplayMsg:
Sent:
SIP/2.0 183 Session Progress
Via: SIP/2.0/TCP 192.168.50.53:5060;branch=z9hG4bK130a9371280707
From: "Test IT-DS" <sip:1065@192.168.50.53>;tag=9230525~8f30a84d-ce6a-4ef2-86e4-7e1d4e6fe6fc-40971876
To: <sip:005123520542@192.168.50.59>;tag=3BABCD0C-634
Date: Sun, 02 Feb 2014 16:58:00 GMT
Call-ID: 2ab9e180-2ee17918-113bf8-35401bac@192.168.50.53
CSeq: 101 INVITE
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
Allow-Events: telephone-event
Remote-Party-ID: <ip:00495123520542@192.168.50.59>;party=called;screen=no;privacy=off
Contact: <sip:00495123520542@192.168.50.59:5060;transport=tcp>
Solved! Go to Solution.
02-03-2014 03:27 AM
Hi Michael,
May current thinking is the usage of voice class sip-profiles, can i use that like a translation-rule? - Yes you can use this feature in SIP profile modify to match a set of header and replace with other.
How can i change the incoming Remote-Party-ID-field + Contact -field in the sip header? - Sip pofile works only for outgoing messages not for incoming , for this you need to look at SIP normalization script to achieve this.
http://www.cisco.com/en/US/docs/voice_ip_comm/cucm/sip_tn/8_5_1/9-script_param.html
Rate all the helpful post.
Thanks
Manish
02-03-2014 03:27 AM
Hi Michael,
May current thinking is the usage of voice class sip-profiles, can i use that like a translation-rule? - Yes you can use this feature in SIP profile modify to match a set of header and replace with other.
How can i change the incoming Remote-Party-ID-field + Contact -field in the sip header? - Sip pofile works only for outgoing messages not for incoming , for this you need to look at SIP normalization script to achieve this.
http://www.cisco.com/en/US/docs/voice_ip_comm/cucm/sip_tn/8_5_1/9-script_param.html
Rate all the helpful post.
Thanks
Manish
02-03-2014 04:11 AM
Hello Manish,
thank you for the quick answer, which seems to be correct. It looks like this is not done by a simple, additional parameter on the voicegateway.
I think this is again a thing what cisco should fullfill -> manipulation in both directions
Can i change the mandatory fields on callmanager, when incoming ?
Thanks
Michael
02-20-2014 06:15 AM
Hi,
i managed to modify the session progress sip header:
Regards Michael
voice class sip-profiles 800
response 183 sip-header TO copy "<>>
response 183 sip-header Remote-Party-ID modify "<>>
02-20-2014 06:29 AM
This is the new feature (copy) available with cube in 15.1(x) ios. Which i recently get to know from one of post in CSE.
Glad that you managed to achive it.
Thanks
Manish
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide