[asterisk-users] Answering machine answers after pickup a phone.

Ruben Rögels ruben.roegels at jumping-frog.org
Thu Aug 4 17:04:02 CDT 2011


Hi,

your concept using Wait() won't work here.
Try it like this:

[incoming]
exten => s,1,Dial(DAHDI/1234,30) ; This will ring the phone 30s
exten => s,n,BackGround(wellcome-message)
exten => s,n,Voicemail(1234)
exten => #,1,Hangup()

So, of you answer the call within 30s, you'll get the call on your
phone. After 30s, the Voicemail will answer the phone.


regards,
Ruben

Am 04.08.2011 21:39, schrieb Jorge Barreiro:
> Hello,
> 
> I'm configuring an Asterisk PBX to use as an answering machine. I have a FXO 
> card connected to the line, and other analog telephones connected to the same 
> line. The PBX answers and redirects you to the voicemail after a delay.
> 
> The problem is that even if I pickup any analog phone in the line before the 
> PBX does, it answers after the delay anyway. And I couldn't find how to prevent 
> this, or even if this is supposed to happen.
> 
> My FXO card is a cheap X100P (source of problems, I know), and I'm using the 
> Asterisk version included in Debian Squeeze (1.6.2.9).
> My dial plan looks like this:
> 
> [incoming]
> exten => s,1,Wait(8)
> exten => s,2,Answer
> exten => s,3,BackGround(wellcome-message)
> exten => s,4,Voicemail(1234)
> exten => #,1,Hangup
> 
> I don't know if this is related, but I'm in Spain and I had to add:
> hanguponpolarityswitch=yes
> to the chan_dahdi.conf file so that asterisk detects the remote hangup.
> I also added:
> answeronpolarityswitch=yes
> but this didn't help. It seems to be used just to detect the answer when you 
> are calling, not when receiving a call.
> 
> 
> I'd appreciate any help you could provide.
> 
> Thanks!
> 
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>                http://www.asterisk.org/hello
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list