Hello, I'm trying to use Freeswitch as a SIP to TDM gateway. I'd like to use t38_gateway to detect fax tones and send a ReINVITE to t38. Have a very minimal config with one profile that simply relays to FreeTDM My dialplan is: <include> <context name="sip"> <extension name="dial-trunk"> <condition field="destination_number" expression="^(.*)$"> <action application="set" data="fax_enable_t38=true"/> <action application="set" data="fax_enable_t38_request=true"/> <action application="set" data="execute_on_answer=t38_gateway self"/> <action application="bridge" data="freetdm/1/a/$1"/> </condition> </extension> </context> </include> The problem is a media bug is created on the channel but almost immediately destroyed so fax tones are never detected. See: http://pastebin.freeswitch.org/20162 Thanks for any assistance, Spencer
Just curious if anyone has got this to work? This is the dialplan that was on the wiki and also on Sangoma's wiki. I've tried building several different versions going back to June all with the same behavior so I'm assuming there is a configuration error somewhere and not a bug. Is there a was to get a higher level of debug to try to figure out why the media bug gets destroyed? Thanks, Spencer On Nov 5, 2012, at 1:32 PM, Spencer Thomason wrote:
Hello, I'm trying to use Freeswitch as a SIP to TDM gateway. I'd like to use t38_gateway to detect fax tones and send a ReINVITE to t38.
Have a very minimal config with one profile that simply relays to FreeTDM
My dialplan is: <include> <context name="sip">
<extension name="dial-trunk"> <condition field="destination_number" expression="^(.*)$"> <action application="set" data="fax_enable_t38=true"/> <action application="set" data="fax_enable_t38_request=true"/> <action application="set" data="execute_on_answer=t38_gateway self"/> <action application="bridge" data="freetdm/1/a/$1"/> </condition> </extension>
</context> </include>
The problem is a media bug is created on the channel but almost immediately destroyed so fax tones are never detected.
See: http://pastebin.freeswitch.org/20162
Thanks for any assistance, Spencer
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
Hi Spencer, I use this (gatewaying via a Mitel 3300 but there is no reason why it would not work for FreeTDM, just change the bridge at the end). <action application="set" data="absolute_codec_string=PCMU"/> <action application="set" data="fax_enable_t38=true"/> <action application="set" data="sip_execute_on_image=t38_gateway self nocng"/> <action application="bridge" data="sofia/gateway/10.10.0.2/$1"/> Hope this helps if a bit late. Cheers Alex On 05/11/12 21:32, Spencer Thomason wrote:
Hello, I'm trying to use Freeswitch as a SIP to TDM gateway. I'd like to use t38_gateway to detect fax tones and send a ReINVITE to t38.
Have a very minimal config with one profile that simply relays to FreeTDM
My dialplan is: <include> <context name="sip">
<extension name="dial-trunk"> <condition field="destination_number" expression="^(.*)$"> <action application="set" data="fax_enable_t38=true"/> <action application="set" data="fax_enable_t38_request=true"/> <action application="set" data="execute_on_answer=t38_gateway self"/> <action application="bridge" data="freetdm/1/a/$1"/> </condition> </extension>
</context> </include>
The problem is a media bug is created on the channel but almost immediately destroyed so fax tones are never detected.
See: http://pastebin.freeswitch.org/20162
Thanks for any assistance, Spencer
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
Hi Alex, Thanks for your help. The problem is I need to detect the fax tones in the audio stream and then send a ReINVITE. I'm attempting to do this like this: <extension name="dial-pbx"> <condition field="destination_number" expression="^(.*)$"> <action application="set" data="fax_enable_t38=true"/> <action application="set" data="fax_enable_t38_request=true"/> <action application="set" data="execute_on_answer=t38_gateway self"/> <action application="bridge" data="freetdm/1/a/$1"/> </condition> </extension> The topology is like this: Incoming Call: ITSP ----SIP---> Freeswitch -----ISDN PRI----> Legacy PBX ----> Fax Machine In this case I need to detect the fax and send a ReINVITE. The media bug gets created as soon as the channel is answered but immediately gets destroyed. The fax tones are never detected and no reinvite is sent. Outgoing call Fax Machine ----> Legacy PBX ---ISDN PRI----> Freeswitch ---SIP---> ITSP The ITSP sends a ReINVITE and when using sip_execute_on_image t38_gateway is working correctly. See: http://jira.freeswitch.org/browse/FS-4789 http://pastebin.freeswitch.org/20162 Were you able to get this working? Thanks for your help! Spencer On Nov 22, 2012, at 9:21 AM, Alex Crow wrote:
Hi Spencer,
I use this (gatewaying via a Mitel 3300 but there is no reason why it would not work for FreeTDM, just change the bridge at the end).
<action application="set" data="absolute_codec_string=PCMU"/> <action application="set" data="fax_enable_t38=true"/> <action application="set" data="sip_execute_on_image=t38_gateway self nocng"/> <action application="bridge" data="sofia/gateway/10.10.0.2/$1"/>
Hope this helps if a bit late.
Cheers
Alex
On 05/11/12 21:32, Spencer Thomason wrote:
Hello, I'm trying to use Freeswitch as a SIP to TDM gateway. I'd like to use t38_gateway to detect fax tones and send a ReINVITE to t38.
Have a very minimal config with one profile that simply relays to FreeTDM
My dialplan is: <include> <context name="sip">
<extension name="dial-trunk"> <condition field="destination_number" expression="^(.*)$"> <action application="set" data="fax_enable_t38=true"/> <action application="set" data="fax_enable_t38_request=true"/> <action application="set" data="execute_on_answer=t38_gateway self"/> <action application="bridge" data="freetdm/1/a/$1"/> </condition> </extension>
</context> </include>
The problem is a media bug is created on the channel but almost immediately destroyed so fax tones are never detected.
See: http://pastebin.freeswitch.org/20162
Thanks for any assistance, Spencer
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
Actually you should let your endpoint over SIP do it and NOT do it at the gateway. Just saying you'll have less pain. :P Then when the ATA or device sends the re-invite it'll trigger it. -- Brian West brian@freeswitch.org FreeSWITCH Solutions, LLC PO BOX PO BOX 2531 Brookfield, WI 53008-2531 Twitter: @FreeSWITCH_Wire T: +1.918.420.9266 | F: +1.918.420.9267 | M: +1.918.424.WEST iNUM: +883 5100 1420 9266 UK: +44 20 3298 4900 ISN: 410*543 On Nov 26, 2012, at 10:42 AM, Spencer Thomason <spencer@5ninesolutions.com> wrote:
<extension name="dial-pbx"> <condition field="destination_number" expression="^(.*)$"> <action application="set" data="fax_enable_t38=true"/> <action application="set" data="fax_enable_t38_request=true"/> <action application="set" data="execute_on_answer=t38_gateway self"/> <action application="bridge" data="freetdm/1/a/$1"/> </condition> </extension>
participants (3)
-
Alex Crow
-
Brian West
-
Spencer Thomason