[Freeswitch-users] preserve A-leg From header value and P-Asserted-Identity in B-leg

Vik Killa vipkilla at gmail.com
Thu Aug 27 23:29:56 MSD 2015


Hello,
According to Q.1912 spec, the 'Generic Number' or sometimes called
'Additional calling number' may be placed in the "From" SIP header, while
the Calling Party Number can be placed in the P-Asserted-Identity.

We've noticed that in the case when FreeSWITCH receives an INVITE like this
(From header & PAI header have different information), FreeSWITCH will
disregard the From and use only the PAI number in both B-leg From header
and PAI.

I've found a work around to solve this by exporting the A-leg variable
${sip_from_user} into the B-leg's ${sip_from_user}
Example:

<action application="bridge" data="{sip_from_uri=${
sip_from_user}@172.20.207.155}sofia/internal/sip:555 at 172.20.207.154:5060"/>

This seems like a hack at best... my question is, there a more elegant way
to preserve the respective From & PAI of A-leg and just place them in B-leg?

Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150827/912609cb/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list