[asterisk-bugs] [Asterisk-GUI 0012317]: Voicemail doesn't recognise a user's voicemail box when callerid is set to an external number

noreply at bugs.digium.com noreply at bugs.digium.com
Thu Mar 27 16:52:49 CDT 2008


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.digium.com/view.php?id=12317 
====================================================================== 
Reported By:                dmgeurts
Assigned To:                bkruse
====================================================================== 
Project:                    Asterisk-GUI
Issue ID:                   12317
Category:                   New/Feature
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             03-27-2008 16:52 CDT
Last Modified:              03-27-2008 16:52 CDT
====================================================================== 
Summary:                    Voicemail doesn't recognise a user's voicemail box
when callerid is set to an external number
Description: 
My fix is the following dialplan code. However this does cause the gui to
not recognise the voicemail settings. The voicemail page literally throws
an error about no voicemail being configured and asks whether one wants to
create the voicemail extension.

For my setup: If an extension starts with a 0 or is alphanumeric it must
be external to my system. In that case the user is asked for the mailbox
number and pin. If the extension is internal the user is forwarded to the
corresponding mailbox without prompting for a pin.

<code>
exten => 850,1,Set(PEER=${CHANNEL})  ; Enable custom cid_number
extensionss to reach their mailboxes without hassle
exten => 850,2,Set(PEER=${CUT(PEER,/,2)})  ; Remove the channeltype
exten => 850,3,Set(PEER=${CUT(PEER,-,1)})  ; Extract the extension of the
caller
exten => 850,4,GoToIf($["${PEER}" : ^"[a-zA-Z0]"]?6)  ; Check if the
callers-id starts with a 0 or is alphanumeric
exten => 850,5,Set(CALLERID(num)=${PEER})  ; If it does then replace the
CALLERID with the extracted extension
exten => 850,6,VoiceMailMain(s${CALLERID(NUM)})
exten => 850,n,Hangup
</code>

My question is whether the above code can be adopted into the *-gui
extensions.conf file as imho it would be a good improvement. It would be
imperative however that the gui does recognise this as a valid voicemail
config.

Any advice or code improvements welcome. :)
====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
03-27-08 16:52  dmgeurts       Asterisk Version          => SVN             
03-27-08 16:52  dmgeurts       SVN Branch (only for SVN checkou =>  1.4         
  
======================================================================




More information about the asterisk-bugs mailing list