Álvaro Palma
2006-May-12 15:18 UTC
[Asterisk-Users] VoiceMail application: "j" option not working as I supposed
I've the following dialplan. exten => _XX,hint,SIP/${EXTEN} exten => _XX,1,Dial(SIP/${EXTEN},10,j) exten => _XX,2,VoiceMail(${EXTEN}@default,u|j) exten => _XX,3,Hangup() exten => _XX,102,Goto(110) exten => _XX,103,Playback(pbx-invalid) exten => _XX,104,Hangup() exten => _XX,110,VoiceMail(${EXTEN}@default,b|j) exten => _XX,111,Hangup() exten => _XX,211,Playback(pbx-invalid) exten => _XX,212,Hangup() As far as I know, according to my dialplan, if the SIP user doesn't exist, the application jumps from priority 1 to priority 102 and from there to priority 110. Here, if the VoiceMail application fails (what will happen, since if the user is wrong, he obviously doesn't have a mailbox), the application should jump to priority 211 (according to the "j" option in the VoiceMail command). However, I always see that my application jumps to 111 instead (and no "Invalid extension" sound is played). In fact, if I move my Playback(invalid) to 111, then I can hear the sound. Can anybody tell me what am I doing wrong? Or simply "j" VoiceMail option doesn't work the way I think it should work? Thanks a lot for your help -- Atly. Alvaro Palma
Eric "ManxPower" Wieling
2006-May-12 16:00 UTC
[Asterisk-Users] VoiceMail application: "j" option not working as I supposed
Try: exten => _XX,2,VoiceMail(u${EXTEN}@default,j) and exten => _XX,110,VoiceMail(b${EXTEN}@default,j) ?lvaro Palma wrote:> I've the following dialplan. > > exten => _XX,hint,SIP/${EXTEN} > exten => _XX,1,Dial(SIP/${EXTEN},10,j) > exten => _XX,2,VoiceMail(${EXTEN}@default,u|j) > exten => _XX,3,Hangup() > exten => _XX,102,Goto(110) > exten => _XX,103,Playback(pbx-invalid) > exten => _XX,104,Hangup() > exten => _XX,110,VoiceMail(${EXTEN}@default,b|j) > exten => _XX,111,Hangup() > exten => _XX,211,Playback(pbx-invalid) > exten => _XX,212,Hangup() > > As far as I know, according to my dialplan, if the SIP user doesn't > exist, the application jumps from priority 1 to priority 102 and from > there to priority 110. Here, if the VoiceMail application fails (what > will happen, since if the user is wrong, he obviously doesn't have a > mailbox), the application should jump to priority 211 (according to the > "j" option in the VoiceMail command). However, I always see that my > application jumps to 111 instead (and no "Invalid extension" sound is > played). In fact, if I move my Playback(invalid) to 111, then I can hear > the sound. > > Can anybody tell me what am I doing wrong? Or simply "j" VoiceMail > option doesn't work the way I think it should work? > > Thanks a lot for your help >-- Now accepting new clients in Birmingham, Atlanta, Huntsville, Chattanooga, and Montgomery.
Álvaro Palma
2006-May-15 08:35 UTC
[Asterisk-Users] Re: VoiceMail application: "j" option not working as I supposed
It didn't work. In fact, I changed: exten => _XX,2,VoiceMail(${EXTEN}@default,u|j) to exten => _XX,2,VoiceMail(u${EXTEN}@default,j) and now I'm getting -- Executing VoiceMail("SIP/02-c7df", "u02@default|j") in new stack May 15 10:29:06 WARNING[2859]: app_voicemail.c:2411 leave_voicemail: No entry in voicemail config file for 'u02' (Obviously, "02" is created as a mailbox in "default" context) But if I use the new options sintax: exten => _XX,110,VoiceMail(${EXTEN}@default,b|j) it works if XX is a valid mailbox. The problem is that, if XX is not a valid mailbox, the application doesn't jump to priority 211, as it would be expected according to the "j" flag. I even changed the name of the mailbox context (from "default" to another) because app_voicemail.c shows some special treatment for a context named "default", but still get the same behaviour. Eric "ManxPower" Wieling wrote: > Try: > exten => _XX,2,VoiceMail(u${EXTEN}@default,j) > and > exten => _XX,110,VoiceMail(b${EXTEN}@default,j) ?lvaro Palma wrote: > > I've the following dialplan. > > > > exten => _XX,hint,SIP/${EXTEN} > > exten => _XX,1,Dial(SIP/${EXTEN},10,j) > > exten => _XX,2,VoiceMail(${EXTEN}@default,u|j) > > exten => _XX,3,Hangup() > > exten => _XX,102,Goto(110) > > exten => _XX,103,Playback(pbx-invalid) > > exten => _XX,104,Hangup() > > exten => _XX,110,VoiceMail(${EXTEN}@default,b|j) > > exten => _XX,111,Hangup() > > exten => _XX,211,Playback(pbx-invalid) > > exten => _XX,212,Hangup() > > > > As far as I know, according to my dialplan, if the SIP user doesn't > > exist, the application jumps from priority 1 to priority 102 and from > > there to priority 110. Here, if the VoiceMail application fails (what > > will happen, since if the user is wrong, he obviously doesn't have a > > mailbox), the application should jump to priority 211 (according to the > > "j" option in the VoiceMail command). However, I always see that my > > application jumps to 111 instead (and no "Invalid extension" sound is > > played). In fact, if I move my Playback(invalid) to 111, then I can hear > > the sound. > > > > Can anybody tell me what am I doing wrong? Or simply "j" VoiceMail > > option doesn't work the way I think it should work? > > > > Thanks a lot for your help -- Atte. ?lvaro Palma OPS Ingenier?a Ltda. F: (56 2)5805905 Skype: alvaro_palma_aste MSN : alvaro_palma_aste@hotmail.com