When call comes in from Openzap, tone_detect app does pre_answer of a call cause it&#39;s need media to start detecting tones in the first place. This behaviour is something that I see on calls inside my telco when calling from analogue lines. I don&#39;t think this is a big of deal because ringback provided by FS will make caller understand that the call is still in progress. One can make its own ringback to sound exactly the same as telco&#39;s.<br>
<br>I don&#39;t think that we&#39;ll ever make POTS behave like digital protocols do.<br><br>Regards,<br>Ognjen<br><br><div class="gmail_quote">On Wed, Jan 21, 2009 at 10:36 AM, Scott Ellis <span dir="ltr">&lt;<a href="mailto:scott.ellis@novatex.com.au">scott.ellis@novatex.com.au</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


  
  

<div bgcolor="#ffffff" text="#000000">
I had a similar problem, you can use <br>
&lt;action application=&quot;set&quot; data=&quot;ringback=${au-ring}&quot;/&gt;&nbsp; (I added
an &quot;au&quot; ring definition to my vars.xml file)<br>
<br>
To get what you want. <br>
<br>
I also had a problem that you get two rings, then an answer then to the
system generated ring tone, which was confusing some of our (not to
bright) callers.<br>
<br>
As we don&#39;t use callerID I turned that flag off in the openzap.conf.xml
file - I thought that this would do what I wanted (answer the instant
the call is detected), but the change in the config file does not make
it all the way down to the point where it takes action. At this point I
hacked the code to get what I wanted. I have to create a JIRA entry
with the details yet.<br>
<br>
As far as I understand, this is the right place for OpenZap, as it is a
product of the FS project.<br>
<br>
Scott<br>
<br>
Tomás wrote:
<blockquote type="cite"><div><div></div><div class="Wj3C7c">Scott, I imagined that it could be an OpenZap problem, but
I didn&#39;t find an OpenZap mailing list, so I sent the email to FS list.
Do you know where can I find more information about OpenZap hardware
support and developement status (I have special interest in Loop
Start)??<br>
  <br>
Anthony and Ognjen, I&#39;ve tried tone detection and thanks to that FS is
detecting hung up, but I faced the problem that tone detector answer
the call...<br>
  <br>
That&#39;s my dialplan:<br>
  <br>
&nbsp;&lt;extension name=&quot;extension_name&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field=&quot;destination_number&quot;
expression=&quot;^919999999$&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;tone_detect&quot; data=&quot;busy 425,0 r +100
hangup 16 4&quot;/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;bridge&quot;
data=&quot;sofia/internal/1003%${server-domain-name},
sofia/internal/1004%${server-domain-name}&quot;/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<br>
&nbsp;&nbsp;&nbsp; <br>
When I receive a call from PSTN, tone detection answer the call (the
caller hears only one first tone and then hears &quot;nothing&quot; until I pick
up the call on softphone).<br>
  <br>
So, I think that tone detection solution does not resolve my problem...
Is there any other possibility to detect hang up without answering the
call (using Loop Start signaling) or have we to wait until OpenZap is
completely developed?<br>
  <br>
Thanks in advance.<br>
  <br>
  <div class="gmail_quote">On Tue, Jan 20, 2009 at 10:43 PM, Ognjen
Seslija <span dir="ltr">&lt;<a href="mailto:oseslija@gmail.com" target="_blank">oseslija@gmail.com</a>&gt;</span>
wrote:<br>
  <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div>Ok, as discussed with Tony on IRC channel&nbsp;I followed his
directions which lead to a successfull outcome (like it always does I
might add :).</div>
    <div>&nbsp;</div>
    <div>One has to use tone_detect app in FreeSWITCH dialplan in order
to check for busy tones coming from the PSTN side and if&nbsp;matched fire a
hangup application. This is the snippet of my test dp that does the
trick (from extension Local_extensions in default.xml):</div>
    <div>&nbsp;</div>
    <div>&lt;anti-action application=&quot;tone_detect&quot; data=&quot;busy 425,0 r
+100 hangup 16 4&quot;/&gt;<br>
&lt;anti-action application=&quot;bridge&quot; data=&quot;<a href="mailto:user/$%7Bdialed_extension%7D@$%7Bdomain_name%7D%22/" target="_blank">user/${dialed_extension}@${domain_name}&quot;/</a>&gt;<br>
    </div>
    <div>This means that FS will listen to freq of 425 Hz and wait for
4 positive detection to fire up hangup app with code 16 which is
NORMAL_CLEARING (425 Hz is the freq telco here uses; for other
countries I suggest getting the ITU world tones pdf file and check
there):</div>
    <div>&nbsp;</div>
    <div>2009-01-20 22:32:46 [DEBUG] switch_ivr_async.c:1262
tone_detect_callback() TONE busy HIT 1/4<br>
2009-01-20 22:32:47 [DEBUG] switch_ivr_async.c:1262
tone_detect_callback() TONE busy HIT 2/4<br>
2009-01-20 22:32:48 [DEBUG] switch_ivr_async.c:1262
tone_detect_callback() TONE busy HIT 3/4<br>
2009-01-20 22:32:50 [DEBUG] switch_ivr_async.c:1262
tone_detect_callback() TONE busy HIT 4/4<br>
2009-01-20 22:32:50 [DEBUG] switch_ivr_async.c:1268
tone_detect_callback() TONE busy DETECTED<br>
    </div>
    <div>2009-01-20 22:32:50 [NOTICE] mod_dptools.c:584
