[asterisk-users] dealing with blind transfers to invalid extensions

2006-10-30 Thread Jeronimo Romero
Running Asterisk 1.2.8  kernel  2.6.13.4-1. 
Everything in my dialplan seems to be working well except for one
problem. 
When calls are blind transferred to an invalid extension I would like
the call to go to the operator on ext 1000?
What is the best way to do this? Thanks in advance 


Here's a snippet of my extensions.conf

[default]
exten=_10XX,1,Macro(stdexten,${EXTEN},SIP/${EXTEN})
exten=_11XX,1,Macro(stdexten,${EXTEN},SIP/${EXTEN})
include=record
include=parkedcalls
include=voicepulseoutgoing
include=conferences
include=voicemail


[macro-stdexten]
exten=s,1,Dial(${ARG2},20,t)
exten=s,2,Goto(s-${DIALSTATUS},1)
exten=s-NOANSWER,1,Voicemail(u${ARG1})
exten=s-NOANSWER,2,Goto(default,s,1)
exten=s-BUSY,1,Voicemail(b${ARG1})
exten=s-BUSY,2,Goto(default,s,1)
exten=_s-.,1,Goto(s-NOANSWER,1)
exten=a,1,VoicemailMain(${ARG1})

==
Jeronimo Romero
EUS Networks
Email: [EMAIL PROTECTED]
Cell: 917-332-7238
Office: 212-624-5943
Web: www.euscorp.com
==

___
--Bandwidth and Colocation provided by Easynews.com --

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


Re: [asterisk-users] dealing with blind transfers to invalid extensions

2006-10-30 Thread Doug Lytle

Jeronimo Romero wrote:
Running Asterisk 1.2.8  kernel  2.6.13.4-1. 
Everything in my dialplan seems to be working well except for one
problem. 
When calls are blind transferred to an invalid extension I would like

the call to go to the operator on ext 1000?
  


I do the following:


[direct-to-voicemail]

; **
; Allow anybody to send a call directly to voicemail
; by pre-pending a 0 to the destination extension.
; Checks to see if voice mail box exists, if not
; Tells the callee that no such vm box exists and
; then transfers them to the operator
; **

exten = _04XXX,1,Set(_direct_vm=${EXTEN:1})
exten = _04XXX,2,MailboxExists([EMAIL PROTECTED])
exten = _04XXX,3,Goto(s-${VMBOXEXISTSSTATUS},1)

exten = s-FAILED,1,SayDigits(${direct_vm})
exten = s-FAILED,2,Playback(vm-nobox)
exten = s-FAILED,3,Playback(pbx-transfer)
exten = s-FAILED,4,Goto(incoming,s,1)

exten = s-SUCCESS,1,Set(CALLBACK=${DB(vmcallback/${direct_vm})})
exten = s-SUCCESS,2,GotoIf($[${CALLBACK} = 
YES]?s-SUCCESS,3:s-SUCCESS,4)

exten = s-SUCCESS,3,System(/usr/local/bin/vm-callout.sh ${direct_vm})
exten = s-SUCCESS,4,Voicemail([EMAIL PROTECTED])
exten = s-SUCCESS,5,Hangup()

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 Easynews.com --

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