Here's how I think your dialplan should look:

exten => 101,1,Ringing
exten => 101,2,Answer()          
exten => 101,3,Dial(SIP/quentin,10)   
exten => 101,n,VoiceMail(1...@default,u)
exten => 101,n,Playback(vm-goodbye)
exten => 101,n,Hangup()
exten => 101-BUSY,1,Playback(busy)
exten => 101-BUSY,n,Wait(3)   
exten => 101-BUSY,n,VoiceMail(1...@default,b)
exten => 101-BUSY,n,Playback(vm-goodbye)
exten => 101-BUSY,n,Hangup()

 

for question 2, this depends on how voicemail.conf is setup.  By default, an
asterisk mailbox is considered "Full" when 100 messages are stored (see
voicemail.conf.samples), but this can be changed up to 9999.  Therefore you
would just need a job to look for the creation of the max file and send a
mail accordingly.  I'm not enough of a scripter to do this in bash, but
here's a find and grep that would tell you when a user's box was full (based
on default params):

find /|grep msg0099.txt|grep INBOX

 

  _____  

From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of harry R
Sent: Friday, July 24, 2009 7:44 AM
To: asterisk-users@lists.digium.com
Subject: [asterisk-users] dialplan tips

 

Hi everybody

In advance sorry for my bad english and if my problem was already exposed (I
didn't find any tips in the mailing list archive. Bad luck)
I have some questions about asterisk 1.6 release :
1) how can I do a n+101 priority jumping if a SIP canal is busy ?
I read that the general parameter "priorityjumping" is depreciated in the
1.6 release and I already try the "j" option in dial() application but no
way.
Here a sample of my simple dialplan :

exten => 101,1,Ringing
exten => 101,2,Answer()          
exten => 101,3,Dial(SIP/quentin,10)   
exten => 101,n,VoiceMail(1...@default,u)
exten => 101,n,Playback(vm-goodbye)
exten => 101,n,Hangup()
exten => 101,104,Playback(busy)
exten => 101,n,Wait(3)   
exten => 101,n,VoiceMail(1...@default,b)
exten => 101,n,Playback(vm-goodbye)
exten => 101,n,Hangup()

2) about asterisk voicemail maximum message limit, is it possible to send a
notification mail to an user if his vmbox is full ? How can i do that if
it's possible.


In advance, Thank.

 

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to