I have an IP02 box with an FXS/FXO card. I can’t imagine the following behaviour is unique to this hardware but here goes:
Why does Asterisk take 5 seconds to start processing an incoming call on my FXO port? Asterisk knows about an incoming call immediately (I can see that in the console), but waits 5 or more seconds before ringing an internal extension (if that is what I have set up) or doing anything with the call. I’d like to deal with the call immediately.
Thankyou. Can I change that? My provider cannot send me caller id information (old network) so waiting is pointless. If I can, I’d like to gain the time.
Thanks. I am using zapata.conf and have tried that. It didn’t change the time to answer.
The unit I am using (ATCOM IP02) came preconfigured with Asterisk and I don’t know enough about it yet to change to using dahdi. I’ll see what I can learn and make the change.
I’m not sure if this fix the problem, but this is how I have done!
This is what I have in </etc/asterisk/zapata.conf> on my FXO channel.
; Channel 4 FXO port for incoming analog line
cidsignalling=dtmf ; Sweden
cidstart=polarity ; Sweden
language=se
signalling=fxs_ks
usecallerid=yes
callerid=asreceived
transfer=yes
immediate=yes
context=pts_incoming
answeronpolarityswitch=yes
hanguponpolarityswitch=yes
channel => 4 immediate: Normally (i.e. with immediate set to ‘no’, the default), when you lift an FXS handset, the Zaptel driver provides you a dialtone and listens for digits that you dial, passing them on to Asterisk. Asterisk waits until the number you’ve dialled matches an extension, and then begins executing the first command on the matching extension. If you set
immediate=yes, then Asterisk will instruct the Zaptel driver to not generate a dialtone when you lift a handset, instead passing control immediately to Asterisk. Asterisk will start executing the commands for this channel’s “s” extension. This is sometimes referred to as “batphone mode”. Default: no.
This made it answer the incoming call a little quicker and still have callerID enabled!
But it is still a bit slow on answering, but quicker than 5sec.