<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">A single comma separated header is equivalent to multiple headers in this case.  Its a space saver in messages as part of rfc3261.  We don’t have an alternate way to force it into multiple actual headers but shouldn’t be needed as this method should always be equivalent.<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Oct 5, 2019, at 10:51 PM, Giri <<a href="mailto:girish.dharmaraj@gmail.com" class="">girish.dharmaraj@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><pre style="white-space: pre-wrap;" class=""><i class="">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 class=""><pre style="white-space: pre-wrap;" class=""><i class="">If I use  export with “,” then I get the following results:
</i>><i class=""> Diversion: <sip:<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank" class="">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" class="">13216938059 at 216.1.185.103</a>>;reason=no-answer;counter=1;privacy=off
</i>><i class="">  
</i>><i class=""> <extension name="public_did">
</i>><i class="">     <condition field="destination_number" expression="^9999(\d{10})$">
</i>><i class="">  
</i>><i class="">          <action application="set" data="ocn=18005551212"/>
</i>><i class="">          <action application="set" data="rdn=18005552323"/>
</i>><i class="">  
</i>><i class="">          <action application="export" data="sip_h_Diversion =<<a href="sip:${ocn}@${network_addr}" class="">sip:${ocn}@${network_addr}</a>>;reason=user-busy;counter=3;privacy=off,  <<a href="sip:${rdn}@${network_addr}" class="">sip:${rdn}@${network_addr}</a>>;reason=no-answer;counter=1;privacy=off "/>
</i>><i class="">      
</i>><i class="">          <action application="set" data="hangup_after_bridge=true" />
</i>><i class="">          <action application="set" data="continue_on_fail=true"/>
</i>><i class="">  
</i>><i class="">          <action application="transfer" data="1001 XML default"/>
</i>><i class="">     </condition>
</i>><i class=""> </extension></i></pre></div><div class=""><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">With Best Regards,<br class="">Girish Dharmaraj</div></div><br class=""></div><br class=""><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" class="">girish.dharmaraj@gmail.com</a>> wrote:<br class=""></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" class=""><div class=""><pre style="" class=""><i class="">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 class=""><pre style="" class=""><i class="">If I use  export with “,” then I get the following results:
</i>><i class=""> Diversion: <sip:<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank" class="">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" class="">13216938059 at 216.1.185.103</a>>;reason=no-answer;counter=1;privacy=off
</i>><i class="">  
</i>><i class=""> <extension name="public_did">
</i>><i class="">     <condition field="destination_number" expression="^9999(\d{10})$">
</i>><i class="">  
</i>><i class="">          <action application="set" data="ocn=18005551212"/>
</i>><i class="">          <action application="set" data="rdn=18005552323"/>
</i>><i class="">  
</i>><i class="">          <action application="export" data="sip_h_Diversion =<<a href="sip:${ocn}@${network_addr}" class="">sip:${ocn}@${network_addr}</a>>;reason=user-busy;counter=3;privacy=off,  <<a href="sip:${rdn}@${network_addr}" class="">sip:${rdn}@${network_addr}</a>>;reason=no-answer;counter=1;privacy=off "/>
</i>><i class="">      
</i>><i class="">          <action application="set" data="hangup_after_bridge=true" />
</i>><i class="">          <action application="set" data="continue_on_fail=true"/>
</i>><i class="">  
</i>><i class="">          <action application="transfer" data="1001 XML default"/>
</i>><i class="">     </condition>
</i>><i class=""> </extension></i></pre></div><br clear="all" class=""><div class=""><div dir="ltr" class="">With Best Regards,<br class="">Girish Dharmaraj</div></div><br class=""></div><div id="gmail-m_6076873152175307791DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" class=""><br class="">
<table style="border-top:1px solid rgb(211,212,222)" class="">
        <tbody class=""><tr class="">
        <td style="width:55px;padding-top:13px" class=""><a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank" class=""><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;" class=""></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" class="">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" class="">www.avg.com</a>
                </td>
        </tr>
</tbody></table><a href="x-msg://9/#m_6076873152175307791_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1" class=""></a></div><br class=""><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" class="">girish.dharmaraj@gmail.com</a>> wrote:<br class=""></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" class=""><div class=""><div class="">when I add a multiple header with comma separated only one header is added, is there anything wrong with my syntax ?</div><div class=""><br class=""></div><div class="">sip_h_History-Info=<<a href="sip:$" class="">sip:$</a>{<a href="mailto:CF_caller_id_number%7D@198.18.181.6" target="_blank" class="">CF_caller_id_number}@198.18.181.6</a>;user=phone>;index=1;ms-retarget-reason=forwarding, <<a href="sip:$" class="">sip:$</a>{<a href="mailto:callee_id_number%7D@198.18.181.6" target="_blank" class="">callee_id_number}@198.18.181.6</a>;user=phone>;index=1.1;</div></div><div class=""><br class=""></div><div class="">The Result is showing in one header. </div><div class=""><br class=""></div><br clear="all" class=""><div class=""><div dir="ltr" class="">With Best Regards,<br class="">Girish Dharmaraj</div></div></div>
</blockquote></div>
</blockquote></div>
_________________________________________________________________________<br class=""><br class="">The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" class="">https://signalwire.com</a><br class="">Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br class="">Build your next product on our scalable cloud platform.<br class=""><br class="">Join our online community to chat in real time <a href="https://signalwire.community" class="">https://signalwire.community</a><br class=""><br class="">Professional FreeSWITCH Services<br class=""><a href="mailto:sales@freeswitch.com" class="">sales@freeswitch.com</a><br class="">https://freeswitch.com<br class=""><br class="">Official FreeSWITCH Sites<br class="">https://freeswitch.com/oss<br class="">https://freeswitch.org/confluence<br class="">https://cluecon.com<br class=""><br class="">FreeSWITCH-users mailing list<br class="">FreeSWITCH-users@lists.freeswitch.org<br class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br class="">UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br class="">https://freeswitch.com</div></blockquote></div><br class=""></body></html>