cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1024
Views
2
Helpful
5
Replies
Highlighted
Not applicable

Lua script to add the UUI header from Incoming SIP INVITE message to New INVITE

Hi,

I have requirement to pass-on the User-to-User SIP header which appears in both "INVITE" and later in "REFER" message back to the new INVITE.

CUCM 10.5 does the new INVITE based on the "Refer-To" header in the "REFER" message, but do not pass-through the "User-to-User" information in the newly INVITE.

REFER sip:+16307771111@10.1.7.11:5072;transport=tcp;gsid=d3db2160-bb2f-11e7-9ffd-2c59e5423cc8

Refer-To: <sip:5477001@telecom.net;user=phone?User-to-User=00FA082710001059F35748%3Bencoding%3Dhex>                                  

Thanks,

NPatel

5 REPLIES 5
Highlighted
Cisco Employee

Hi Nitesh,

Are you talking about the 'new' INVITE generated because CUCM is a B2BUA?

Mark

Highlighted

Hi Mark,

Yes. Cisco acting as B2BUA and then dropping the "User-to-User" header for the  new SIP invite created based on the "Refer-To"  telephone number.

Are there any way to STORE this information in variable for the INCOMING message?

and then

Add it back to the OUTBOUND messages on the same trunk based on above STORED values?

Many thanks,

NP

Highlighted

Sorry for the delayed reply.

Yes, if you are in the same INVITE dialog. Have a look at the Transparency section of the developer guide, you would use that feature to preserve consumed headers.

Mark

Highlighted

Hi Mark,

I tried that earlier and I can see the values remain as it is if I use Pass-through, but to the same message dialogues.

As I understand more on Cisco, for the REFER-TO, Cisco actually create a new SIP Invite dialogues with different call ID, so pass-through/transparency do not help here as  Cisco acting here as B2BUA.

Open for any other ideas if anyone having to 1) Store the values in variable 2) call the stored values in new Invites/dialogues

Thanks,

NP

Highlighted

Hi Nitesh,

Sorry for missing the REFER-TO part. Is this an in-dialog REFER or an out-of-dialog one. If it is in-dialog, you can use the built-in refer-passthrough script, copy it, and add what you need. If it is out-of-dialog, I don't believe there's no way to use Normalization to get at those headers.

Mark