[asterisk-users] $agi->hangup() Does not hang up the channel

Raj Mathur ( राज माथुर ) raju at linux-delhi.org
Sun Sep 16 23:27:36 CDT 2012


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



More information about the asterisk-users mailing list