Hi,<div><br></div><div>So basically the FXO cards configurations need to be tweaked i.e hanguponpolarityinverse=yes etc.</div><div>Since this is a Hangup request initiated by the SIP client, Asterisk then atleast it should close all the media streams and channel should get deleted.</div>
<div>Keeping an eye on BYE : *CLI> "sip set debug on" Then make this call and see if a SIP BYE method is triggered properly and appears on screen.</div><div>More likely you need to look into you dahdi configs.</div>
<div><br></div><div>Thanks,</div><div>Sammy</div><div><br></div><div><br><br><br><div class="gmail_quote">On Tue, Sep 18, 2012 at 2:03 PM, Tony Mountifield <span dir="ltr"><<a href="mailto:tony@softins.co.uk" target="_blank">tony@softins.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In article <<a href="mailto:CAEhsOWEanTzTYOebdoBjchOeSZhfk_z9SigAUJSiJ15XX-uEtA@mail.gmail.com">CAEhsOWEanTzTYOebdoBjchOeSZhfk_z9SigAUJSiJ15XX-uEtA@mail.gmail.com</a>>,<br>
<div class="im">Mehdi Rahimi <<a href="mailto:mrm.cisco@gmail.com">mrm.cisco@gmail.com</a>> wrote:<br>
> Hi all,<br>
><br>
> I need to handle a problem from AGI please guide me<br>
><br>
> in extensions_custom.conf :<br>
><br>
> exten => s,1,Answer<br>
> exten => s,n,AGI(hang.php)<br>
> exten => s,n,Hangup<br>
><br>
> in hang.php :<br>
><br>
> #!/usr/bin/php -q<br>
> <?<br>
> set_time_limit(30);<br>
> require('phpagi.php');<br>
> error_reporting(E_ALL);<br>
> $agi = new AGI();<br>
> $agi->answer();<br>
> $agi->say_number('10000');<br>
> $agi->hangup();<br>
> ?><br>
><br>
><br>
> calling from an extension has no problem but whenever i use landline<br>
> or mobile it can not hangup the call and the caller has to hangup the<br>
> call.<br>
<br>
</div>In the UK phone network, and I suspect in many other countries too, for<br>
analogue lines it is the caller who holds the call open. For example in<br>
a call between two normal analogue phones, the called party can hangup<br>
their phone, and then within a short while pick it up again (or another<br>
phone on the same line) and the caller is still there. Hanging up the<br>
called phone does not clear down the call until after quite a long<br>
timeout (a couple of minutes perhaps).<br>
<br>
In your above example with Asterisk connected to an analogue line with an<br>
FXO card, Asterisk is the called party, and is therefore unable to clear<br>
down the line forcibly. This is not an Asterisk or AGI problem but a PSTN one.<br>
<br>
Cheers<br>
<span class="HOEnZb"><font color="#888888">Tony<br>
--<br>
Tony Mountifield<br>
Work: <a href="mailto:tony@softins.co.uk">tony@softins.co.uk</a> - <a href="http://www.softins.co.uk" target="_blank">http://www.softins.co.uk</a><br>
Play: <a href="mailto:tony@mountifield.org">tony@mountifield.org</a> - <a href="http://tony.mountifield.org" target="_blank">http://tony.mountifield.org</a><br>
</font></span><div class="HOEnZb"><div class="h5"><br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br></div>