On Tue, 30 Aug 2016 10:39:14 -0400
Eric Wieling <[email protected]> wrote:
> The dialplan below cannot go to voicemail, either something else is
Of course not. It's the individual extensions that have voice mail. I
have a similar problem when one of those destinations is a cell phone
but I know that there is no Asterisk solution for that problem. If the
cell phone answers and goes into the cell phone voice mail I am
screwed. I can't fix that unless I also run the cell phone company.
In this case the extensions are all set up in the same asterisk
server. Here is an example.
[user1](client-phone)
secret=NotTheRealSecret
callerid=John Doe <5555551212>
mailbox=user1@VoiceMail
context=pbxout-19212
And here is the extension that calls it. Sorry about the wrapping.
user1,1,Verbose(0,Entering extension user1)
same => n,GotoIf($["${DEVICE_STATE(SIP/9999906549)}" =
"UNAVAILABLE"]?DialCell)
same => n(DialWifi),Verbose(0, ${CALLERID(all)} Calling ${EXTEN} and
SoftPhone)
same => n,Dial(SIP/user1&SIP/9999906549,30)
same => n,Goto(VoiceMail)
same => n(DialCell),GotoIf($["x7165550000" = "x"]?DialDesk)
same => n,GotoIf($["${CALLERID(ani)}" = "7165550000"]?DialDesk)
same => n,Verbose(0,${CALLERID(all)} Calling "${EXTEN}" and cell
"7165550000")
same => n,Dial(SIP/user1&SIP/thinktel/7165550000,30)
same => n,Goto(VoiceMail)
same => n(DialDesk),Verbose(0,${CALLERID(all)} Calling ${EXTEN})
same => n,Dial(SIP/user1,30)
same => n(VoiceMail),Set(CDR(userfield)=VoiceMail)
same => n,Set(_ACCOUNT=user1)
same => n,VoiceMail(user1@VoiceMail,u)
same => n,Hangup()
It's a complicated extension but I believe that the following is the
essential part.
user1,1,Verbose(0,Entering extension user1)
same => n,Dial(SIP/user1,30)
same => n,VoiceMail(user1@VoiceMail,u)
same => n,Hangup()
> going on or the dialplan below is not the actual dialplan. Calls only
> go to voicemail when the dialplan runs the VoiceMail application.
> Paste the Asterisk console output of a call showing the problem,
> maybe someone can help.
Here is what the log shows. I can't put the unregistered user back at
the moment. Perhaps I can do it overnight when no one is going to the
building.
[Aug 23 10:20:55] WARNING[-1][C-0001fee7] app_dial.c: Unable to create
channel of type 'SIP' (cause 20 - Subscriber absent)
I am assuming that the voice mail is for the absent (unregistered) user.
> > exten => 5555551111,1,Verbose(Door buzzer calling)
> > same => n,Dial(SIP/user1&SIP/user2&SIP/user3)
Other than sanitizing the buzzer phone number and the user names this
is the full extension for the buzzer.
--
D'Arcy J.M. Cain
System Administrator, Vex.Net
http://www.Vex.Net/ IM:[email protected]
VoIP: sip:[email protected]
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016
http://www.asterisk.org/community/astricon-user-conference
New to Asterisk? Start here:
https://wiki.asterisk.org/wiki/display/AST/Getting+Started
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users