Re: [Freeswitch-users] Remote fetching of voicemail
No, my voicemail extension (I have 2 actually) is called vmain_unregistered_user, so in voicemail.conf.xml I have : <param name="vmain_extension" value="vmain_unregistered_user"/> But still (and I don't even know if I'm using it the right way), I would expect that when the voicemail greeting starts, I could press * on the phone to call the vmain_unregistered_user extension in my dialplan, but that never happens. What I want, is when someone dials in (this is usefull only from outside so via FXO line) his extension (or any other, it's not important) that when he reach the voicemail to leave a message, override the "leave a message" voicemail and enter the "check my messages" voicemail (with an authentication step). I'm not sure this is clear. François On Wed, 2 Dec 2009 12:16:14 -0500, Frank Carmickle <frank@carmickle.com> wrote:
On Wed, Dec 02, Fran??ois Legal wrote:
I did check (and modify as my voicemail extension name is not vmain) the voicemail.conf.xml, and vmain-key is *.
What I mean by remote fetching of voicemail, is that someone may dial in, either from inside (via FXS or even SIP) or outside (via FXO), then when reaching the voice mail to leave a message, he could dial some specific digit (or digits) to reach the voicemail login and fetch his voice mails.
I can do this using bind_meta_app (it is already working), but then I need to terminate the extension when invoking the meta_app, otherwise freeswitch may sometimes hang if the meta app is called after the "leave a message" voicemail tone.
Alright. I missed what vmain actually does in the voicemail config. It actually calls the extension named vmain in the dialplan. So if you don't have this then you will need to have one. Thanks for asking this question because my voicemail auth was broken and I didn't even know it! I fixed it and a working extension for vmain can look like this.
<extension name="vmain"> <condition field="destination_number" expression="^vmain$|^voicemail$|^\*98$|^\*86$"> <action application="answer"/> <action application="set" data="voicemail_authorized=false"/> <action application="sleep" data="200"/> <action application="voicemail" data="check default $${domain} ${effective_caller_id_number}"/> </condition> </extension>
HTH --FC
_______________________________________________ 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 Wed, Dec 02, Fran??ois Legal wrote:
No, my voicemail extension (I have 2 actually) is called vmain_unregistered_user, so in voicemail.conf.xml I have :
<param name="vmain_extension" value="vmain_unregistered_user"/>
But still (and I don't even know if I'm using it the right way), I would expect that when the voicemail greeting starts, I could press * on the phone to call the vmain_unregistered_user extension in my dialplan, but that never happens. What I want, is when someone dials in (this is usefull only from outside so via FXO line) his extension (or any other, it's not important) that when he reach the voicemail to leave a message, override the "leave a message" voicemail and enter the "check my messages" voicemail (with an authentication step).
I'm not sure this is clear.
Totally clear. My last example of extension vmain should have the goodies you need to have it work correctly. I have not tested changing <param name="vmain-extension" value="vmain XML default"/> to something different. Maybe this is broken? Try setting it back to the default and making your changes in the dialplan like I did. I can tell you that it is working as of svn 15396. --FC
On Wed, Dec 2, 2009 at 9:43 AM, François Legal <devel@thom.fr.eu.org> wrote:
No, my voicemail extension (I have 2 actually) is called vmain_unregistered_user, so in voicemail.conf.xml I have :
<param name="vmain_extension" value="vmain_unregistered_user"/>
But still (and I don't even know if I'm using it the right way), I would expect that when the voicemail greeting starts, I could press * on the phone to call the vmain_unregistered_user extension in my dialplan, but that never happens. What I want, is when someone dials in (this is usefull only from outside so via FXO line) his extension (or any other, it's not important) that when he reach the voicemail to leave a message, override the "leave a message" voicemail and enter the "check my messages" voicemail (with an authentication step).
I think you want to press zero: <param name="login-keys" value="0"/> Of course, you can change that value to something else if you prefer the zero to be a transfer-to-operator kind of function. -MC
On Wed, Dec 02, Fran??ois Legal wrote:
No, my voicemail extension (I have 2 actually) is called vmain_unregistered_user, so in voicemail.conf.xml I have :
Also, is there a functional requirement for two different extensions to call vmain? --FC
Well, I'm just starting to use freeswitch, so my approach is probably for from optimal. The point is I wanted that voicemail do not prompt for passwords when the caller is a sip registered user, but I also wanted the login requirement if the voicemail was called from some FXS port. That lead me to having : <!-- voicemail main extension --> <extension name="vmain_registered_user"> <condition field="destination_number" expression="^voicemail|4000$" /> <condition field="${sip_authorized}" expression="true"> <action application="set" data="default_language=fr"/> <action application="set" data="voicemail_authorized=${sip_authorized}"/> <action application="answer"/> <action application="sleep" data="1000"/> <action application="voicemail" data="check auth default $${voicemail_profile} $${domain} ${caller_id_name}"/> </condition> </extension> <extension name="vmain_unregistered_user"> <condition field="destination_number" expression="4000$"> <action application="set" data="default_language=fr"/> <action application="answer"/> <action application="sleep" data="1000"/> <action application="voicemail" data="check default $${domain_name}"/> </condition> </extension> in my dialplan. François On Wed, 2 Dec 2009 13:15:28 -0500, Frank Carmickle <frank@carmickle.com> wrote:
On Wed, Dec 02, Fran??ois Legal wrote:
No, my voicemail extension (I have 2 actually) is called vmain_unregistered_user, so in voicemail.conf.xml I have :
Also, is there a functional requirement for two different extensions to call vmain?
--FC
_______________________________________________ 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)
-
Frank Carmickle
-
François Legal
-
Michael Collins