[Freeswitch-users] Exporting Diversion Header Twice

Sanjiv Kumar sanjiv at simple2call.com
Tue Apr 22 23:24:45 MSD 2014

Anyone ?? At least let me know if this cannot be done.



I am trying to export sip_h_Diversion header twice but I only see the last
attempt on leg-B. It appears that second export attempt overwrites the first


How can I export it twice?


<extension name="public_did">

    <condition field="destination_number" expression="^9999(\d{10})$">


         <action application="set" data="ocn=18005551212"/>

         <action application="set" data="rdn=18005552323"/>


         <action application="export" data=" nolocal:sip_h_Diversion
=<sip:${ocn}@${network_addr} <sip:$%7bocn%7d@$%7bnetwork_addr%7d>

         <action application="export" data=" nolocal:sip_h_Diversion
=<sip:${rdn}@${network_addr} <sip:$%7brdn%7d@$%7bnetwork_addr%7d>


         <action application="set" data="hangup_after_bridge=true" />

         <action application="set" data="continue_on_fail=true"/>


         <action application="transfer" data="1001 XML default"/>



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140422/b395b8b2/attachment.html 

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