[asterisk-bugs] [Asterisk-GUI 0012734]: Allow custom Dial options for users.conf that do not have voicemail

noreply at bugs.digium.com noreply at bugs.digium.com
Fri Jul 4 02:48:50 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12734 
====================================================================== 
Reported By:                litnimax
Assigned To:                bkruse
====================================================================== 
Project:                    Asterisk-GUI
Issue ID:                   12734
Category:                   PBX/pbx_config
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.4.19 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             05-28-2008 03:27 CDT
Last Modified:              07-04-2008 02:48 CDT
====================================================================== 
Summary:                    Allow custom Dial options for users.conf that do not
have voicemail
Description: 
This post describes all -
http://lists.digium.com/pipermail/asterisk-gui/2007-March/000238.html

This is an extract from my dialplan:

762' =>          hint: SIP/762                                
[pbx_config]
                    1. Dial(${HINT})                             
[pbx_config]
'770' =>          hint: SIP/770&IAX2/770                       
[pbx_config]
                    1. Macro(stdexten|770|${HINT})   
762 does not have VM, and 770 does. So tranfer works for 770 as it's added
it stdexten macro, but does not for 762. 
Please advise. 
Asterisk 1.4.19.1, GUI  rev 3137. 
====================================================================== 

---------------------------------------------------------------------- 
 litnimax - 07-04-08 02:48  
---------------------------------------------------------------------- 
Again, the problem is that when user has voicemail defined the system uses
Macro(stdexten), when user does not have voicemail box the system uses
direct Dial without options. I guess that initial developer's goal was to
provide voicemail ivr with macro-stdexten. But is is far more useful. The
macro-stdexten can be modified in the way that when user does not have
mailbox it just gives busy. Look at my modification of macro-stdexten:

; Standard exten for users
[macro-stdexten];
exten => s,1,Dial(${ARG1}/${ARG2},${INDIAL_TIMEOUT},${INDIAL_OPTS})
exten => s,2,Goto(s-${DIALSTATUS},1) 
exten => s-NOANSWER,1,Voicemail(${ARG2},ju)  
exten => s-NOANSWER,102,Playback(vm-nobodyavail)
exten => s-NOANSWER,103,Hangup
exten => s-BUSY,1,Voicemail(${ARG2},jb) 
exten => s-BUSY,102,Answer
exten => s-BUSY,103,Playtones(busy); I would put busy message instead if
we had it...
exten => s-BUSY,104,Wait(5)
exten => s-BUSY,103,Hangup
exten => _s-.,1,Goto(s-NOANSWER,1)  

So this handles the situation when user has not mailbox (Voicemail jump
option).

Thank you for your attention on such a minor issue :-) 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
07-04-08 02:48  litnimax       Note Added: 0089727                          
======================================================================




More information about the asterisk-bugs mailing list