>> Any reason not to ring both at once?
>> exten => 101,1,Dial(SIP/101&SIP/[EMAIL PROTECTED],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/[EMAIL PROTECTED])
;exten => 101,n,Voicemail([EMAIL PROTECTED])
;exten => 101,1,Dial(SIP/101&SIP/[EMAIL PROTECTED],20)

exten => 101,1,Dial(SIP/101&SIP/[EMAIL PROTECTED]|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/[EMAIL PROTECTED]|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([EMAIL PROTECTED])

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/[EMAIL PROTECTED])

exten => _NXXXXXX,1,Set(CALLERID(num)=9045622082)
exten => _NXXXXXX,n,Set(CALLERID(name)="Stephen Reese")
exten => _NXXXXXX,n,Dial(SIP/[EMAIL PROTECTED])

exten => _NXXNXXXXXX,1,Set(CALLERID(num)=9045622082)
exten => _NXXNXXXXXX,n,Set(CALLERID(name)="Stephen Reese")
exten => _NXXNXXXXXX,n,Dial(SIP/[EMAIL PROTECTED])

exten => _011.,1,Set(CALLERID(num)=9045622082)
exten => _011.,n,Set(CALLERID(name)="Stephen Reese")
exten => _011.,n,Dial(SIP/[EMAIL PROTECTED])

exten => _911,1,Set(CALLERID(num)=9045622082)
exten => _911,n,Set(CALLERID(name)="Stephen Reese")
exten => _911,n,Dial(SIP/[EMAIL PROTECTED])

_______________________________________________
-- 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