11-20-2015 12:43 PM - edited 03-17-2019 04:59 AM
hey community.. im fairly new to sip and i just set up skype trunk recently and is operational.. however i have a small issue i need to modifiy the header to remove caller id for example this is a working log
Nov 20 20:33:26.375: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Received:
SIP/2.0 100 Trying
From: <sip:99051000254750@sip.skype.com>;tag=43B02904-12B1
To: <sip:13476945525@sip.skype.com>
Call-ID: C90BA7E6-8EFC11E5-BAC880ED-C5180A62@2.10.1.2
CSeq: 101 INVITE
Via: SIP/2.0/UDP 2.10.1.2:5060;branch=z9hG4bK1442C2368
Timestamp: 1448051606
Contact: <sip:13476945525@sip.skype.com:5060;maddr=63.209.144.201;transport=udp>
Content-Length: 0
and this doesnt work
From: <"M.Alexis" sip:99051000254750@sip.skype.com>;tag=43AAA454-1617
To: <sip:13406261501@sip.skype.com>;tag=c990d13f-13c4-564f822c-792900-28fc4456
Call-ID: F17C3D1D-8EFB11E5-BAAA80ED-C5180A62@2.10.1.2
CSeq: 101 INVITE
Via: SIP/2.0/UDP 2.10.1.2:5060;branch=z9hG4bK144270
Content-Length: 0
to get the phones up and running i hve to modify each Iine id on cucm and remove the " ascii display internal caller id"
i would like to resolve this on a level were all headers are modified instead of each line
Solved! Go to Solution.
11-20-2015 02:51 PM
I really would like to understand better this issue. you are facing The format of the From sip header doesnt look correct to me. I have never seen cucm present anything like this..So can you please post the output of a non working call debug here..
From your cube, please do debug ccsip messages and post the log here. Please include calling and called number..
May I ask what exactly is the issue you are facing?
I am asking so that we may find the most efficient solution for this
11-20-2015 08:57 PM
In that case using lua script is an over kill for this. Its also a steep learning curve. You can just configure sip profile onb the cube here is what you need..
NB: That the format fo the from you posted is incorrect. This is why I wanted to see the logs. The format should be as below
From: "M.Alexis" <sip:99051000254750@sip.skype.com>;tag=43AAA454-1617
voice class sip-profile 1
request INVITE sip-header From modify "From:(.*)<sip:(.*)@(.*)" "From: <sip:\2@\3"
or
request INVITE sip-header From modify "From:(.*)<sip:(.*)@sip.skype.com>" "From: <sip:\2@sip.skype.com>"
Then apply htis to the outbound dial-peer to ITSP
dial-peer voice xxx voip
voice-class sip profile 1
11-20-2015 12:48 PM
How is skype trunk configured? Is it directly with CUCM or with Gateway in between?
Br,
Nadeem Ahmed
PS: Please rate all useful post.
11-20-2015 01:47 PM
there is a gateway inbetween
11-20-2015 01:57 PM
I tried couple of thing the options left here
1) blocking clid name but you will see ""Anonymous" instead of name.
2) Lua script on CUCM from which you can modify anything you want through this script.
3) But if you using Cisco Gateway you can perform this changes from Gateway rather than on CUCM which is quite easy than lua scripting.
Related Information
SIP Profiles on CUBE Configuration Guide
http://www.cisco.com/en/US/products/sw/voicesw/ps5640/products_configuration_example09186a0080982499.shtml
Br,
Nadeem Ahmed
PS: Please rate all useful post.
11-20-2015 01:19 PM
Hi,
please, check this link: A guide to SIP Normalization on CUCM and Lua Scripting.
Hope this helps
11-20-2015 01:47 PM
Thanks i'lll be looking into this
11-20-2015 02:51 PM
I really would like to understand better this issue. you are facing The format of the From sip header doesnt look correct to me. I have never seen cucm present anything like this..So can you please post the output of a non working call debug here..
From your cube, please do debug ccsip messages and post the log here. Please include calling and called number..
May I ask what exactly is the issue you are facing?
I am asking so that we may find the most efficient solution for this
11-20-2015 03:07 PM
i will post the logs when im on site.. ayodeji but briefly skype will accept invites only like this
From: <sip:99051000254750@sip.skype.com
and the cucm presents the invites with caller id like this:
From: <"M.Alexis" sip:99051000254750@sip.skype.com
so in short it a matter of normalizing the sip headers ...to remove the id. from the informaiton the guys gave scripting is a good option or sip normalization on the cube....
11-20-2015 08:57 PM
In that case using lua script is an over kill for this. Its also a steep learning curve. You can just configure sip profile onb the cube here is what you need..
NB: That the format fo the from you posted is incorrect. This is why I wanted to see the logs. The format should be as below
From: "M.Alexis" <sip:99051000254750@sip.skype.com>;tag=43AAA454-1617
voice class sip-profile 1
request INVITE sip-header From modify "From:(.*)<sip:(.*)@(.*)" "From: <sip:\2@\3"
or
request INVITE sip-header From modify "From:(.*)<sip:(.*)@sip.skype.com>" "From: <sip:\2@sip.skype.com>"
Then apply htis to the outbound dial-peer to ITSP
dial-peer voice xxx voip
voice-class sip profile 1
11-21-2015 10:14 AM
this option 1.request INVITE sip-header From modify "From:(.*)<sip:(.*)@(.*)" "From: <sip:\2@\3"
worked great... excellent im starting to see its all about mixing and matching accurately.
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