I just ran some tests and I can find no evidence that [] populates only the b leg. In all my tests the {} and [] methods behave exactly as documented, populating all a legs or single a legs, respectively.<br><br>-MC<br><br>
<div class="gmail_quote">On Fri, Sep 24, 2010 at 2:44 PM, Sergey Okhapkin <span dir="ltr"><<a href="mailto:sos@sokhapkin.dyndns.org">sos@sokhapkin.dyndns.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I'm not sure if wiki text is correct...<br>
<div><div></div><div class="h5"><br>
On Friday 24 September 2010, David Ponzone wrote:<br>
> Sergey,<br>
><br>
> I am sorry, but I really think you are the one who is confused :)<br>
><br>
> From the wiki:<br>
> {foo=bar} is *only* valid at the beginning of the dial string. It will<br>
> set the same variables on every channel.<br>
> [foo=bar] goes before every individual dial string and will set the<br>
> variable values specified for only this user's dial string channel.<br>
><br>
> David Ponzone Direction Technique<br>
> email: <a href="mailto:david.ponzone@ipeva.fr">david.ponzone@ipeva.fr</a><br>
> tel: 01 74 03 18 97<br>
> gsm: 06 66 98 76 34<br>
><br>
> Service Client IPeva<br>
> tel: 0811 46 26 26<br>
> <a href="http://www.ipeva.fr" target="_blank">www.ipeva.fr</a> - <a href="http://www.ipeva-studio.com" target="_blank">www.ipeva-studio.com</a><br>
><br>
> Ce message et toutes les pièces jointes sont confidentiels et établis<br>
> à l'intention exclusive de ses destinataires. Toute utilisation ou<br>
> diffusion non autorisée est interdite. Tout message électronique est<br>
> susceptible d'altération. IPeva décline toute responsabilité au<br>
> titre de ce message s'il a été altéré, déformé ou falsifié. Si<br>
> vous n'êtes pas destinataire de ce message, merci de le détruire<br>
> immédiatement et d'avertir l'expéditeur.<br>
><br>
> Le 24/09/2010 à 22:52, Sergey Okhapkin a écrit :<br>
> > No, whatever is set in {} is unavailable to b leg. [] sets b leg<br>
> > variables and<br>
> > are unavailable on a leg.<br>
> ><br>
> > On Friday 24 September 2010, David Ponzone wrote:<br>
> >> Sergey,<br>
> >><br>
> >> you are confusing me.<br>
> >> It seemed to me that when you have only one destination leg, {} and<br>
> >> []<br>
> >> are the same.<br>
> >><br>
> >> David Ponzone Direction Technique<br>
> >> email: <a href="mailto:david.ponzone@ipeva.fr">david.ponzone@ipeva.fr</a><br>
> >> tel: 01 74 03 18 97<br>
> >> gsm: 06 66 98 76 34<br>
> >><br>
> >> Service Client IPeva<br>
> >> tel: 0811 46 26 26<br>
> >> <a href="http://www.ipeva.fr" target="_blank">www.ipeva.fr</a> - <a href="http://www.ipeva-studio.com" target="_blank">www.ipeva-studio.com</a><br>
> >><br>
> >> Ce message et toutes les pièces jointes sont confidentiels et<br>
> >> établis<br>
> >> à l'intention exclusive de ses destinataires. Toute utilisation ou<br>
> >> diffusion non autorisée est interdite. Tout message électronique<br>
> >> est<br>
> >> susceptible d'altération. IPeva décline toute responsabilité au<br>
> >> titre de ce message s'il a été altéré, déformé ou falsifié. Si<br>
> >> vous n'êtes pas destinataire de ce message, merci de le détruire<br>
> >> immédiatement et d'avertir l'expéditeur.<br>
> >><br>
> >> Le 24/09/2010 à 22:28, Sergey Okhapkin a écrit :<br>
> >>> Correction:<br>
> >>><br>
> >>> bridge [sip_cid_type=none]sofia/etc<br>
> >>><br>
> >>> [] but not {}<br>
> >>><br>
> >>> On Friday 24 September 2010, David Ponzone wrote:<br>
> >>>> Mario,<br>
> >>>><br>
> >>>> To save you some time, most carriers will accept in the FROM field.<br>
> >>>> AFAIR, FS defaults to Remote-Party-Id, so perhaps you just need to<br>
> >>>> set<br>
> >>>> this before your dialstring:<br>
> >>>> bridge {sip_cid_type=none}sofia/etc...<br>
> >>>><br>
> >>>> David Ponzone Direction Technique<br>
> >>>> email: <a href="mailto:david.ponzone@ipeva.fr">david.ponzone@ipeva.fr</a><br>
> >>>> tel: 01 74 03 18 97<br>
> >>>> gsm: 06 66 98 76 34<br>
> >>>><br>
> >>>> Service Client IPeva<br>
> >>>> tel: 0811 46 26 26<br>
> >>>> <a href="http://www.ipeva.fr" target="_blank">www.ipeva.fr</a> - <a href="http://www.ipeva-studio.com" target="_blank">www.ipeva-studio.com</a><br>
> >>>><br>
> >>>> Ce message et toutes les pièces jointes sont confidentiels et<br>
> >>>> établis<br>
> >>>> à l'intention exclusive de ses destinataires. Toute utilisation ou<br>
> >>>> diffusion non autorisée est interdite. Tout message électronique<br>
> >>>> est<br>
> >>>> susceptible d'altération. IPeva décline toute responsabilité au<br>
> >>>> titre de ce message s'il a été altéré, déformé ou falsifié.<br>
> >>>> Si<br>
> >>>> vous n'êtes pas destinataire de ce message, merci de le détruire<br>
> >>>> immédiatement et d'avertir l'expéditeur.<br>
> >>>><br>
> >>>> Le 24/09/2010 à 21:54, Sergey Okhapkin a écrit :<br>
> >>>>> Does the gateway uid1 allow to specify CID number?<br>
> >>>>><br>
> >>>>> On Friday 24 September 2010, Mario wrote:<br>
> >>>>>> I am bridging a call from either inside or outside to an<br>
> >>>>>> emergency<br>
> >>>>>> number on an att cellphone which works fine. I am trying to pass<br>
> >>>>>> the<br>
> >>>>>> original caller id or anything else for that matter as the caller<br>
> >>>>>> id/name. I only get "unknown". I also tried to send to a VOIP<br>
> >>>>>> number and<br>
> >>>>>> it also gets "unknown" so I am thinking it is not att. I tried<br>
> >>>>>> various<br>
> >>>>>> combinations of things I found on the web but nogo. Anyone see<br>
> >>>>>> the<br>
> >>>>>> problem below? Thanks!<br>
> >>>>>> Mario<br>
> >>>>>><br>
> >>>>>> <extension name="mx911"><br>
> >>>>>> <condition field="destination_number" expression="^2911$"><br>
> >>>>>> <action application="set"<br>
> >>>>>> data="effective_caller_id_name=Emergency"/> <action<br>
> >>>>>> application="set"<br>
> >>>>>> data="effective_caller_id_number=9161234567"/><br>
> >>>>>> <action application="set" data="hangup_after_bridge=true"/><br>
> >>>>>> <action application="bridge" data="sofia/gateway/<br>
> >>>>>> uid1/19161112222"/><br>
> >>>>>> </condition><br>
> >>>>>> </extension><br>
> >>>>>><br>
> >>>>>> _______________________________________________<br>
> >>>>>> FreeSWITCH-users mailing list<br>
> >>>>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> >>>>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> >>>>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-u" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-u</a><br>
</div></div>> >>>>>>se rs <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<div class="im">> >>>>><br>
> >>>>> _______________________________________________<br>
> >>>>> FreeSWITCH-users mailing list<br>
> >>>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> >>>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> >>>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-us" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-us</a><br>
</div>> >>>>>er s <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<div><div></div><div class="h5">> >>><br>
> >>> _______________________________________________<br>
> >>> FreeSWITCH-users mailing list<br>
> >>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> >>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> >>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-user" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-user</a><br>
> >>>s <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
> ><br>
> > _______________________________________________<br>
> > FreeSWITCH-users mailing list<br>
> > <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> > <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> > UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> > <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br>