[SOLVED] Dialtone on FXS port with analog handset


#1

Hi folks,
have a TDM400P with 2 FXO and 2 FXS ports. i’ve connected an analog handset to one of the FXS ports and want it behave like a normal internal extension.

Eg: you pick up the phone, get a dialtone and the dialtone stops after pressing the first digit, but i can’t seem to figure this out…

So far i’ve got:

zapata.conf:
context=testhandset
signalling=fxo_ks ; fxo signalling for FXS port 1
channel => 1

extensions.conf:
[testhandset]
exten => s,1,Answer()
exten => s,n,Playtones(dial)
exten => s,n,WaitExten(30)
exten => s,n,StopPlaytones()
exten => s,n,Hangup
include => internal

This works for making and receiving calls, but the dialtone doesn’t stop after the first digit when making a call, only after connecting.

Hopefully i’m missing something really simple, have read and re-read all the documentation i can find…

Any help would be gratefully appreciated,

Many thanks, Pete.


#2

Got it!!!

Just needed to add immediate=no in zapata.conf…
This is on page 66 of the O’Reilly Asterisk book, must have missed that paragraph, anyway, here’s the solution:

zapata.conf:
context=internal
signalling=fxo_ks ; fxo signalling for FXS port 1
immediate=no
channel => 1

extensions.conf:
exten => 5560,1,Dial(Zap/1,20)
exten => 5560,n,Hangup