<p>I don</p>
<p><blockquote type="cite">On Oct 10, 2010 6:30 AM, &quot;Jeroen C. van Gelderen&quot; &lt;<a href="mailto:slim@thegreek.com">slim@thegreek.com</a>&gt; wrote:<br><br>Hi Guys,<br>
<br>
I have a legacy Panasonic PBX which does not support CPC/Disconnect<br>
Supervision. Calls from this PBX are sent to Freeswitch by way of<br>
DAHDI/FreeTDM FXO ports (on a Xorcom Astribank). I use tone_detect to deal<br>
with far-end hang-ups. This works fine:<br>
<br>
&lt;!-- Detect busy tone from Panasonic --&gt;<br>
&lt;action application=&quot;tone_detect&quot; data=&quot;busy 350,440 r 0 hangup 4&quot;/&gt;<br>
<br>
Some calls from the Panasonic PBX are put in a FIFO and from there they are<br>
sent to a SIP-to-GSM bridge (GoIP) to be terminated on one of 3 GSM phones<br>
in a round-robin fashion.<br>
<br>
The GSM bridge requires me to use &quot;ignore_early_media=true&quot; otherwise the<br>
caller will receive messages like &quot;the number you are calling does not<br>
answer&quot;. When I set &quot;ignore_early_media=true&quot; the FIFO correctly keeps<br>
hunting for a GSM phone that is actually answered and will ignore phones<br>
that are busy, no-answer or turned off. This too works fine.<br>
<br>
The problem occurs when the two are combined as follows:<br>
<br>
Panasonic PBX --FXO--&gt; Freeswitch --SIP--&gt; GSM-bridge<br>
<br>
If I enable ignore_early_media then tone_detect doesn&#39;t work UNTIL one of<br>
the GSMs is answered. This is a problem when none of the GSMs are answered<br>
and the Panasonic PBX hangs up. The FXO port will stay &quot;up&quot; and the FIFO<br>
will keep hunting until it times out.<br>
<br>
If I don&#39;t use &quot;ignore_early_media=true&quot; then tone_detect works fine but<br>
then every telco message gets mistaken for an answered call and the hunting<br>
stops early.<br>
<br>
I tried changing this example line from my fifo.conf:<br>
<br>
&lt;member timeout=&quot;30&quot; simo=&quot;1&quot; lag=&quot;5&quot;&gt;<br>
{member_wait=nowait,ignore_early_media=true}sofia/internal/1??????7701@192.1<br>
68.3.11:5060<br>
&lt;/member&gt;<br>
<br>
to<br>
<br>
&lt;member timeout=&quot;30&quot; simo=&quot;1&quot; lag=&quot;5&quot;&gt;<br>
{member_wait=nowait}[ignore_early_media=true]sofia/internal/1??????7701@192.<br>
168.3.11:5060<br>
&lt;/member&gt;<br>
<br>
in a vain attempt to ignore early media on the SIP leg only. This doesn&#39;t<br>
seem to do anything however.<br>
<br>
Can anyone clue me in on what I&#39;m missing? I&#39;ve snipped the relevant<br>
configuration bits below. I have the feeling I&#39;m missing something obvious.<br>
<br>
Cheers,<br>
-Slim<br>
<br>
----8&lt;----8&lt;----8&lt;----8&lt;----8&lt;----<br>
<br>
&lt;configuration name=&quot;fifo.conf&quot; description=&quot;FIFO Configuration&quot;&gt;<br>
  &lt;settings&gt;<br>
    &lt;param name=&quot;delete-all-outbound-member-on-startup&quot; value=&quot;false&quot;/&gt;<br>
  &lt;/settings&gt;<br>
  &lt;fifos&gt;<br>
    &lt;fifo name=&quot;cool_fifo@$${domain}&quot; importance=&quot;0&quot;&gt;<br>
<br>
      &lt;member timeout=&quot;30&quot; simo=&quot;1&quot; lag=&quot;5&quot;&gt;<br>
{member_wait=nowait,ignore_early_media=true}sofia/internal/1??????7701@192.1<br>
68.3.11:5060&lt;/member&gt;<br>
<br>
      &lt;member timeout=&quot;30&quot; simo=&quot;1&quot; lag=&quot;5&quot;&gt;<br>
{member_wait=nowait,ignore_early_media=true}sofia/internal/1??????7693@192.1<br>
68.3.11:5060&lt;/member&gt;<br>
<br>
      &lt;member timeout=&quot;30&quot; simo=&quot;1&quot; lag=&quot;5&quot;&gt;<br>
{member_wait=nowait,ignore_early_media=true}sofia/internal/1??????7698@192.1<br>
68.3.11:5060&lt;/member&gt;<br>
<br>
    &lt;/fifo&gt;<br>
  &lt;/fifos&gt;<br>
&lt;/configuration&gt;<br>
<br>
----8&lt;----8&lt;----8&lt;----8&lt;----8&lt;----<br>
<br>
&lt;include&gt;<br>
  &lt;context name=&quot;pbx_test&quot;&gt;<br>
<br>
    &lt;extension name=&quot;test1&quot;&gt;<br>
      &lt;condition field=&quot;${freetdm_span_name}&quot; expression=&quot;^span_fxo_test$&quot;&gt;<br>
        &lt;action application=&quot;answer&quot;/&gt;<br>
<br>
        &lt;!-- Detect busy tone from Panasonic --&gt;<br>
        &lt;action application=&quot;tone_detect&quot; data=&quot;busy 350,440 r 0 hangup 4&quot;/&gt;<br>
<br>
        &lt;action application=&quot;playback&quot;<br>
data=&quot;ivr/ivr-hold_connect_call.wav&quot;/&gt;<br>
<br>
        &lt;action application=&quot;fifo&quot; data=&quot;cool_fifo@$${domain} in&quot;/&gt;<br>
<br>
      &lt;/condition&gt;<br>
    &lt;/extension&gt;<br>
  &lt;/context&gt;<br>
&lt;/include&gt;<br>
<br>
----8&lt;----8&lt;----8&lt;----8&lt;----8&lt;----<br>
<br>
Cheers,<br>
-Slim<br>
--<br>
Jeroen C. &quot;Slim&quot; van Gelderen<br>
<br>
<br>
<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>
</blockquote></p>