Hello, I am trying to call an alphanumeric user, for example john@domain.com and it doesn't work. I get a [NO_ROUTE_DESTINATION] error message. It only works if I add the number-alias option and dial the numeric extension. My user extension config (without number-alias) as follows: <include> <user id="john"> <params> <param name="password" value="1234"/> <param name="vm-password" value="1234"/> </params> <variables> <variable name="toll_allow" value=""/> <variable name="accountcode" value="john"/> <variable name="user_context" value="default"/> <variable name="effective_caller_id_name" value="John Doe"/> </variables> </user> </include> What am I doing wrong? Thanks
you could make an extension that does a regex capture for non-numeric destinations and then bridges to user/$1 On Thu, Sep 16, 2010 at 6:14 PM, Adolfo Delorenzo <adolfo@delorenzo.mobi> wrote:
Hello,
I am trying to call an alphanumeric user, for example john@domain.com and it doesn't work. I get a [NO_ROUTE_DESTINATION] error message. It only works if I add the number-alias option and dial the numeric extension.
My user extension config (without number-alias) as follows:
<include> <user id="john"> <params> <param name="password" value="1234"/> <param name="vm-password" value="1234"/> </params> <variables> <variable name="toll_allow" value=""/> <variable name="accountcode" value="john"/> <variable name="user_context" value="default"/> <variable name="effective_caller_id_name" value="John Doe"/> </variables> </user> </include>
What am I doing wrong?
Thanks
_______________________________________________ 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/ Twitter: http://twitter.com/FreeSWITCH_wire 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 googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
Anthony, Cool! It worked. In case anyone would like to know how: <extension name="capture alphanumeric" > <condition field="destination_number" expression="^(.*)$"> <action application="bridge" data="user/$1@${domain}"/> </condition> </extension> Thanks! On 16 September 2010 20:29, Anthony Minessale <anthony.minessale@gmail.com>wrote:
you could make an extension that does a regex capture for non-numeric destinations and then bridges to user/$1
On Thu, Sep 16, 2010 at 6:14 PM, Adolfo Delorenzo <adolfo@delorenzo.mobi> wrote:
Hello,
I am trying to call an alphanumeric user, for example john@domain.comand it doesn't work. I get a [NO_ROUTE_DESTINATION] error message. It only works if I add the number-alias option and dial the numeric extension.
My user extension config (without number-alias) as follows:
<include> <user id="john"> <params> <param name="password" value="1234"/> <param name="vm-password" value="1234"/> </params> <variables> <variable name="toll_allow" value=""/> <variable name="accountcode" value="john"/> <variable name="user_context" value="default"/> <variable name="effective_caller_id_name" value="John Doe"/> </variables> </user> </include>
What am I doing wrong?
Thanks
_______________________________________________ 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/ Twitter: http://twitter.com/FreeSWITCH_wire
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> googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
_______________________________________________ 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
Hello, what you did might work and might be ok for testing purposes but I suggest you change the value of the expression "^(.*)$" for something more specific, it is not safe to bridge to whatever is being sent to you without sanitizing the data! On Thu, Sep 16, 2010 at 8:32 PM, Adolfo Delorenzo <adolfo@delorenzo.mobi>wrote:
Anthony,
Cool! It worked. In case anyone would like to know how:
<extension name="capture alphanumeric" > <condition field="destination_number" expression="^(.*)$"> <action application="bridge" data="user/$1@${domain}"/> </condition> </extension>
Thanks!
On 16 September 2010 20:29, Anthony Minessale <anthony.minessale@gmail.com
wrote:
you could make an extension that does a regex capture for non-numeric destinations and then bridges to user/$1
On Thu, Sep 16, 2010 at 6:14 PM, Adolfo Delorenzo <adolfo@delorenzo.mobi> wrote:
Hello,
I am trying to call an alphanumeric user, for example john@domain.comand it doesn't work. I get a [NO_ROUTE_DESTINATION] error message. It only works if I add the number-alias option and dial the numeric extension.
My user extension config (without number-alias) as follows:
<include> <user id="john"> <params> <param name="password" value="1234"/> <param name="vm-password" value="1234"/> </params> <variables> <variable name="toll_allow" value=""/> <variable name="accountcode" value="john"/> <variable name="user_context" value="default"/> <variable name="effective_caller_id_name" value="John Doe"/> </variables> </user> </include>
What am I doing wrong?
Thanks
_______________________________________________ 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/ Twitter: http://twitter.com/FreeSWITCH_wire
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> googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
_______________________________________________ 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
participants (3)
-
Adolfo Delorenzo
-
Anthony Minessale
-
Milena