[Asterisk-Users] [Fwd: call status with FXO]

Adam Goryachev mailinglists at websitemanagers.com.au
Sun Nov 20 22:47:18 MST 2005


On Sat, 2005-11-19 at 00:07 -0600, grr at alastor.com.mx wrote:
> Hi. I'm a new user of Asterisk. My question is:
> I want to log outbound calls in a database ( postgres ). Everything is OK
> except that asterisk always marks calls to my FXO iface ( Zap/4 ) as
> answered as soon as it accepts to dial the specified number and the
> purpose of logging calls is to know the actual number of connections made
> ( those are the ones telco bills me ).  I want a method or trick to make
> asterisk to behave in regard to a FXO like a modem would do, i.e.
> reporting line conditions ( BUSY, ANSWER, etc ) as its status. Currently,
> the relevant part of my dialplan is:
> 
> exten => _99.,1,Dial(Zap/4/${EXTEN:2},20)

see the zapata.conf for callprogress=yes
However, this is unreliable, and could provide incorrect results. For
accurate information you will need to get a BRI or PRI and related
interface card. These provide the information Out Of Band, and as such
are accurate.

> In a related issue, my Zap/4 iface delays answering about 4 secs. When I
> first installed asterins, answering would be instantaneous, but after some
> change ( kernel? compile options? not sure ) it won't answer until after 4
> or 5 secs. Could it be related to the main problem?

callerid=no will solve that, but then you won't get callerid :)
Possibly, your line doesn't supply callerid anyway, or you don't care,
so then that is a good solution.

Regards,
Adam





More information about the asterisk-users mailing list