For _*public*_ documentation purposes, which is what people do who want to use free software do:<br><br>{foo=bar} is *only* valid at the beginning of the dial string.<br>it will set the same variables on every channel.<br>
<br>[foo=bar] goes before every individual dial string.<br><br>{foo=bar}[chan=a]sofia/default/<a href="mailto:blah@baz.com">blah@baz.com</a>,[chan=b]sofia/default/<a href="mailto:blah2@baz.com">blah2@baz.com</a><br><br><br>
<div class="gmail_quote">On Fri, Jun 6, 2008 at 9:49 AM, UV <<a href="mailto:uv@talknet.com.au">uv@talknet.com.au</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks Brian,<br>
<br>
That answers my question (not complaint) perfectly.<br>
<br>
For our internal documentation purposes, I assume, therefore, this format:<br>
<div class="Ih2E3d">{foo=bar}sofia/blah1/blah,{foo=baz}sofia/blah2/blah<br>
</div>Is equivalent to that:<br>
<div class="Ih2E3d">{foo=bar}sofia/blah1/blah,sofia/blah2/blah<br>
<br>
</div>And this format:<br>
<div class="Ih2E3d">[foo=bar]sofia/blah1/blah,sofia/blah2/blah<br>
</div>Means blah1 channel will have foo=bar where blah2 channel won't have the foo<br>
variable at all.<br>
<div class="Ih2E3d"><br>
-----Original Message-----<br>
From: <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a><br>
[mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>] On Behalf Of Brian<br>
West<br>
</div><div><div></div><div class="Wj3C7c">Sent: Friday, June 06, 2008 11:16 PM<br>
To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
Subject: Re: [Freeswitch-users] Forked dialing<br>
withdifferentchannelvarsset...<br>
<br>
Yes the square braces and curly braces mean two different things.<br>
<br>
For example if you do:<br>
<br>
{foo=bar}sofia/blah1/blah,sofia/blah2/blah<br>
<br>
foo=bar will be set on both blah1 and blah2 channels.<br>
<br>
In this example:<br>
<br>
[foo=bar]sofia/blah1/blah,[foo=baz]sofia/blah2/blah<br>
<br>
In this example foo will have different values for each leg depending<br>
on which one is bridged to in the end.<br>
<br>
If sofia/blah1 answers foo will be bar.. if sofia/blah2 answers foo<br>
will be baz<br>
<br>
/b<br>
<br>
<br>
<br>
On Jun 6, 2008, at 3:08 AM, Michael Collins wrote:<br>
<br>
> I think the square brackets and the curly brackets mean two different<br>
> things on the API originate command. When bkw or anthm responds (wink<br>
> wink) I'll update the bridge and/or originate wiki entries.<br>
><br>
> -MC<br>
><br>
>> -----Original Message-----<br>
>> From: <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a><br>
> [mailto:<a href="mailto:freeswitch-">freeswitch-</a><br>
>> <a href="mailto:users-bounces@lists.freeswitch.org">users-bounces@lists.freeswitch.org</a>] On Behalf Of UV<br>
>> Sent: Friday, June 06, 2008 12:20 AM<br>
>> To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
>> Subject: Re: [Freeswitch-users] Forked dialing<br>
>> withdifferentchannelvarsset...<br>
>><br>
>> It is quite confusing...<br>
>><br>
>> I would think the syntax would utilize the curly brackets and not the<br>
>> square<br>
>> brackets:<br>
>><br>
>> <action application="bridge"<br>
>> data="{effecitive_caller_id_number=1234}sofia/blah/blah,<br>
>> {effective_caller_id_number=55555}sofia/blah/blah"/><br>
>><br>
>> This is how we use it on the API ORIGINATE commands as described in<br>
>> <a href="http://wiki.freeswitch.org/wiki/Freeswitch_IVR_Originate" target="_blank">http://wiki.freeswitch.org/wiki/Freeswitch_IVR_Originate</a><br>
>><br>
>> but it is described also with the square brackets on<br>
>> <a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_bridgecall" target="_blank">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_bridgecall</a><br>
>><br>
>> Are both applicable?<br>
>><br>
>> -----Original Message-----<br>
>> From: <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a><br>
>> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>] On Behalf Of<br>
>> Michael<br>
>> Collins<br>
>> Sent: Friday, June 06, 2008 4:34 PM<br>
>> To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
>> Subject: Re: [Freeswitch-users] Forked dialing with<br>
>> differentchannelvarsset...<br>
>><br>
>> Brian,<br>
>><br>
>> Is this syntax going to be tagged for 1.0.1? I ask because the<br>
>> documentation guys are trying to get a handle on the deltas between<br>
>> 1.0.0 and <a href="http://1.0.1." target="_blank">1.0.1.</a><br>
>><br>
>> Thanks!<br>
>><br>
>>> -----Original Message-----<br>
>>> From: <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a><br>
>> [mailto:<a href="mailto:freeswitch-">freeswitch-</a><br>
>>> <a href="mailto:users-bounces@lists.freeswitch.org">users-bounces@lists.freeswitch.org</a>] On Behalf Of Brian West<br>
>>> Sent: Thursday, June 05, 2008 10:24 PM<br>
>>> To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
>>> Subject: Re: [Freeswitch-users] Forked dialing with different<br>
>>> channelvarsset...<br>
>>><br>
>>> Try this.. i'm kinda shocked you didn't see us talking about this<br>
> over<br>
>>> and over in the pasty 24 hours. You'll need to make sure you're on<br>
>>> the latest code for this:<br>
>>><br>
>>> <action application="bridge"<br>
>>> data="[effecitive_caller_id_number=1234]sofia/blah/blah,<br>
>>> [effective_caller_id_number=55555]sofia/blah/blah"/><br>
>>><br>
>>> /b<br>
>>><br>
>>><br>
>>><br>
>>>> On Jun 5, 2008, at 10:53 PM, Rupa Schomaker (lists) wrote:<br>
>>><br>
>>>> I have a seemingly simple problem that I can't figure out how to<br>
>>>> implement.<br>
>>>><br>
>>>> Simplified Problem:<br>
>>>><br>
>>>> I'd like to have my cell phone and my deskphone ring at the same<br>
>> time.<br>
>>>> This seems simple, but there is a small caveat. I need to have a<br>
>>>> channel variable set differently for my cellphone.<br>
>>>><br>
>>>> Specifically: voicepulse requires you to have the caller id number<br>
>> and<br>
>>>> caller id name set to the number in order to pass it on to the<br>
>>>> PSTN. I<br>
>>>> want to see the callerid name on my deskphone however.<br>
>>>><br>
>>>> ===<br>
>>>><br>
>>>> Ok, normally, I'd just do a:<br>
>>>><br>
>>>> <action application="bridge"<br>
>>>> data="sofia/internal/101%$${domain},sofia/gateway/voicepulse/$$<br>
>>>> {cellnumber}"/><br>
>>>><br>
>>>> but then my cell phone shows Unknown or Blocked when receiving the<br>
>>>> call.<br>
>>>><br>
>>>> If prior to that I do:<br>
>>>><br>
>>>> <action application="set"<br>
>>>> data="effective_caller_id_name=${caller_id_number}"/><br>
>>>><br>
>>>> Then I get the correct callerid on my cell, but only the callerid<br>
>>>> number<br>
>>>> on my deskphone.<br>
>>>><br>
>>>> I asked on #freeswitch and had some hints, but they either went<br>
> over<br>
>>>> my<br>
>>>> head or I didn't communicate my problem right.<br>
>>>><br>
>>>> Using multiple extension entries with continue="yes" doesn't seem<br>
> to<br>
>>>> execute them in parallel (so the deskphone and the cell don't ring<br>
>> at<br>
>>>> the same time).<br>
>>>><br>
>>>> The "obvious" answer is how I implemented this in asterisk -- and<br>
>>>> maybe<br>
>>>> that is my problem, thinking in terms of asterisk.<br>
>>>><br>
>>>> The bridge equivalent would be the dial() app. This allows me to<br>
>> dial<br>
>>>> back into the dialplan if I use the "local" channel. This gives a<br>
>>>> level<br>
>>>> of indirection that would then let me modify the channelvars as<br>
>>>> necessary.<br>
>>>><br>
>>>> The only way I can see to "call" back into the dialplan is to use<br>
>> the<br>
>>>> transfer application. But that can't do multiple extensions in<br>
>>>> parallel<br>
>>>> so doesn't solve my problem.<br>
>>>><br>
>>>> What am I missing?<br>
>>>><br>
>>>> -Rupa<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>
>>>><br>
>><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>
>>> 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>
>>><br>
>><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>
>> 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>
>><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>
>> 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>
>><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>
> 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>
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>
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><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400