05-27-2019 05:19 AM
Hello,
Our SIP Provider expects in From field the main number in order to allow the call but it also expects CLID in FROM field. They don't use Contact or remote party ID or PAI to identify the Orginating Caller ID.
e.g From: "123456712" <sip:123456700@1.2.3.4>;tag=14E77542-24E7
So i tried to manipulate The Invite with this sip profile :
voice class sip-profiles 100
request INVITE sip-header Contact copy ".*<sip:(.*)@.*" u01
request INVITE sip-header From modify ".*<sip:.*@" "From: \"\u01"<sip:123456700@"
When i test this SIP profile via SIP TAC tool, it is working with no issue. But when i try to configured it on my ISR4331 ( Everest 16.06.06) i am getting this error message : Error: Invalid Pattern-quote is not escaped.
This is Invite message i want to change :
INVITE sip:00444546474849@91.210.240.28:5060 SIP/2.0
Via: SIP/2.0/UDP 213.134.142.58:5060;branch=z9hG4bK335E67B
From: <sip:123456700@1.2.3.4>;tag=14E77542-24E7
To: <sip:00444546474849@91.210.240.28>
Date: Fri, 24 May 2019 14:39:23 GMT
Call-ID: 8E9521C3-7D6811E9-8543C694-3E02050C@213.134.142.58
Supported: timer,resource-priority,replaces,sdp-anat
Min-SE: 1800
Cisco-Guid: 3079546112-0000065536-0000148875-0084017418
User-Agent: Cisco-SIPGateway/IOS-16.6.6
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
CSeq: 101 INVITE
Timestamp: 1558708763
Contact: <sip:123456712@5.6.7.8:5060>
Call-Info: <sip:5.6.7.8:5060>;method="NOTIFY;Event=telephone-event;Duration=2000"
Expires: 180
Allow-Events: telephone-event
Max-Forwards: 68
P-Preferred-Identity: <123456712@5.6.7.8>
Session-ID: eddaad32295955c547576aa144618411;remote=00000000000000000000000000000000
Session-Expires: 1800
Content-Length: 0
This is how i need it to look like :
INVITE sip:00444546474849@91.210.240.28:5060 SIP/2.0
Via: SIP/2.0/UDP 213.134.142.58:5060;branch=z9hG4bK335E67B
From: "123456712" <sip:224700400@1.2.3.4>;tag=14E77542-24E7
To: <sip:00444546474849@91.210.240.28>
Date: Fri, 24 May 2019 14:39:23 GMT
Call-ID: 8E9521C3-7D6811E9-8543C694-3E02050C@213.134.142.58
Supported: timer,resource-priority,replaces,sdp-anat
Min-SE: 1800
Cisco-Guid: 3079546112-0000065536-0000148875-0084017418
User-Agent: Cisco-SIPGateway/IOS-16.6.6
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
CSeq: 101 INVITE
Timestamp: 1558708763
Contact: <sip:123456712@5.6.7.8:5060>
Call-Info: <sip:5.6.7.8:5060>;method="NOTIFY;Event=telephone-event;Duration=2000"
Expires: 180
Allow-Events: telephone-event
Max-Forwards: 68
P-Preferred-Identity: <123456712@5.6.7.8>
Session-ID: eddaad32295955c547576aa144618411;remote=00000000000000000000000000000000
Session-Expires: 1800
Content-Length: 0
Thank You in Advance
Solved! Go to Solution.
05-27-2019 10:18 AM
Hi,
I have found my error :)
This will change it the way i want it
voice class sip-profiles 100
request INVITE sip-header Contact copy ".*<sip:(.*)@.*" u01
request INVITE sip-header From modify "<sip:.*@" "\"\u01\" <sip:123456700@"
05-27-2019 10:18 AM
Hi,
I have found my error :)
This will change it the way i want it
voice class sip-profiles 100
request INVITE sip-header Contact copy ".*<sip:(.*)@.*" u01
request INVITE sip-header From modify "<sip:.*@" "\"\u01\" <sip:123456700@"
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