Hi This is the weird part. I use the same directory.php to authenticate which means that my script should work. In my directory.php, it populates user and domain like this: $xmlw -> startElement('section'); $xmlw -> writeAttribute('name', $_REQUEST['section']); $xmlw -> writeAttribute('description', 'Directory For FreeSwitch'); //start the domain $xmlw -> startElement('domain'); $xmlw -> writeAttribute('name', $_REQUEST['sip_auth_realm']); //start an user $xmlw -> startElement('user'); $xmlw -> writeAttribute('id', $_REQUEST['sip_auth_username']); So, it seems like in voice mail main, those data are passed in as "". That is why I want to use the "auth ..." option to check vm, but I can't get "auth" to work. Any idea? Thanks, Pete On Wed, Apr 23, 2008 at 9:15 PM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
your domain and user name are both blank in your xml
On Wed, Apr 23, 2008 at 5:10 AM, Pete Kay <petedao@gmail.com> wrote:
Hi, I am having a voicemail problem:
Problem 1 In the wiki, it says that with the below line, the user can check vm without needing to authenticate: <action application="voicemail" data="auth default 1005"/>
Instead, it goes to the mailbox asking user to record message:
[/usr/local/freeswitch/sounds/en/us/callie/voicemail/8000/vm-record_message.wav] rate 8000hz
How come it is not going to the vm?
Problem 2 If I change to <action application="voicemail" data="check default 1005"/>
it asks me to enter user id follow by #. So, I enter 1005#, and it just hangs up.
The curl xml created by fs shows:
<document type="freeswitch/xml"> <section name="directory" description="Directory For FreeSwitch"> <domain name=""> <user id=""> <params> <param name="password" value="1234"/> </params> <variables> <variable name="user_context" value="agent"/> </variables> </user> </domain> </section> </document>
Since I am using the user 1005 to dial in, so userid and password should work, otherwise, I won't be able to login to dial the number.
Any inputs will be greatly appreciated.
Regards, Pete
_______________________________________________ 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 _______________________________________________ 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