SIP header on only one fork of a bridge
Hello list, I would like to bridge a call to multiple SIP endpoints, but add different headers to each. I'm not entirely sure how to do this. I have no problem exporting a SIP header that does what I want for one destination, but I'm not sure how to set it for two. My application is that I want two IP phones to ring - one with the internal ring-ring splash, the others with a group-answer (single ring, then lamp flash only), for administrative assistants, etc. How do I export different variables to each branch? Thanks! -Tim
use [] instead of {} in front of the destination David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34 Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur. Le 28/06/2010 à 20:45, Tim St. Pierre a écrit :
Hello list,
I would like to bridge a call to multiple SIP endpoints, but add different headers to each.
I'm not entirely sure how to do this. I have no problem exporting a SIP header that does what I want for one destination, but I'm not sure how to set it for two.
My application is that I want two IP phones to ring - one with the internal ring-ring splash, the others with a group-answer (single ring, then lamp flash only), for administrative assistants, etc.
How do I export different variables to each branch?
Thanks!
-Tim
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On Mon, Jun 28, 2010 at 12:42 PM, Brian West <brian@freeswitch.org> wrote:
You can use [] in front of each sofia/ channel.
This syntax is explained at the top of the channel variables wiki page: http://wiki.freeswitch.org/wiki/Channel_Variables -MC
<action application="bridge" data="{this_is_global=true}[this_is_gw1_only=true]sofia/gateway/gw1/$1|[this_is_gw2_only=true]sofia/gateway/gw2/$1"/> On 28 June 2010 19:45, Tim St. Pierre <fs-list@communicatefreely.net> wrote:
Hello list,
I would like to bridge a call to multiple SIP endpoints, but add different headers to each.
I'm not entirely sure how to do this. I have no problem exporting a SIP header that does what I want for one destination, but I'm not sure how to set it for two.
My application is that I want two IP phones to ring - one with the internal ring-ring splash, the others with a group-answer (single ring, then lamp flash only), for administrative assistants, etc.
How do I export different variables to each branch?
Thanks!
-Tim
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Thanks all, I read that bit, but didn't fully understand it's implications. I'll give that a go. -Tim Steven Ayre wrote:
<action application="bridge" data="{this_is_global=true}[this_is_gw1_only=true]sofia/gateway/gw1/$1|[this_is_gw2_only=true]sofia/gateway/gw2/$1"/>
On 28 June 2010 19:45, Tim St. Pierre <fs-list@communicatefreely.net <mailto:fs-list@communicatefreely.net>> wrote:
Hello list,
I would like to bridge a call to multiple SIP endpoints, but add different headers to each.
I'm not entirely sure how to do this. I have no problem exporting a SIP header that does what I want for one destination, but I'm not sure how to set it for two.
My application is that I want two IP phones to ring - one with the internal ring-ring splash, the others with a group-answer (single ring, then lamp flash only), for administrative assistants, etc.
How do I export different variables to each branch?
Thanks!
-Tim
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
------------------------------------------------------------------------
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (5)
-
Brian West
-
David Ponzone
-
Michael Collins
-
Steven Ayre
-
Tim St. Pierre