Mehdi Rahimi
2012-Sep-17 04:15 UTC
[asterisk-users] $agi->hangup() Does not hang up the channel
Hello All, I need to use agi to handle some issue , after finishing agi i want to hang up the channel , if i call from an extension there is no problem but i want to be the same for PSTN (outside) caller , if someone call asterisk show the hang up channel but the caller is not disconnected and if meanwhile someone inside try to call from an extension the outide caller can listen to DTMF and everything . . . . I would be really grateful if you share your close experience . Regards, Mehdi
Raj Mathur (राज माथुर)
2012-Sep-17 04:27 UTC
[asterisk-users] $agi->hangup() Does not hang up the channel
On Monday 17 Sep 2012, Mehdi Rahimi wrote:> I need to use agi to handle some issue , after finishing agi i want > to hang up the channel , if i call from an extension there is no > problem but i want to be the same for PSTN (outside) caller , if > someone call asterisk show the hang up channel but the caller is not > disconnected and if meanwhile someone inside try to call from an > extension the outide caller can listen to DTMF and everything . . . > . > I would be really grateful if you share your close experience .If this is on Analog (FXO) lines then you may be out of luck. In India, at least, the called party cannot hang up an incoming call on an analog line -- the caller has to do it. In any case, what happens if you execute HangUp() in your dialplan instead of in AGI? Regards, -- Raj -- Raj Mathur || raju at kandalaya.org || GPG: http://otheronepercent.blogspot.com || http://kandalaya.org || CC68 It is the mind that moves || http://schizoid.in || D17F
Mehdi Rahimi
2012-Sep-17 04:44 UTC
[asterisk-users] $agi->hangup() Does not hang up the channel
Thank you for your reply i did it in both ways (AGI and DIALPLAN) but not working. so you mean it is because of telco ? what about digital lines such as E1 ? Regards, Mehdi On Mon, Sep 17, 2012 at 8:57 AM, Raj Mathur (??? ?????) <raju at linux-delhi.org> wrote:> On Monday 17 Sep 2012, Mehdi Rahimi wrote: >> I need to use agi to handle some issue , after finishing agi i want >> to hang up the channel , if i call from an extension there is no >> problem but i want to be the same for PSTN (outside) caller , if >> someone call asterisk show the hang up channel but the caller is not >> disconnected and if meanwhile someone inside try to call from an >> extension the outide caller can listen to DTMF and everything . . . >> . >> I would be really grateful if you share your close experience . > > If this is on Analog (FXO) lines then you may be out of luck. In India, > at least, the called party cannot hang up an incoming call on an analog > line -- the caller has to do it. > > In any case, what happens if you execute HangUp() in your dialplan > instead of in AGI? > > Regards, > > -- Raj > -- > Raj Mathur || raju at kandalaya.org || GPG: > http://otheronepercent.blogspot.com || http://kandalaya.org || CC68 > It is the mind that moves || http://schizoid.in || D17F > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
Mehdi Rahimi
2012-Sep-17 04:49 UTC
[asterisk-users] $agi->hangup() Does not hang up the channel
This is happen whenever caller calls from mobile phone and if the caller calls from analog line i can handle with : ;exten => s,n,Playtones(congestion) ; send the audio sequence that humans understand means "congestion" ;exten => s,n,Congestion(5) ; signal the other end of congestion. Wait for hangup. and call hangs up from the telco , but it does not for mobile calls Regards, Mehdi On Mon, Sep 17, 2012 at 8:57 AM, Raj Mathur (??? ?????) <raju at linux-delhi.org> wrote:> On Monday 17 Sep 2012, Mehdi Rahimi wrote: >> I need to use agi to handle some issue , after finishing agi i want >> to hang up the channel , if i call from an extension there is no >> problem but i want to be the same for PSTN (outside) caller , if >> someone call asterisk show the hang up channel but the caller is not >> disconnected and if meanwhile someone inside try to call from an >> extension the outide caller can listen to DTMF and everything . . . >> . >> I would be really grateful if you share your close experience . > > If this is on Analog (FXO) lines then you may be out of luck. In India, > at least, the called party cannot hang up an incoming call on an analog > line -- the caller has to do it. > > In any case, what happens if you execute HangUp() in your dialplan > instead of in AGI? > > Regards, > > -- Raj > -- > Raj Mathur || raju at kandalaya.org || GPG: > http://otheronepercent.blogspot.com || http://kandalaya.org || CC68 > It is the mind that moves || http://schizoid.in || D17F > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
Raj Mathur (राज माथुर)
2012-Sep-17 04:51 UTC
[asterisk-users] $agi->hangup() Does not hang up the channel
On Monday 17 Sep 2012, Mehdi Rahimi wrote:> Thank you for your reply > i did it in both ways (AGI and DIALPLAN) but not working. > so you mean it is because of telco ? > what about digital lines such as E1 ?From my experience: the call gets disconnected if the called party executes HangUp on a digital line. The problem is only with Analog lines. Regards, -- Raj -- Raj Mathur || raju at kandalaya.org || GPG: http://otheronepercent.blogspot.com || http://kandalaya.org || CC68 It is the mind that moves || http://schizoid.in || D17F