I am trying to export sip_h_Diversion header twice but not working, only one header is sent out and not two. 
If I use  export with “,” then I get the following results:
> Diversion: <sip:19082302337 at 216.1.185.103>;reason=user-busy;counter=3;privacy=off,<sip:13216938059 at 216.1.185.103>;reason=no-answer;counter=1;privacy=off
>  
> <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="sip_h_Diversion =<sip:${ocn}@${network_addr}>;reason=user-busy;counter=3;privacy=off,  <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>
With Best Regards,
Girish Dharmaraj


On Sun, Oct 6, 2019 at 12:47 PM Giri <girish.dharmaraj@gmail.com> wrote:
I am trying to export sip_h_Diversion header twice but not working, only one header is sent out and not two. 
If I use  export with “,” then I get the following results:
> Diversion: <sip:19082302337 at 216.1.185.103>;reason=user-busy;counter=3;privacy=off,<sip:13216938059 at 216.1.185.103>;reason=no-answer;counter=1;privacy=off
>  
> <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="sip_h_Diversion =<sip:${ocn}@${network_addr}>;reason=user-busy;counter=3;privacy=off,  <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>

With Best Regards,
Girish Dharmaraj


Virus-free. www.avg.com

On Sat, Oct 5, 2019 at 12:41 AM Giri <girish.dharmaraj@gmail.com> wrote:
when I add a multiple header with comma separated only one header is added, is there anything wrong with my syntax ?

sip_h_History-Info=<sip:${CF_caller_id_number}@198.18.181.6;user=phone>;index=1;ms-retarget-reason=forwarding, <sip:${callee_id_number}@198.18.181.6;user=phone>;index=1.1;

The Result is showing in one header. 


With Best Regards,
Girish Dharmaraj