Dial() question

Good morning …

Just a quick Q about the Dial function. Say for instance, when I want multiple SIP handsets to ring when a given extension is dialed, I have a line in extensions.conf that reads like

exten => 236,1,Dial(SIP/236&SIP/200,10,r)

This works great.

However, when adding a ZAP channel to that, things go a little wierd.

exten => 236,1,Dial(SIP/236&SIP/200&Zap/g1/6137371111,10,r)

Both SIP handsets ring twice, but as soon as a Zap channel is ringing, both the SIP handsets stop. I tried with an explicit Zap channel such as Zap/13, with no change.

I’ve toggled the “callprogress” variable in zapata thinking it might play a hand in determining ring vs pick-up but no … it didn’t work.

Any idea?

Since the SIP channels are extensions (virtual FXO’s, if not actual FXOs in the case of an ATA) and the Zap channel is a trunk (FXS) it’s not so much “ringing” it as it is “forwarding” the call to it.

Hope that helps :smile:

Since the SIP channels are extensions (virtual FXO’s, if not actual FXOs in the case of an ATA) and the Zap channel is a trunk (FXS) it’s not so much “ringing” it as it is “forwarding” the call to it.

Hope that helps :smile:[/quote]

Not really. maybe I should rephrase.

I have 2 extensions and a cell phone. How can I get all 3 to ring at the same time and stop ringing when any one is answered.

if i understand you right-

you dial() a few SIP extens and a FXO line. When the FXO line is included the SIP phones only ring for a split second if at all and then the call goes away, but the call goes through to the FXO line

This is because fo the FXO line. Analog trunks do not provide ‘answer supervision’- the only way you know that someone picked up is the line stopped ringing, and that can’t be easily detected. As a result, the Zap channel considers the call ‘answered’ as soon as it’s done dialing. That is why the other phones stop ringing.

You MAY be able to get answer supervision from your telco- it sends a polarity reverse (CPC) when the call is answered and again when it ends (disconnect supervision, which is more common). I think only Sangoma cards can see this though… could be wrong. You also need a config statement in zapata.conf…

If you used a SIP VOIP provider, this wouldn’t happen, as VoIP providers do have answer supervision.

[quote=“IronHelix”]if i understand you right-

you dial() a few SIP extens and a FXO line. When the FXO line is included the SIP phones only ring for a split second if at all and then the call goes away, but the call goes through to the FXO line

This is because fo the FXO line. Analog trunks do not provide ‘answer supervision’- the only way you know that someone picked up is the line stopped ringing, and that can’t be easily detected. As a result, the Zap channel considers the call ‘answered’ as soon as it’s done dialing. That is why the other phones stop ringing.

You MAY be able to get answer supervision from your telco- it sends a polarity reverse (CPC) when the call is answered and again when it ends (disconnect supervision, which is more common). I think only Sangoma cards can see this though… could be wrong. You also need a config statement in zapata.conf…

If you used a SIP VOIP provider, this wouldn’t happen, as VoIP providers do have answer supervision.[/quote]

Thank you for the great answer. I will suggest that we break-up this fellow’s call plan to ring the cell phone in sequence after a NOANSWER on the SIP devices.