cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6140
Views
2
Helpful
6
Replies

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

niteshpatel77
Level 1
Level 1

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

6 Replies 6

Mark Stover
Cisco Employee
Cisco Employee

Hi Nitesh,

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

Mark

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

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

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

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

Hello Nitesh,

 

Did you ever solve this? 

I'm facing the same issue right now.

 

Kind regards,