[Freeswitch-users] Exporting Diversion Header Twice
Steven Ayre
steveayre at gmail.com
Wed Apr 23 13:55:37 MSD 2014
You could also try whether mod_sofia supports arrays for that variable
http://wiki.freeswitch.org/wiki/Dialplan_ARRAYS
On 23 April 2014 08:05, Dahlberg, David
<david.dahlberg at fkie.fraunhofer.de>wrote:
> Am Dienstag, den 22.04.2014, 12:40 -0400 schrieb Sanjiv Kumar:
> > 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.
> [..]
> > <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"/>
> >
>
> (A) In Freeswitch/Sofia SIP you're not actually writing a header, but
> you're writing a variable that in turn will tell mod_sofia to write a
> header. If you write to the same variable a second time, you will
> overwrite it.
>
> (B) Sip (as good old RFC 822) allows for multiple headers in in multiple
> formats. One possibility is actually adding multiple headers, the other
> is having one header with multiple values, separated by comma.
>
> So please try the following: Set the variable once, but with both
> values, separated by comma. The result will be, that mod_sophia adds
> indeed two separate headers.
>
> Cheers
> David
>
> --
> David Dahlberg
>
> Fraunhofer FKIE, Dept. Communication Systems (KOM) | Tel: +49-228-9435-845
> Fraunhoferstr. 20, 53343 Wachtberg, Germany | Fax: +49-228-856277
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.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
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140423/dbe8efbd/attachment.html
Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users
mailing list