You can put a comma sep list of dialplans in the sofia profile or as the arg to transfer if you wish and they are checked in order until one returns an extension.<br><br><br><div class="gmail_quote">On Sat, May 31, 2008 at 10:18 PM, Arnaldo de Moraes Pereira <<a href="mailto:ap@arnaldopereira.com">ap@arnaldopereira.com</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;"><div class="Ih2E3d">On Sun, Jun 1, 2008 at 12:04 AM, Michael S Collins<br>
<<a href="mailto:mercutio.viz@gmail.com">mercutio.viz@gmail.com</a>> wrote:<br>
> Just to confirm: you can run both dialplans simultaneously, no? I'm<br>
> thinking that it might be helpful to have a few sample extensions in each dp<br>
> type that are functionally identical. I'll see if I can come up with some<br>
> practical examples.<br>
<br>
</div>I could do some tests and write them on the wiki page. I've used<br>
asterisk's dialplan in many ways, so hopefully I can document most<br>
used cases. I can come up with some results within the next two days.<br>
<br>
After that, if anyone has some issue related to that, I'll be willing<br>
to fulfill it the freeswitch way.<br>
<div><div></div><div class="Wj3C7c"><br>
> -MC<br>
><br>
> Sent from my iPhone<br>
> On May 31, 2008, at 8:55 AM, "Anthony Minessale"<br>
> <<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>> wrote:<br>
><br>
> Another good transition tool to play with may be mod_dialplan_asterisk which<br>
> is in tree.<br>
><br>
> Once loaded in modules.conf.xml it can be used in your sofia profile by<br>
> adding "asterisk" as the dialplan parameter.<br>
> You can also transfer calls to it by specifying it as the dialplan param in<br>
> the transfer or execute_extension apps.<br>
><br>
> it's not entirely like the real asterisk dialplan but it is at least a close<br>
> familiarity.<br>
> You cannot include contexts in each other in ours because we do all our<br>
> dialplan logic before the call.<br>
><br>
> It's structured in the same way so you can create context default<br>
><br>
> [default]<br>
> ; and you can use comments the same way<br>
> ; here is a demo that is close to the extensions.conf in tree that installs<br>
> by default<br>
><br>
> ------------------<br>
> [default]<br>
><br>
> ; Things you're used to....<br>
> exten => music,n,Dial(SIP/<a href="mailto:1234@conference.freeswitch.org">1234@conference.freeswitch.org</a>|120)<br>
><br>
> ; similar pattern matching and caller-id match.<br>
> exten => _1XXXXX,n,set(cool=${EXTEN})<br>
> exten => _1XXXXX,n,set(myvar=true)<br>
> exten => _1XXXXX,n,Goto(default|music)<br>
> exten => 2137991400/1000,n,Goto(default|music)<br>
><br>
> ; we also embellished things a bit and added some of our own goodies<br>
> ; Some new magic you can do.... if you start the exten string with a ~ it<br>
> implies PCRE regex<br>
> ; *NOTE* the ,n, is there for familiarity purposes we do not parse it anyway<br>
> nor will we honor line numbers.<br>
><br>
> exten => ~^(18(0{2}|8{2}|7{2}|6{2})\d{7})$,n,enum($1)<br>
> exten => ~^(18(0{2}|8{2}|7{2}|6{2})\d{7})$,n,bridge(${enum_auto_route})<br>
><br>
> ; instead of exten, put anyting about the call you would rather match on.<br>
> ; either the names of a field in caller_profile or a string of variables to<br>
> expand.<br>
> caller_id_number => 2137991400,n,Goto(default|music)<br>
> ${sip_from_user} => bill,n,Goto(default|music)<br>
><br>
><br>
> Anyway you will find the XML dialplan more flexible but this may serve as a<br>
> stepping stone for beginners.<br>
><br>
><br>
><br>
><br>
> On Fri, May 30, 2008 at 7:07 PM, Michael Collins <<a href="mailto:mcollins@fcnetwork.com">mcollins@fcnetwork.com</a>><br>
> wrote:<br>
>><br>
>> FYI,<br>
>><br>
>><br>
>><br>
>> I create a new wiki page:<br>
>><br>
>> <a href="http://wiki.freeswitch.org/wiki/Rosetta_stone" target="_blank">http://wiki.freeswitch.org/wiki/Rosetta_stone</a><br>
>><br>
>><br>
>><br>
>> I thought maybe those who know about Asterisk and FreeSWITCH both could<br>
>> start dropping stuff in there. I think that people coming from Asterisk<br>
>> might have an easier time if they had some sort of frame of reference. Note<br>
>> that I put a disclaimer at the top – there isn't really a one-to-one<br>
>> Ast-to-FS translation for most of the stuff, but if you said to an<br>
>> experienced Asterisk user that "conf/dialplan/default.xml" is analogous to<br>
>> "/etc/asterisk/extensions.conf" then he/she would at least have a starting<br>
>> point. I'm hoping to add more stuff like the fact that there aren't really<br>
>> "priorities" in FS but that you can use scripting langs, ivr menus, etc. to<br>
>> mimic a lot of that kind of functionality.<br>
>><br>
>><br>
>><br>
>> Anyway, your thoughts and suggestions are welcomed. I will do my best to<br>
>> add stuff as I am able…<br>
>><br>
>><br>
>><br>
>> -MC<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>
> --<br>
> Anthony Minessale II<br>
><br>
> FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
> ClueCon <a href="http://www.cluecon.com/" target="_blank">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" target="_blank">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" target="_blank">iax:guest@conference.freeswitch.org/888</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>
> 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>
<br>
--<br>
</div></div>Arnaldo M Pereira<br>
<a href="mailto:ap@arnaldopereira.com">ap@arnaldopereira.com</a><br>
<a href="http://www.arnaldopereira.com" target="_blank">http://www.arnaldopereira.com</a><br>
<div><div></div><div class="Wj3C7c"><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