[Freeswitch-users] Multiple History Info header

Mike Jerris mike at freeswitch.org
Thu Oct 24 18:33:56 UTC 2019


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.

> On Oct 5, 2019, at 10:51 PM, Giri <girish.dharmaraj at 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 <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>>;reason=user-busy;counter=3;privacy=off,<sip:13216938059 at 216.1.185.103 <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>>;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 at gmail.com <mailto:girish.dharmaraj at 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 <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>>;reason=user-busy;counter=3;privacy=off,<sip:13216938059 at 216.1.185.103 <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>>;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
> 
> 
>  <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>	Virus-free. www.avg.com <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> <x-msg://9/#m_6076873152175307791_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> On Sat, Oct 5, 2019 at 12:41 AM Giri <girish.dharmaraj at gmail.com <mailto:girish.dharmaraj at 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 <mailto:CF_caller_id_number%7D at 198.18.181.6>;user=phone>;index=1;ms-retarget-reason=forwarding, <sip:${callee_id_number}@198.18.181.6 <mailto:callee_id_number%7D at 198.18.181.6>;user=phone>;index=1.1;
> 
> The Result is showing in one header. 
> 
> 
> With Best Regards,
> Girish Dharmaraj
> _________________________________________________________________________
> 
> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
> Build your next product on our scalable cloud platform.
> 
> Join our online community to chat in real time https://signalwire.community
> 
> Professional FreeSWITCH Services
> sales at freeswitch.com
> https://freeswitch.com
> 
> Official FreeSWITCH Sites
> https://freeswitch.com/oss
> https://freeswitch.org/confluence
> https://cluecon.com
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> https://freeswitch.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20191024/38954d25/attachment-0001.html>


More information about the FreeSWITCH-users mailing list