[asterisk-users] Menu for call forwarding or voicemail
Stephen Reese
rsreese at gmail.com
Sun Oct 12 19:02:00 CDT 2008
>> Any reason not to ring both at once?
>> exten => 101,1,Dial(SIP/101&SIP/9049409007 at vitel-outbond,20)
>> -Darren
That does work and it rings both phones. I was able to put in some
error handling to deal with the extension if the softphone isn't
connected and still allow the remote phone to ring :-).
The trick now is the timing for the remote voice mail. Since cell
phone contact times can sometimes vary in length what can I do to make
sure a users call isn't cut off when leaving a message if the ring and
voicemail message are greater then 20? Currently it just goes to a
busy tone when the 20 seconds are reached... Should I just increase
the time? I'm still concerned if someone leaves a long message that
they may get cut off?
[general]
static=yes
writeprotect=yes
[globals]
[default]
;exten => 101,1,Dial(SIP/101,20)
;exten => 101,n,Dial(SIP/9049409007 at vitel-outbond)
;exten => 101,n,Voicemail(101 at default)
;exten => 101,1,Dial(SIP/101&SIP/9049409007 at vitel-outbound,20)
exten => 101,1,Dial(SIP/101&SIP/9049409007 at vitel-outbound|20)
exten => 101,n,GotoIf($["${DIALSTATUS}" = "CHANUNAVAIL"]?lbl_default_1:)
exten => 101,n,GotoIf($["${DIALSTATUS}" = "NOANSWER"]?lbl_default_1:)
exten => 101,n(lbl_default_0),Hangup()
exten => 101,n(lbl_default_1),Dial(SIP/9049409007 at vitel-outbond|20)
exten => 101,n,Goto(lbl_default_0)
;This automatically calls the right mailbox using the ${CALLERIDNUM}
variable in the current context (var ${CONTEXT}).
exten=>*98,1,VoiceMailMain(${CALLERIDNUM}@${CONTEXT})
include => inbound
include => outgoing
[inbound]
exten => 9045622082,1,Goto(default,101,1)
[outgoing]
; The following gives an Unknown Caller ID
;exten => _1NXXNXXXXXX,1,Set(CALLERID(num)=XXXXXXXXXX)
;exten => _1NXXNXXXXXX,2,Set(CALLERID(name)=XXXXXXXXXX)
exten => _1NXXNXXXXXX,1,Set(CALLERID(num)=9045622082)
exten => _1NXXNXXXXXX,n,Set(CALLERID(name)="Stephen Reese")
exten => _1NXXNXXXXXX,n,Dial(SIP/${EXTEN}@vitel-outbound)
exten => _NXXXXXX,1,Set(CALLERID(num)=9045622082)
exten => _NXXXXXX,n,Set(CALLERID(name)="Stephen Reese")
exten => _NXXXXXX,n,Dial(SIP/1904${EXTEN}@vitel-outbound)
exten => _NXXNXXXXXX,1,Set(CALLERID(num)=9045622082)
exten => _NXXNXXXXXX,n,Set(CALLERID(name)="Stephen Reese")
exten => _NXXNXXXXXX,n,Dial(SIP/1${EXTEN}@vitel-outbound)
exten => _011.,1,Set(CALLERID(num)=9045622082)
exten => _011.,n,Set(CALLERID(name)="Stephen Reese")
exten => _011.,n,Dial(SIP/${EXTEN}@vitel-outbound)
exten => _911,1,Set(CALLERID(num)=9045622082)
exten => _911,n,Set(CALLERID(name)="Stephen Reese")
exten => _911,n,Dial(SIP/911 at vitel-outbound)
More information about the asterisk-users
mailing list