FYI, I create a new wiki page: http://wiki.freeswitch.org/wiki/Rosetta_stone I thought maybe those who know about Asterisk and FreeSWITCH both could start dropping stuff in there. I think that people coming from Asterisk might have an easier time if they had some sort of frame of reference. Note that I put a disclaimer at the top - there isn't really a one-to-one Ast-to-FS translation for most of the stuff, but if you said to an experienced Asterisk user that "conf/dialplan/default.xml" is analogous to "/etc/asterisk/extensions.conf" then he/she would at least have a starting point. I'm hoping to add more stuff like the fact that there aren't really "priorities" in FS but that you can use scripting langs, ivr menus, etc. to mimic a lot of that kind of functionality. Anyway, your thoughts and suggestions are welcomed. I will do my best to add stuff as I am able... -MC
Another good transition tool to play with may be mod_dialplan_asterisk which is in tree. Once loaded in modules.conf.xml it can be used in your sofia profile by adding "asterisk" as the dialplan parameter. You can also transfer calls to it by specifying it as the dialplan param in the transfer or execute_extension apps. it's not entirely like the real asterisk dialplan but it is at least a close familiarity. You cannot include contexts in each other in ours because we do all our dialplan logic before the call. It's structured in the same way so you can create context default [default] ; and you can use comments the same way ; here is a demo that is close to the extensions.conf in tree that installs by default ------------------ [default] ; Things you're used to.... exten => music,n,Dial(SIP/1234@conference.freeswitch.org|120) ; similar pattern matching and caller-id match. exten => _1XXXXX,n,set(cool=${EXTEN}) exten => _1XXXXX,n,set(myvar=true) exten => _1XXXXX,n,Goto(default|music) exten => 2137991400/1000,n,Goto(default|music) ; we also embellished things a bit and added some of our own goodies ; Some new magic you can do.... if you start the exten string with a ~ it implies PCRE regex ; *NOTE* the ,n, is there for familiarity purposes we do not parse it anyway nor will we honor line numbers. exten => ~^(18(0{2}|8{2}|7{2}|6{2})\d{7})$,n,enum($1) exten => ~^(18(0{2}|8{2}|7{2}|6{2})\d{7})$,n,bridge(${enum_auto_route}) ; instead of exten, put anyting about the call you would rather match on. ; either the names of a field in caller_profile or a string of variables to expand. caller_id_number => 2137991400,n,Goto(default|music) ${sip_from_user} => bill,n,Goto(default|music) Anyway you will find the XML dialplan more flexible but this may serve as a stepping stone for beginners. On Fri, May 30, 2008 at 7:07 PM, Michael Collins <mcollins@fcnetwork.com> wrote:
FYI,
I create a new wiki page:
http://wiki.freeswitch.org/wiki/Rosetta_stone
I thought maybe those who know about Asterisk and FreeSWITCH both could start dropping stuff in there. I think that people coming from Asterisk might have an easier time if they had some sort of frame of reference. Note that I put a disclaimer at the top – there isn't really a one-to-one Ast-to-FS translation for most of the stuff, but if you said to an experienced Asterisk user that "conf/dialplan/default.xml" is analogous to "/etc/asterisk/extensions.conf" then he/she would at least have a starting point. I'm hoping to add more stuff like the fact that there aren't really "priorities" in FS but that you can use scripting langs, ivr menus, etc. to mimic a lot of that kind of functionality.
Anyway, your thoughts and suggestions are welcomed. I will do my best to add stuff as I am able…
-MC
_______________________________________________ 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
Just to confirm: you can run both dialplans simultaneously, no? I'm thinking that it might be helpful to have a few sample extensions in each dp type that are functionally identical. I'll see if I can come up with some practical examples. -MC Sent from my iPhone On May 31, 2008, at 8:55 AM, "Anthony Minessale" <anthony.minessale@gmail.com
wrote:
Another good transition tool to play with may be mod_dialplan_asterisk which is in tree.
Once loaded in modules.conf.xml it can be used in your sofia profile by adding "asterisk" as the dialplan parameter. You can also transfer calls to it by specifying it as the dialplan param in the transfer or execute_extension apps.
it's not entirely like the real asterisk dialplan but it is at least a close familiarity. You cannot include contexts in each other in ours because we do all our dialplan logic before the call.
It's structured in the same way so you can create context default
[default] ; and you can use comments the same way ; here is a demo that is close to the extensions.conf in tree that installs by default
------------------ [default]
; Things you're used to.... exten => music,n,Dial(SIP/1234@conference.freeswitch.org|120)
; similar pattern matching and caller-id match. exten => _1XXXXX,n,set(cool=${EXTEN}) exten => _1XXXXX,n,set(myvar=true) exten => _1XXXXX,n,Goto(default|music) exten => 2137991400/1000,n,Goto(default|music)
; we also embellished things a bit and added some of our own goodies ; Some new magic you can do.... if you start the exten string with a ~ it implies PCRE regex ; *NOTE* the ,n, is there for familiarity purposes we do not parse it anyway nor will we honor line numbers.
exten => ~^(18(0{2}|8{2}|7{2}|6{2})\d{7})$,n,enum($1) exten => ~^(18(0{2}|8{2}|7{2}|6{2})\d{7})$,n,bridge($ {enum_auto_route})
; instead of exten, put anyting about the call you would rather match on. ; either the names of a field in caller_profile or a string of variables to expand. caller_id_number => 2137991400,n,Goto(default|music) ${sip_from_user} => bill,n,Goto(default|music)
Anyway you will find the XML dialplan more flexible but this may serve as a stepping stone for beginners.
On Fri, May 30, 2008 at 7:07 PM, Michael Collins <mcollins@fcnetwork.com
wrote: FYI,
I create a new wiki page:
http://wiki.freeswitch.org/wiki/Rosetta_stone
I thought maybe those who know about Asterisk and FreeSWITCH both could start dropping stuff in there. I think that people coming from Asterisk might have an easier time if they had some sort of frame of reference. Note that I put a disclaimer at the top – there isn't really a one-to-one Ast-to-FS translation for most of the stu ff, but if you said to an experienced Asterisk user that "conf/dialp lan/default.xml" is analogous to "/etc/asterisk/extensions.conf" the n he/she would at least have a starting point. I'm hoping to add mo re stuff like the fact that there aren't really "priorities" in FS b ut that you can use scripting langs, ivr menus, etc. to mimic a lot of that kind of functionality.
Anyway, your thoughts and suggestions are welcomed. I will do my best to add stuff as I am able…
-MC
_______________________________________________ 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
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org iax:guest@conference.freeswitch.org/888 _______________________________________________ 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 Sun, Jun 1, 2008 at 12:04 AM, Michael S Collins <mercutio.viz@gmail.com> wrote:
Just to confirm: you can run both dialplans simultaneously, no? I'm thinking that it might be helpful to have a few sample extensions in each dp type that are functionally identical. I'll see if I can come up with some practical examples.
I could do some tests and write them on the wiki page. I've used asterisk's dialplan in many ways, so hopefully I can document most used cases. I can come up with some results within the next two days. After that, if anyone has some issue related to that, I'll be willing to fulfill it the freeswitch way.
-MC
Sent from my iPhone On May 31, 2008, at 8:55 AM, "Anthony Minessale" <anthony.minessale@gmail.com> wrote:
Another good transition tool to play with may be mod_dialplan_asterisk which is in tree.
Once loaded in modules.conf.xml it can be used in your sofia profile by adding "asterisk" as the dialplan parameter. You can also transfer calls to it by specifying it as the dialplan param in the transfer or execute_extension apps.
it's not entirely like the real asterisk dialplan but it is at least a close familiarity. You cannot include contexts in each other in ours because we do all our dialplan logic before the call.
It's structured in the same way so you can create context default
[default] ; and you can use comments the same way ; here is a demo that is close to the extensions.conf in tree that installs by default
------------------ [default]
; Things you're used to.... exten => music,n,Dial(SIP/1234@conference.freeswitch.org|120)
; similar pattern matching and caller-id match. exten => _1XXXXX,n,set(cool=${EXTEN}) exten => _1XXXXX,n,set(myvar=true) exten => _1XXXXX,n,Goto(default|music) exten => 2137991400/1000,n,Goto(default|music)
; we also embellished things a bit and added some of our own goodies ; Some new magic you can do.... if you start the exten string with a ~ it implies PCRE regex ; *NOTE* the ,n, is there for familiarity purposes we do not parse it anyway nor will we honor line numbers.
exten => ~^(18(0{2}|8{2}|7{2}|6{2})\d{7})$,n,enum($1) exten => ~^(18(0{2}|8{2}|7{2}|6{2})\d{7})$,n,bridge(${enum_auto_route})
; instead of exten, put anyting about the call you would rather match on. ; either the names of a field in caller_profile or a string of variables to expand. caller_id_number => 2137991400,n,Goto(default|music) ${sip_from_user} => bill,n,Goto(default|music)
Anyway you will find the XML dialplan more flexible but this may serve as a stepping stone for beginners.
On Fri, May 30, 2008 at 7:07 PM, Michael Collins <mcollins@fcnetwork.com> wrote:
FYI,
I create a new wiki page:
http://wiki.freeswitch.org/wiki/Rosetta_stone
I thought maybe those who know about Asterisk and FreeSWITCH both could start dropping stuff in there. I think that people coming from Asterisk might have an easier time if they had some sort of frame of reference. Note that I put a disclaimer at the top – there isn't really a one-to-one Ast-to-FS translation for most of the stuff, but if you said to an experienced Asterisk user that "conf/dialplan/default.xml" is analogous to "/etc/asterisk/extensions.conf" then he/she would at least have a starting point. I'm hoping to add more stuff like the fact that there aren't really "priorities" in FS but that you can use scripting langs, ivr menus, etc. to mimic a lot of that kind of functionality.
Anyway, your thoughts and suggestions are welcomed. I will do my best to add stuff as I am able…
-MC
_______________________________________________ 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
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org iax:guest@conference.freeswitch.org/888
_______________________________________________ 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
_______________________________________________ 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
-- Arnaldo M Pereira ap@arnaldopereira.com http://www.arnaldopereira.com
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. On Sat, May 31, 2008 at 10:18 PM, Arnaldo de Moraes Pereira < ap@arnaldopereira.com> wrote:
On Sun, Jun 1, 2008 at 12:04 AM, Michael S Collins <mercutio.viz@gmail.com> wrote:
Just to confirm: you can run both dialplans simultaneously, no? I'm thinking that it might be helpful to have a few sample extensions in each dp type that are functionally identical. I'll see if I can come up with some practical examples.
I could do some tests and write them on the wiki page. I've used asterisk's dialplan in many ways, so hopefully I can document most used cases. I can come up with some results within the next two days.
After that, if anyone has some issue related to that, I'll be willing to fulfill it the freeswitch way.
-MC
Sent from my iPhone On May 31, 2008, at 8:55 AM, "Anthony Minessale" <anthony.minessale@gmail.com> wrote:
Another good transition tool to play with may be mod_dialplan_asterisk which is in tree.
Once loaded in modules.conf.xml it can be used in your sofia profile by adding "asterisk" as the dialplan parameter. You can also transfer calls to it by specifying it as the dialplan param in the transfer or execute_extension apps.
it's not entirely like the real asterisk dialplan but it is at least a close familiarity. You cannot include contexts in each other in ours because we do all our dialplan logic before the call.
It's structured in the same way so you can create context default
[default] ; and you can use comments the same way ; here is a demo that is close to the extensions.conf in tree that installs by default
------------------ [default]
; Things you're used to.... exten => music,n,Dial(SIP/1234@conference.freeswitch.org|120)
; similar pattern matching and caller-id match. exten => _1XXXXX,n,set(cool=${EXTEN}) exten => _1XXXXX,n,set(myvar=true) exten => _1XXXXX,n,Goto(default|music) exten => 2137991400/1000,n,Goto(default|music)
; we also embellished things a bit and added some of our own goodies ; Some new magic you can do.... if you start the exten string with a ~ it implies PCRE regex ; *NOTE* the ,n, is there for familiarity purposes we do not parse it anyway nor will we honor line numbers.
exten => ~^(18(0{2}|8{2}|7{2}|6{2})\d{7})$,n,enum($1) exten => ~^(18(0{2}|8{2}|7{2}|6{2})\d{7})$,n,bridge(${enum_auto_route})
; instead of exten, put anyting about the call you would rather match on. ; either the names of a field in caller_profile or a string of variables to expand. caller_id_number => 2137991400,n,Goto(default|music) ${sip_from_user} => bill,n,Goto(default|music)
Anyway you will find the XML dialplan more flexible but this may serve as a stepping stone for beginners.
On Fri, May 30, 2008 at 7:07 PM, Michael Collins <mcollins@fcnetwork.com
wrote:
FYI,
I create a new wiki page:
http://wiki.freeswitch.org/wiki/Rosetta_stone
I thought maybe those who know about Asterisk and FreeSWITCH both could start dropping stuff in there. I think that people coming from Asterisk might have an easier time if they had some sort of frame of reference.
Note
that I put a disclaimer at the top – there isn't really a one-to-one Ast-to-FS translation for most of the stuff, but if you said to an experienced Asterisk user that "conf/dialplan/default.xml" is analogous to "/etc/asterisk/extensions.conf" then he/she would at least have a starting point. I'm hoping to add more stuff like the fact that there aren't really "priorities" in FS but that you can use scripting langs, ivr menus, etc. to mimic a lot of that kind of functionality.
Anyway, your thoughts and suggestions are welcomed. I will do my best to add stuff as I am able…
-MC
_______________________________________________ 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
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/
AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888
_______________________________________________ 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
_______________________________________________ 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
-- Arnaldo M Pereira ap@arnaldopereira.com http://www.arnaldopereira.com
_______________________________________________ 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
Anthony Minessale wrote:
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.
On Sat, May 31, 2008 at 10:18 PM, Arnaldo de Moraes Pereira <ap@arnaldopereira.com <mailto:ap@arnaldopereira.com>> wrote:
On Sun, Jun 1, 2008 at 12:04 AM, Michael S Collins <mercutio.viz@gmail.com <mailto:mercutio.viz@gmail.com>> wrote: > Just to confirm: you can run both dialplans simultaneously, no? I'm
I'd just like to put in my opinion here: I think it's best to view the mod_dialplan_asterisk as a crutch. I do not mean to say that any work that anthm or anybody else did was bad; actually quite the opposite. To fit something like the old Asterisk dialplan into the workings of a completely different type of a dialplan is amazing. However, the sooner that a user of FreeSWITCH can free himself of "The Old Asterisk Way" the better his experience will be in the long term. I personally chose to rebuild my dialplan from the ground-up instead of trying the mod_dialplan_asterisk. It was a little like diving in to the deep end when you have just learned how to float, but I have been nothing but delighted with the results. I find the dialplan XML to be very flexibile and I love the fact that it uses regexes for pattern matching. I will try to elaborate on my experiences and provide users with tips for converting at Cluecon in August. -- Yossi Neiman Cartis Solutions, Inc. http://www.cartissolutions.com
participants (5)
-
Anthony Minessale
-
Arnaldo de Moraes Pereira
-
Michael Collins
-
Michael S Collins
-
Yossi Neiman