<div dir="ltr"><div><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><i>I am trying to export sip_h_Diversion header twice but not working, only one header is sent out and not two. </i></pre></div><div><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><i>If I use  export with “,” then I get the following results:
</i>><i> Diversion: <sip:<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">19082302337 at 216.1.185.103</a>>;reason=user-busy;counter=3;privacy=off,<sip:<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">13216938059 at 216.1.185.103</a>>;reason=no-answer;counter=1;privacy=off
</i>><i>  
</i>><i> <extension name="public_did">
</i>><i>     <condition field="destination_number" expression="^9999(\d{10})$">
</i>><i>  
</i>><i>          <action application="set" data="ocn=18005551212"/>
</i>><i>          <action application="set" data="rdn=18005552323"/>
</i>><i>  
</i>><i>          <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 "/>
</i>><i>      
</i>><i>          <action application="set" data="hangup_after_bridge=true" />
</i>><i>          <action application="set" data="continue_on_fail=true"/>
</i>><i>  
</i>><i>          <action application="transfer" data="1001 XML default"/>
</i>><i>     </condition>
</i>><i> </extension></i></pre></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">With Best Regards,<br>Girish Dharmaraj</div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Oct 6, 2019 at 12:47 PM Giri <<a href="mailto:girish.dharmaraj@gmail.com">girish.dharmaraj@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><pre style="color:rgb(0,0,0)"><i>I am trying to export sip_h_Diversion header twice but not working, only one header is sent out and not two. </i></pre></div><div><pre style="color:rgb(0,0,0)"><i>If I use  export with “,” then I get the following results:
</i>><i> Diversion: <sip:<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">19082302337 at 216.1.185.103</a>>;reason=user-busy;counter=3;privacy=off,<sip:<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">13216938059 at 216.1.185.103</a>>;reason=no-answer;counter=1;privacy=off
</i>><i>  
</i>><i> <extension name="public_did">
</i>><i>     <condition field="destination_number" expression="^9999(\d{10})$">
</i>><i>  
</i>><i>          <action application="set" data="ocn=18005551212"/>
</i>><i>          <action application="set" data="rdn=18005552323"/>
</i>><i>  
</i>><i>          <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 "/>
</i>><i>      
</i>><i>          <action application="set" data="hangup_after_bridge=true" />
</i>><i>          <action application="set" data="continue_on_fail=true"/>
</i>><i>  
</i>><i>          <action application="transfer" data="1001 XML default"/>
</i>><i>     </condition>
</i>><i> </extension></i></pre></div><br clear="all"><div><div dir="ltr">With Best Regards,<br>Girish Dharmaraj</div></div><br></div><div id="gmail-m_6076873152175307791DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top:1px solid rgb(211,212,222)">
        <tbody><tr>
        <td style="width:55px;padding-top:13px"><a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png" alt="" width="46" height="29" style="width: 46px; height: 29px;"></a></td>
                <td style="width:470px;padding-top:12px;color:rgb(65,66,78);font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Virus-free. <a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" style="color:rgb(68,83,234)" target="_blank">www.avg.com</a>
                </td>
        </tr>
</tbody></table><a href="#m_6076873152175307791_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Oct 5, 2019 at 12:41 AM Giri <<a href="mailto:girish.dharmaraj@gmail.com" target="_blank">girish.dharmaraj@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>when I add a multiple header with comma separated only one header is added, is there anything wrong with my syntax ?</div><div><br></div><div>sip_h_History-Info=<sip:${<a href="mailto:CF_caller_id_number%7D@198.18.181.6" target="_blank">CF_caller_id_number}@198.18.181.6</a>;user=phone>;index=1;ms-retarget-reason=forwarding, <sip:${<a href="mailto:callee_id_number%7D@198.18.181.6" target="_blank">callee_id_number}@198.18.181.6</a>;user=phone>;index=1.1;</div></div><div><br></div><div>The Result is showing in one header. </div><div><br></div><br clear="all"><div><div dir="ltr">With Best Regards,<br>Girish Dharmaraj</div></div></div>
</blockquote></div>
</blockquote></div>