hangup_function() Hangup OpenZAP/1:1/1 [CS_EXECUTE] [NORMAL_CLEARING]</div>
    <div>&nbsp;</div>
    <div>Regards,</div>
    <div>Ognjen</div>
    <div>
    <div>
    <div>&nbsp;</div>
    <div class="gmail_quote">On Tue, Jan 20, 2009 at 8:45 PM, Ognjen
Seslija <span dir="ltr">&lt;<a href="mailto:oseslija@gmail.com" target="_blank">oseslija@gmail.com</a>&gt;</span>
wrote:<br>
    <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">
      <div>I tried similar setup with my analog card (X100P) and I&#39;m
having same issue. Call is not hungup on the oz side once the caller
ends. My telco doesn&#39;t use polarity reversal for singalling hang up so
I&#39;m guess I&#39;m stuck to detecting busy tone from the telco side. I&#39;ll
try to modify tones.conf accordingly.</div>
      <div>&nbsp;</div>
      <div>Regards,</div>
      <div>Ognjen<br>
(sekil)<br>
      </div>
      <div>
      <div>
      <div class="gmail_quote">On Tue, Jan 20, 2009 at 6:05 PM, Anthony
Minessale <span dir="ltr">&lt;<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>&gt;</span>
wrote:<br>
      <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">This
is a common issue with analog phones even traditional answering
machines suffer from it.<br>
I&#39;m sure you must have had an answering machine at some point that has
dial tone as the message it receives.<br>
        <br>
Unless FreeSWITCH has some hint that the call has hungup it will not
stop trying to complete the call.<br>
        <br>
If the other side is sending a busy tone to indicate hangup it&#39;s
possible to use the tone_detect app to pick<br>
up on the tones and abort the call.<br>
        <br>
Another thing you could do if you have unlimited inbound is explicitly
answer the call in the dialplan before<br>
you call your sip phones this will give you a more profound hangup
detection but it will make every call count<br>
even when nobody answers.<br>
        <br>
        <br>
        <br>
        <div class="gmail_quote">
        <div>
        <div>On Tue, Jan 20, 2009 at 10:46 AM, Tomás <span dir="ltr">&lt;<a href="mailto:tomasborrella@gmail.com" target="_blank">tomasborrella@gmail.com</a>&gt;</span> wrote:<br>
        </div>
        </div>
        <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
          <div>
          <div>Hi all,<br>
          <br>
I&#39;m configuring my home PBX using FreeSwitch. I&#39;m using a X101P card
configured as FXO (conected to analog PSTN line) and I have several IP
phones and softphones conected to FreeSwitch.<br>
          <br>
I can call from an IP phone to other IP phone (the same with the
softphones) and also from an IP phone (or softphone) to an external
number thought PSTN.<br>
          <br>
When I call from an external analog phone to FreeSwitch, I bridge the
call to all internal IP phones and softphones and they ring, but the
problem is that when I hang up the call in the external phone, all
internal phones (IP phones and softphones) keeps ringing...<br>
          <br>
I&#39;m pretty sure the problem is that FreeSwitch don&#39;t receive the hang
up, because I cann&#39;t see anything on the log.<br>
          <br>
I&#39;ve also created my own tones.conf for my country (Spain) but I&#39;m not
sure if it&#39;s ok (but I have the same problem with hang up)<br>
          <br>
I&#39;ve googled the list, and I&#39;ve found several people with a similar
problem but no solution...<br>
          <br>
That&#39;s my pastebin with the most importants printouts and config files:<br>
          <a href="http://pastebin.freeswitch.org/6822" target="_blank">http://pastebin.freeswitch.org/6822</a><br>
          <br>
Thank you very much in advance.<br>
          <br>
          </div>
          </div>
          <div>_______________________________________________<br>
Freeswitch-users mailing list<br>
          <a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br>
          <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
          <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
          <br>
          </div>
        </blockquote>
        </div>
        <br>
        <br clear="all">
        <br>
-- <br>
Anthony Minessale II<br>
        <br>
FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
        <br>
AIM: anthm<br>
        <a href="mailto:MSN%3Aanthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com" target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net/" target="_blank">irc.freenode.net</a> #freeswitch<br>
        <br>
FreeSWITCH Developer Conference<br>
        <a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br>
        <a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
        <a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:213-799-1400<br>
        <br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
        <a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br>
        <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
        <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
        <br>
      </blockquote>
      </div>
      <br>
      </div>
      </div>
    </blockquote>
    </div>
    <br>
    </div>
    </div>
    <br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
    <a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br>
    <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
    <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
    <br>
  </blockquote>
  </div>
  <br>
  </div></div><pre><hr size="4" width="90%"><div class="Ih2E3d">
_______________________________________________
Freeswitch-users mailing list
<a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
  </div></pre>
</blockquote>
</div>



<br>_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>