06-20-2016 02:02 AM - edited 03-17-2019 07:18 AM
Hi all
I want to modify the SIP request, sent to the SIP Provider...
I like to modify the "P-Asserted-Identity" as well as I like to modify the Privacy status from "none" to "full".
Here is was our CUBE receives:
Received:
INVITE sip:*69100XXXXXXXXXXX@192.168.116.101:5060 SIP/2.0
Via: SIP/2.0/TCP 10.250.1.122:5060;branch=z9hG4bK85aa5b1cdc5498
From: "firstname surname" <sip:+XXXXXXXXXXX@10.250.1.122>;tag=37908225~5452b1e5-3a51-fcc6-cf3e-3d9a867d82eb-91500171
To: <sip:*69100XXXXXXXXXXX@192.168.116.101>
Date: Mon, 20 Jun 2016 07:46:41 GMT
Call-ID: 1f13cc00-76719f61-6e62c7-7a01fa0a@10.250.1.122
Supported: 100rel,timer,resource-priority,replaces
Min-SE: 1800
User-Agent: Cisco-CUCM10.5
Allow: INVITE, OPTIONS, INFO, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY
CSeq: 101 INVITE
Expires: 180
Allow-Events: presence
Supported: X-cisco-srtp-fallback,X-cisco-original-called
Call-Info: <urn:x-cisco-remotecc:callinfo>;x-cisco-video-traffic-class=DESKTOP
Cisco-Guid: 0521391104-0000065536-0000009630-2046949898
Session-Expires: 3600
P-Asserted-Identity: "firstname surname" <sip:+XXXXXXXXXXX@10.250.1.122>
Remote-Party-ID: "firstname surname" <sip:+XXXXXXXXXXX@10.250.1.122>;party=calling;screen=yes;privacy=off
Contact: <sip:+XXXXXXXXXXX@10.250.1.122:5060;transport=tcp>;+u.sip!devicename.ccm.cisco.com="SEPAAAABBBBCCCC"
Max-Forwards: 69
Content-Type: application/sdp
Content-Length: 313
The Goal is to have the Privacy aktiv and I like to send the P-Asserted-Identity as follows:
P-Asserted-Identity: "Anonymous" <sip:anonymous@10.250.1.122>
At the SIP-Profil, I added the following line for Privacy but it doesn't work:
request INVITE sip-header P-Asserted-Identity add "Privacy: id"
Hope somebody can help me because I'm not very familiar with SIP profiles...
Thank you very much and I wish you a nice day.
Kind regards,
Pascal
06-20-2016 03:59 AM
Pascal,
Try this one:
request INVITE sip-header Remote-Party-ID modify "(.*screen=)(yes;)(privacy=)(off)" "\1no;\3full"
request INVITE sip-header P-Asserted-Identity modify "P-Asserted-Identity: (.*)<sip:\+XXXXXXXXXXX@10.250.1.122>" "P-Asserted-Identity:\"Anonymous\" <sip:anonymous@10.250.1.122>"
Leszek
06-20-2016 05:25 AM
Hi Leszek
Thank you for your answer.
It works as I asked for but I guess I have another issue.
The ISP told me that I need the "Privacy: id" information in the SIP Request.
When I add it with the command
request INVITE sip-header P-Asserted-Identity add "Privacy: id"
it will be added at the end of the Request. See example below.
Sent:
INVITE sip:XXXXXXXXX;phone-context=national@aaa.bbb.ccc.ddd SIP/2.0
Via: SIP/2.0/UDP 192.168.116.171:5060;branch=z9hG4bKF9E5C1B8B
From: <sip:anonymous@anonymous.invalid>;tag=83E8A618-129
To: <sip:XXXXXXXXX;phone-context=national@aaa.bbb.ccc.ddd>
Date: Mon, 20 Jun 2016 09:49:26 GMT
Call-ID: 1C33ADCD-360311E6-ADF78F2D-6EAAE112@192.168.116.171
Supported: 100rel,timer,resource-priority,replaces,histinfo,sdp-anat
Min-SE: 1800
Cisco-Guid: 1156947072-0000065536-0000009766-2046949898
User-Agent: Cisco-SIPGateway/IOS-15.5.3.S2
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
CSeq: 101 INVITE
Timestamp: 1466416166
Contact: <sip:anonymous@192.168.116.171:5060>
History-Info: <sip:XXXXXXXXX;phone-context=national@aaa.bbb.ccc.ddd>;index=1
Expires: 180
Allow-Events: telephone-event
Max-Forwards: 68
P-Asserted-Identity: "firstname surname" <sip:XXXXXXXXX;phonecontext=national@192.168.116.171>
Session-Expires: 3600
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 256
Privacy: id
But my ISP expect this Information just before the "Session-Expires: 3600" line.
Is there a possibility to add this line at a specific location?
Thank you very much for your help.
Kind regards,
Pascal
06-21-2016 12:54 AM
12-28-2017 06:39 AM
I know this has been asked a long time ago but maybe someone will find this useful.
If you have the topology like:
Phone----CUCM----CUBE----ITSP
then the following setting works just fine and achieving what is expected by telco:
On CUCM:
On route pattern:
Calling Line ID PresentationRequired Field to Restricted
Calling Name PresentationRequired Field to Resticted
On SIP trunk check:
Remote-Party-Id
and
asserted-Type change to PAI
This way CUCM will send to CUBE:
P-Asserted-Identity: "Leszek Wojnarski" <sip:+888888888@10.10.10.10>
Privacy: id
And then on CUBE need to put on dial-peer to telco something like:
voice-class sip asserted-id pai
voice-class sip privacy-policy passthru
this is just to forward all the information related to PAI as it to ITSP.
Leszek
10-06-2020 06:54 AM
Very helpful, thank you for the post!
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