[Freeswitch-users] Exporting Diversion Header Twice

Sanjiv Kumar sanjiv at simple2call.com
Tue Apr 22 20:40:58 MSD 2014


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
one.

 

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}>;reason=user-busy;counter=3;privacy=off"/>

         <action application="export" data=" nolocal:sip_h_Diversion
=<sip:${rdn}@${network_addr}>;reason=no-answer;counter=1;privacy=off"/>

      

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

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

 

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

    </condition>

</extension>

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


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