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