On Wed, Jan 7, 2009 at 6:39 PM, tester tato <span dir="ltr">&lt;<a href="mailto:testeador01@gmail.com">testeador01@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello everyone,<br><br>Thanks in advance if anyone wants to help me in a couple of questions; I set up my fs plant and included a grandstream fxo gateway gxw4104, the gateway redirects all incomming calls from the PSTN to the extension 1005 (with its default sample configuration).<br>

This is what happens:<br><br>&nbsp;&nbsp; 1. I get a call from the PSTN, pick it up and i decide to put it on hold while i do something else, the caller hears the moh.<br>&nbsp;&nbsp; 2. If the caller gets tired or bored of waiting and hangs up, my FS plant doesnt realize that the caller hung up, so the channel stays busy, so does the gateway line and my phone still acts as if i had a call on hold.<br>

&nbsp;&nbsp; 3. When i pick up the phonecall that was on hold all i hear (obviously) is the busy tone from the PSTN.<br><br>My questions are:<br>Is this behavior only from this particular gateway? or does it happen with other FXO devices.<br>

Is there a way to specify that i want the call to hang up itself when the caller hangs up so the channel gets released?<br><br>I know that the call actually gets hanged up and realeases the channel if the caller was another SIP extension on my plant, it just doesn&#39;t work with calls from the pstn under my configuration.<br>

<br>I highly appreciate any light you can throw to me on this matter.<br></blockquote><div><br>You might need to use <a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_tone_detect">tone_detect</a>. See the example at the bottom (this is how I use it to detect a hang up as my telco doesn&#39;t vary the voltage levels on hangup)<br>
<br>- Gonzalo<br></div></div>