Hi I am trying to achieve that a user with non numeric id like sip uri somebody@nothing.nil will have access to mailbox. I have read that a user with such an id have to add the mailbox param, which I added already, but it just don't work. My file jano.xml is in the directory/default and looks like this: <include> <user id="jano" mailbox="502"> <!--if id is numeric mailbox param is not necessary--> <params> <param name="vm-password" value="1001"/> </params> <variables> <!--all variables here will be set on all inbound calls that originate from this user --> <!-- set these to take advantage of a dialplan localized to this user --> <variable name="accountcode" value="502"/> <variable name="user_context" value="default"/> <variable name="effective_caller_id_ name" value="jano"/> <variable name="effective_caller_id_number" value="502"/> </variables> </user> </include> I get a warning like this: 2012-02-17 12:01:20.044258 [WARNING] mod_voicemail.c:2168 Can't find user [$1@a.b.c.d] Any ideas? Thanks a lot!
Please post you dialplan. 17 февраля 2012 г. 15:22 пользователь Ján Hrnko <janhrnko@gmail.com>написал:
Hi I am trying to achieve that a user with non numeric id like sip uri somebody@nothing.nil will have access to mailbox. I have read that a user with such an id have to add the mailbox param, which I added already, but it just don't work. My file jano.xml is in the directory/default and looks like this:
<include> <user id="jano" mailbox="502"> <!--if id is numeric mailbox param is not necessary--> <params> <param name="vm-password" value="1001"/> </params> <variables> <!--all variables here will be set on all inbound calls that originate from this user --> <!-- set these to take advantage of a dialplan localized to this user --> <variable name="accountcode" value="502"/> <variable name="user_context" value="default"/> <variable name="effective_caller_id_ name" value="jano"/> <variable name="effective_caller_id_number" value="502"/> </variables> </user> </include>
I get a warning like this: 2012-02-17 12:01:20.044258 [WARNING] mod_voicemail.c:2168 Can't find user [$1@a.b.c.d]
Any ideas? Thanks a lot!
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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
Hi and thank you for your answer. I use the default dialplan, only these lines are changed <extension name="vbox"> <condition field="destination_number" expression="^vb-(176[0-9])$"> <action application="answer"/> <action application="voicemail" data="default ${domain_name} $1"/> </condition> </extension> <extension name="vmenu"> <condition field="destination_number" expression="^vm-.*$"> <action application="voicemail" data="check default ${domain_name} $1"/> </condition> </extension> As I watched freeswitch in debug mode it will pass the regexp and hand it over to voicemail app, but then it just drop the call because of "Can't find user $1...", how can I chceck what is in that variable? Thank you very much! In addition I am using kamailio and freeswitch together. Messages from kamailio are routed to freeswitch voicemail service. When I use only numbers everything is just fine 1760@mydomain.com works but jano@mydomain.com does not. 2012/2/19 Anton Kvashenkin <anton.jugatsu@gmail.com>
Please post you dialplan.
17 февраля 2012 г. 15:22 пользователь Ján Hrnko <janhrnko@gmail.com>написал:
Hi I am trying to achieve that a user with non numeric id like sip uri somebody@nothing.nil will have access to mailbox. I have read that a user with such an id have to add the mailbox param, which I added already, but it just don't work. My file jano.xml is in the directory/default and looks like this:
<include> <user id="jano" mailbox="502"> <!--if id is numeric mailbox param is not necessary--> <params> <param name="vm-password" value="1001"/> </params> <variables> <!--all variables here will be set on all inbound calls that originate from this user --> <!-- set these to take advantage of a dialplan localized to this user --> <variable name="accountcode" value="502"/> <variable name="user_context" value="default"/> <variable name="effective_caller_id_ name" value="jano"/> <variable name="effective_caller_id_number" value="502"/> </variables> </user> </include>
I get a warning like this: 2012-02-17 12:01:20.044258 [WARNING] mod_voicemail.c:2168 Can't find user [$1@a.b.c.d]
Any ideas? Thanks a lot!
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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
<user id="jano" number-alias="502"> /b On Feb 17, 2012, at 5:22 AM, Ján Hrnko wrote:
<user id="jano" mailbox="502">
-- Brian West FreeSWITCH Solutions, LLC Phone: +1 (918) 420-9266 Fax: +1 (918) 420-9267 brian@freeswitch.org http://www.freeswitch.org
Thank you for your responses. Actually I was missing parenthesis () in regular expression, so the variable $1 was empty. The correction was made here: <extension name="vmenu"> <condition field="destination_number" expression="^vm-.*$"> <action application="voicemail" data="check default ${domain_name} $1"/> </condition> </extension> To this: <extension name="vmenu"> <condition field="destination_number" expression="^vm-(.*)$"> <action application="voicemail" data="check default ${domain_name} $1"/> </condition> </extension> It works with mailbox param as well. Thank you very much! 2012/2/20 Brian West <brian@freeswitch.org>
<user id="jano" number-alias="502">
/b
On Feb 17, 2012, at 5:22 AM, Ján Hrnko wrote:
<user id="jano" mailbox="502">
-- Brian West FreeSWITCH Solutions, LLC Phone: +1 (918) 420-9266 Fax: +1 (918) 420-9267 brian@freeswitch.org http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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
participants (3)
-
Anton Kvashenkin
-
Brian West
-
Ján Hrnko