voicemail_inject (Mod voicemail) problems
hi, we have problems getting "voicemail_inject" to work. whatever we do, we alway get the same error message (fs newest version). for example we do: voicemail_inject 1000@192.168.2.2 /usr/local/freeswitch/recordings/1000_2012-01-07-21-47-44.wav 1001 test we will always get: Error: [group=<group>[@domain]|domain=<domain>|<box>[@<domain>]] <sound_file> [<cid_num>] [<cid_name>] what are we doing wrong? thanks a lot for your help! kind regards dennis
is 192.168.2.2 a valid domain in your user directory? On Mon, Jan 9, 2012 at 8:40 AM, Dennis <odermann@googlemail.com> wrote:
hi,
we have problems getting "voicemail_inject" to work. whatever we do, we alway get the same error message (fs newest version).
for example we do: voicemail_inject 1000@192.168.2.2 /usr/local/freeswitch/recordings/1000_2012-01-07-21-47-44.wav 1001 test
we will always get: Error: [group=<group>[@domain]|domain=<domain>|<box>[@<domain>]] <sound_file> [<cid_num>] [<cid_name>]
what are we doing wrong?
thanks a lot for your help!
kind regards dennis
_________________________________________________________________________ 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
-- 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
hi anthony, we fixed the problem and yes, the mentioned ip is a valid domain. the error was because of a problem with the LUA User Directory (http://wiki.freeswitch.org/wiki/Lua_freeswitch_dbh#Lua_Script_2). with the given example the voicebox did not work properly (beside voicemail_inject everything else worked): XML_STRING = [[<?xml version="1.0" encoding="UTF-8" standalone="no"?> <document type="freeswitch/xml"> <section name="directory"> <domain name="]] .. u.domain .. [["> <user id="]] .. u.id .. [[" mailbox="]] .. u.mailbox .. [[" cidr="]] .. u.cidr .. [[" number-alias="]] .. u["number-alias"] .. [["> <params> <param name="password" value="]] .. u.password .. [["/> <param name="dial-string" value="]] .. u["dial-string"] .. [["/> </params> <variables> <variable name="user_context" value="]] .. u.user_context .. [["/> </variables> </user> </domain> </section> </document>]] we made some small changes to the script and it worked: XML_STRING = [[<?xml version="1.0" encoding="UTF-8" standalone="no"?> <document type="freeswitch/xml"> <section name="directory"> <domain name="]] .. u.domain .. [["> <params> <param name="dial-string" value="{sip_invite_domain=${dialed_domain},presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}"/> </params> <groups> <group name="default"> <users> <user id="]] .. u.username .. [["> <params> <param name="password" value="]] .. u.password .. [["/> <param name="vm-password" value="]] .. u.username .. [["/> </params> <variables> <variable name="user_context" value="]] .. u.user_context .. [["/> </variables> </user> </users> </group> </groups> </domain> </section> </document>]] we do not know, if there is a problem with the LUA example or if we do not understand how to use it. kind regards dennis 2012/1/9 Anthony Minessale <anthony.minessale@gmail.com>:
is 192.168.2.2 a valid domain in your user directory?
participants (2)
-
Anthony Minessale
-
Dennis