preserve A-leg From header value and P-Asserted-Identity in B-leg
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@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.
participants (1)
-
Vik Killa