Hi I am trying to develop a night divert. Caller dials in after hours on Zap and it gets divert to a mobile number via a second Zap. The call bridges but will not hangup the channels when the parties finish. Is there something I am missing or an dial option that I should be using. I am using latest CVS. [night] exten => s,1,Answer exten => s,2,Wait,1 exten => s,3,Set(TIMEOUT(digit)=3) exten => s,4,Set(TIMEOUT(response)=6) exten => s,5,Set(dvt=${DB(DIVERT/MOBILE)}) exten => s,6,Gotoif($["${dvt}" != ""]?s|7:s|103) exten => s,7,Dial,${PSTNTRUNK}/${dvt}|30|tr exten => s,8,Hangup [default] include => melton-night|17:31-8:59|mon-fri|*|* Thanks master
i have the same problem. it seems to be a bug. On 6/5/05, Master Abi <master@lavacoms.com> wrote:> Hi > > I am trying to develop a night divert. Caller dials in after hours on > Zap and it gets divert to a mobile number via a second Zap. The call > bridges but will not hangup the channels when the parties finish. > > Is there something I am missing or an dial option that I should be > using. I am using latest CVS. > > [night] > exten => s,1,Answer > exten => s,2,Wait,1 > exten => s,3,Set(TIMEOUT(digit)=3) > exten => s,4,Set(TIMEOUT(response)=6) > exten => s,5,Set(dvt=${DB(DIVERT/MOBILE)}) > exten => s,6,Gotoif($["${dvt}" != ""]?s|7:s|103) > exten => s,7,Dial,${PSTNTRUNK}/${dvt}|30|tr > exten => s,8,Hangup > > [default] > include => melton-night|17:31-8:59|mon-fri|*|* > > Thanks > master > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Paradise Dove wrote:> i have the same problem. > it seems to be a bug.Is this related to the problem i posted yesterday (in a mail with subject " Zap channel not hangingup" raj> On 6/5/05, Master Abi <master@lavacoms.com> wrote: > >>Hi >> >>I am trying to develop a night divert. Caller dials in after hours on >>Zap and it gets divert to a mobile number via a second Zap. The call >>bridges but will not hangup the channels when the parties finish. >> >>Is there something I am missing or an dial option that I should be >>using. I am using latest CVS.
Andrew Kohlsmith
2005-Jun-05 05:21 UTC
[Asterisk-Users] zap to zap bridging not hanging up
On Sunday 05 June 2005 01:37, Master Abi wrote:> I am trying to develop a night divert. Caller dials in after hours on > Zap and it gets divert to a mobile number via a second Zap. The call > bridges but will not hangup the channels when the parties finish.Since you give us no information whatsoever about your hardware (what FXO device, the name of the PSTN, the version of Asterisk, I'm just shooting in the dark here. I'm willing to bet that you're either using a channel bank without CPD, you've told Asterisk that your Zap channel is not fxs_ks or you're on a phone network that does not provide CPD. Unless your Zap channel is set to fxs_ks, Asterisk won't detect the battery polarity reversal (or drop) and thus has no way of knowing when the line has been hung up. BT doesn't seem to provide it and there are a few others that don't either. There is no real way around this because the phone network does NOT let you know when someone hangs up. And no, this is NOT a bug, unless you consider it the telephone network's bug. busydetect is a workaround but it has its own unique set of problems (false positives). In short, if you've got your Zap device set to fxs_ks and your PSTN is providing CPD, you can either use AbsoluteTimeout(), try your luck with busydetect or try to get the telco to give you CPD. -A.