[asterisk-users] How to detect switch to voicemail when calling tomobile phone
John Regal
jregal at gmail.com
Wed May 20 10:33:03 CDT 2009
Hi,
I am doing something like this. Not actually detecting the switch, but
detecting vmail/answering machine. Take a look at this
http://www.voip-info.org/wiki/view/Asterisk+cmd+BackGroundDetect
Hope this helps.
_____
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Michel
Verbraak
Sent: Wednesday, May 20, 2009 10:39 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] How to detect switch to voicemail when calling
tomobile phone
Hello,
First of all I have an Asterisk setup of Asterisk 1.6.0.9 + DAHDI 2.0 + E1
card with ISDN-15 line (KPN Netherlands).
I have two questions/situations:
A. I would like to be able to interrupt the dial command when I try to call
to a mobile phone and this phone is never answered by a person but after a
certain time switches to the voicemail of the mobile phone.
B. I have a setup where someone calls one extension in my asterisk which in
turn will call about 6 mobile phones at the same time and the first person
that picks up his mobile phone will get the caller. The 6 mobile phones need
to get called until a real person answers one of the phones. We run into the
problem when one of the called mobile phones switches to voicemail before
any one of the 6 persons answers his phone. Is there a way that the call to
the group ignores the mobile phones which switch to voicemail but keeps
calling the others.
When I turn on logging for dahdi or sip I can see that when the connection
is switched to the voicemail a " progress" message is created (twice). This
only happens when a switch to voicemail is made. Following is an extraction
of the dahdi log when voicemail kicks in, see bold lines:
> Message type: SETUP (5)
< Message type: STATUS (125)
< Message type: CALL PROCEEDING (2)
< Message type: ALERTING (1)
< Message type: PROGRESS (3)
< Message type: PROGRESS (3)
< Message type: CONNECT (7)
> Message type: CONNECT ACKNOWLEDGE (15)
> Message type: DISCONNECT (69)
< Message type: RELEASE (77)
> Message type: RELEASE COMPLETE (90)
Next is an extraction of the dahdi log when the mobile phone is answered by
a person:
> Message type: SETUP (5)
< Message type: STATUS (125)
< Message type: CALL PROCEEDING (2)
< Message type: ALERTING (1)
< Message type: CONNECT (7)
> Message type: CONNECT ACKNOWLEDGE (15)
< Message type: DISCONNECT (69)
> Message type: RELEASE (77)
< Message type: RELEASE COMPLETE (90)
Is there an option for the dial command to stop the call when the switch is
detected and tell the caller that voicemail is active and if he would like
to leave a message or not? Can I create/detect this with an AGI script and
act on it? (what to look for).
Any help is appreciated.
Regards,
Michel.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090520/77c2a8ed/attachment.htm
More information about the asterisk-users
mailing list