[asterisk-users] If voice mail not found dialplan

2011-04-15 Thread Satish Patel

Hey guys,

I have stdexten macro dialplan and I have to handle those who doesn't  
have voicemail box setup. Right now if someone call and if person  
unavailable the it's just hangup that call. I want it say person  
doest have vm setup yet. smthing like that. How should I handle this  
in my dialplan ?


--
Sent from my iPhone

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

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


Re: [asterisk-users] If voice mail not found dialplan

2011-04-15 Thread Doug Lytle

Satish Patel wrote:
want it say person doest have vm setup yet. smthing like that. How 
should I handle this in my dialplan ? 


Here is a snippet of what I do:


[s-NOANSWER]

exten = s,1,Gosub(mailbox_exist,s,1)


[mailbox_exist]

exten = s,1,Set(_direct_vm=${ARG1})
exten = s,n,MailboxExists(${direct_vm}@sip)
exten = s,n,Goto(s-${VMBOXEXISTSSTATUS},1)
exten = s-FAILED,1,Answer()
exten = s-FAILED,n,Wait(1)
exten = s-FAILED,n,Playback(vm-theperson)
exten = s-FAILED,n,SayDigits(${direct_vm})
exten = s-FAILED,n,Playback(vm-nobox)
exten = s-FAILED,n,Set(CONNECTEDLINE(all)=Operator 4100)
exten = s-FAILED,n,Set(CALLERID(name)=No Mailbox)
exten = s-FAILED,n,Playback(pbx-transfer)
exten = s-FAILED,n,Goto(incoming,s,1)


Doug

--

Ben Franklin quote:

Those who would give up Essential Liberty to purchase a little Temporary Safety, 
deserve neither Liberty nor Safety.


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

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


Re: [asterisk-users] If voice mail not found dialplan

2011-04-15 Thread satish patel

Perfect! Thanks

 Date: Fri, 15 Apr 2011 08:21:48 -0400
 From: supp...@drdos.info
 To: asterisk-users@lists.digium.com
 Subject: Re: [asterisk-users] If voice mail not found dialplan
 
 Satish Patel wrote:
  want it say person doest have vm setup yet. smthing like that. How 
  should I handle this in my dialplan ? 
 
 Here is a snippet of what I do:
 
 
 [s-NOANSWER]
 
 exten = s,1,Gosub(mailbox_exist,s,1)
 
 
 [mailbox_exist]
 
 exten = s,1,Set(_direct_vm=${ARG1})
 exten = s,n,MailboxExists(${direct_vm}@sip)
 exten = s,n,Goto(s-${VMBOXEXISTSSTATUS},1)
 exten = s-FAILED,1,Answer()
 exten = s-FAILED,n,Wait(1)
 exten = s-FAILED,n,Playback(vm-theperson)
 exten = s-FAILED,n,SayDigits(${direct_vm})
 exten = s-FAILED,n,Playback(vm-nobox)
 exten = s-FAILED,n,Set(CONNECTEDLINE(all)=Operator 4100)
 exten = s-FAILED,n,Set(CALLERID(name)=No Mailbox)
 exten = s-FAILED,n,Playback(pbx-transfer)
 exten = s-FAILED,n,Goto(incoming,s,1)
 
 
 Doug
 
 -- 
 
 Ben Franklin quote:
 
 Those who would give up Essential Liberty to purchase a little Temporary 
 Safety, deserve neither Liberty nor Safety.
 
 
 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
 
 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
  --
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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