cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
529
Views
0
Helpful
3
Replies

PAI from inc 180 not the same as out 183

Paul Freiberg
Level 1
Level 1

Hi all,

 

I'd like to got the same PAI Header in the outgoing 183 like in the corresponding incomming 180.

 

Inc 180:

 

SIP/2.0 180 Ringing
Via: SIP/2.0/TCP x.x.x.x:5060;branch=z9hG4bK3F301614
From: "Paul Freiberg" <sip:+4945131012012@x.x.x.x>;tag=8951FBF8-2204
To: <sip:+49xyz@x.x.x.x>;tag=1397049727
Call-ID: 3C32A106-118611E8-B242F8A7-FD090289@x.x.x.x
CSeq: 101 INVITE
Allow: INVITE, ACK, OPTIONS, BYE, CANCEL, REGISTER, REFER, INFO, PRACK, UPDATE
Contact: <sip:+49xyz@x.x.x.x:5060;transport=tcp>
P-Asserted-Identity: "FREIBERG PAUL" <sip:+49xyz@x.x.x.x>
Require: 100rel
RSeq: 1
Server: xxx
Content-Type: application/sdp
Content-Length: 245
--SDP--

 

Out:

 

SIP/2.0 183 Session Progress
Via: SIP/2.0/TLS x.x.x.x:5061;branch=z9hG4bK5359b5fe5d873
From: "Paul Freiberg" <sip:+4945131012012@x.x.x.x>;tag=7347937~4498ec3c-29e8-4cb2-abe3-b65eefebc6a9-49458581
To: <sip:+49xyz@x.x.x.x>;tag=8951FFC0-655
Date: Thu, 15 Feb 2018 12:54:46 GMT
Call-ID: 64e9b480-a8518316-41f65-650116ac@x.x.x.x
CSeq: 101 INVITE
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
Allow-Events: telephone-event
P-Asserted-Identity: <sip:+49xyz@x.x.x.x>
Contact: <sip:+49xyz@x.x.x.x:5061;transport=tls>
Supported: sdp-anat
Server: xxx
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 327

--SDP--

 

How can I copy that PAI information? Copy List seems to work just for incomming messages on incomming dial-peers?!

 

Paul

3 Replies 3

R0g22
Cisco Employee
Cisco Employee
SIP Copy list should work just fine.
1. Create a copylist and mention the header from the incoming message that needs to be picked up i.e. PAI in your case.
2. You apply this copylist to the incoming dial-peer
3. Next you create a SIP profile to grab the copied header stored in a variable which would be "u01". Something like -

voice class sip-profiles <number>
response 183 peer-header sip P-Asserted-Identity copy "<sip:(.*)@" u01

4. Apply this SIP profile to the outgoing dial-peer

You can use the following debugs to see this in action as well-

debug voice ccapi inout
debug ccsip messages
debug ccsip info
debug ccsip feature sip-profile

Unfortunately it did not helped me.

My u2 is always empty.

If I want to copy information of an incoming request to use it on outgoing call leg it works fine.

But if I do like you wrote I see no action before the 183 response is sent.

If I set the sip-profile to the incomming dial-peer there is just an empty u2 variable before 183 is sent.

I also tried to set the copy list to the outgoing dial-peer without success.

 

Paul

Not sure if I am following you.
You need to apply the copy list on the incoming dial-peer and use the peer-header to copy the stored variable from the incoming message to the outgoing message with a sip-profile on the outgoing dial-peer.
Apply the config exactly like I have shown above and send me the "show run" from the CUBE. Also take a log for the debugs that I highlighted with the config in place.