[Freeswitch-users] multiple same header in INVITE
Mickael Hubert
m.hubert at hexanet.fr
Fri May 3 14:56:36 MSD 2013
Hi list,
I have my freeswitch in SBC "mode" and topology hiding.
I'd like to copy some header between A leg and B leg (not to copy all
headers).
My code is OK, but when I have multiple same headers in my INVITE,
freeswitch only copy the last header.
Ex:
A Leg:
Diversion: <sip:0326123456 at hexanet.fr>; reason=user-busy; privacy=off
Diversion: <sip:0326654321 at hexanet.fr>; reason=user-busy; privacy=full
;counter=3
B leg:
Diversion: <sip:0326645321 at hexanet.fr
>;reason=user-busy;privacy=full;counter=3
Only last Diversion header is copied.
how can I copy all same header please ?
my code:
*<condition field="${sip_h_Diversion}" expression="(.*)" break="never">*
* <action application="log" data="LOG Modifying Diversion" />*
* <action application="export" data="sip_h_Diversion=$1" />*
*</condition>*
thanks in advance
--
Cordialement
Hubert Mickaël
Ingénieur VOIP - Hexanet
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130503/23489b64/attachment-0001.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list