Merul,<br><br>My apologies, I had meant to follow up much earlier. Would you mind going ahead and capturing full debug log output of a call in as well as a call out? Please use <a href="http://pastebin.freeswitch.org">pastebin.freeswitch.org</a> to post the logs and then reply here with the link to the pb post.<br>
<br>Thanks,<br>MC<br><br><div class="gmail_quote">On Sun, Aug 23, 2009 at 10:27 AM, Merul Patel <span dir="ltr">&lt;<a href="mailto:merul@mac.com">merul@mac.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;">
I have a Freeswitch setup working on an Alix embedded platform in conjunction with a USB FXO device from Sangoma. My goal is to be able to either answer incoming calls on a softphone or on a POTS handset elsewhere in the building, and to also be able to make outgoing calls from either. For clarity, the analogue line has two physical extensions, one connected to the POTS and the other to the FXO.<br>

<br>
I can make and receive calls fine, but have problems when the call is answered on the POTS handset.<br>
<br>
Here is the dialplan I initially used  in /opt/freeswitch/conf/dialplans/public/01_incoming.xml:<br>
<br>
&lt;include&gt;<br>
  &lt;extension name=&quot;public_did&quot;&gt;<br>
    &lt;condition field=&quot;${strftime(%w)}&quot; expression=&quot;^(\d)$&quot;&gt;<br>
      &lt;!-- There seems to be a delay of 7 seconds from when FS starts dealing with the call and from when it starts ringing --&gt;<br>
      &lt;action application=&quot;sleep&quot; data=&quot;23000&quot;/&gt;<br>
      &lt;action application=&quot;set&quot; data=&quot;domain_name=$${domain}&quot;/&gt;<br>
      &lt;action application=&quot;transfer&quot; data=&quot;1001 XML default&quot;/&gt;<br>
    &lt;/condition&gt;<br>
  &lt;/extension&gt;<br>
&lt;/include&gt;<br>
<br>
It&#39;s pretty basic, and if the softphone is not registered or does not answer then the call goes to voicemail. However the call will always go to voicemail, and the voicemail application will begin to execute after the call has been answered on the POTS handset.<br>

<br>
I&#39;ve been trying to make the dialplan more useful, by having it ring the softphone immediately, and only transfer the call to the voicemail application if the line is still ringing. I&#39;m in the UK, hence my choice of frequencies in the tone_detect application:<br>

<br>
&lt;include&gt;<br>
  &lt;extension name=&quot;public_did&quot;&gt;<br>
    &lt;condition field=&quot;${strftime(%w)}&quot; expression=&quot;^(\d)$&quot;&gt;<br>
      &lt;!-- There seems to be a delay of 7 seconds from when FS starts dealing with the call and from when it starts ringing --&gt;<br>
      &lt;action application=&quot;set&quot; data=&quot;call_timeout=23&quot;/&gt;<br>
      &lt;action application=&quot;set&quot; data=&quot;continue_on_fail=true&quot;/&gt;<br>
      &lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;<br>
      &lt;action application=&quot;bridge&quot; data=&quot;sofia/internal/1001%$${domain}&quot;/&gt;<br>
      &lt;action application=&quot;sleep&quot; data=&quot;23000&quot;/&gt;<br>
      &lt;action application=&quot;tone_detect&quot; data=&quot;ring 400,450 r +5000 set RING=true&quot;/&gt;<br>
      &lt;action application=&quot;transfer&quot; data=&quot;public_answer_and_email&quot;/&gt;<br>
    &lt;/condition&gt;<br>
  &lt;/extension&gt;<br>
<br>
&lt;extension name=&quot;public_answer_and_email&quot;&gt;<br>
    &lt;condition field=&quot;RING&quot; expression=&quot;true&quot;&gt;<br>
       &lt;action application=&quot;answer&quot;/&gt;<br>
       &lt;action application=&quot;voicemail&quot; data=&quot;default $${domain} 1001&quot;/&gt;<br>
    &lt;/condition&gt;<br>
  &lt;/extension&gt;<br>
&lt;/include&gt;<br>
<br>
Unfortunately, this is not working, and the logs are not yielding anything the is helpful to me. Is my use of the tone_detect application and the basic dialplan correct?<br><font color="#888888">
<br>
Merul</font><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>