[Freeswitch-users] t38_gateway self - no re-Invite?

Anthony Minessale anthony.minessale at gmail.com
Sat Feb 26 03:13:22 MSK 2011


like I said I don't know you topology but you neeed to get the gateway
to detect the CNG tone going the right way so the app will react to
that and transfer it to the data bridge where it will be ready to
handle t.38 or audio.

if you don't see it detecting the tone you are not making it very far.


On Fri, Feb 25, 2011 at 5:54 PM, Clemens Ebentheuer <ce at kapper.net> wrote:
> Yes, tried that too - no luck - both, self and peer
>
> When I try to send the fax to an extension with rxfax, all is working fine.
>
> Zoiper invites pcma ->
> freeswitch OK ->
> Zoiper reinvites t38 ->
> freeswitch TRYING ->
> fresswitch executes rxfax - mod_spandsp_fax.c "reads" the t38 sdp->
> freeswitch sends OK with t38 sdp ->
>
> any other ideas?
>
>
>> I dont know what your topology is but did you also try setting the app
>> on the A leg and try both peer and self
>>
>> <action application="t38_gateway" data="self"/>
>>
>> right before bridge.
>>
>>
>> On Fri, Feb 25, 2011 at 4:36 PM, Clemens Ebentheuer <ce at kapper.net>
>> wrote:
>> > Hi
>> >
>> > My way:
>> >
>> > internal:t38(zoiper) -> FS -> external:g711 (provider with no t38
>> support)
>> >
>> > I tried all versions of set and export and peer and self - but no
>> luck- for my understanding it should work with set t38_gateway self
>> >
>> > Set because of aleg and self because FS acts as the T38 fax
>> "receiver".
>> >
>> > Am I wrong here?
>> >
>> > My dialplan:
>> > <extension name="0-sil-p000016" >
>> >   <condition field="destination_number" expression="^0(.*)$">
>> >       <action application="set" data="fax_enable_t38=true"/>
>> >       <action application="set" data="execute_on_answer=t38_gateway
>> self"/>
>> >       <action application="bridge" data="sofia/gateway/sil-
>> p000016/$1"/>
>> >   </condition>
>> > </extension>
>> > (testet with and without fax_enable_t38_request=true)
>> >
>> > Thx,
>> >
>> >
>> > Clemens
>> >
>> >
>> >
>> >
>> >> have you tried the self vs peer args to the t38 gateway app, maybe
>> you
>> >> have it configured backwards.
>> >>
>> >>
>> >> On Fri, Feb 25, 2011 at 4:11 PM, Clemens Ebentheuer <ce at kapper.net>
>> >> wrote:
>> >> > Hi,
>> >> >
>> >> >> It can be, that in your case the device is simply detecting the
>> FAX
>> >> >> tones itself before FS does. When the device sends a ReINVITE to
>> FS
>> >> FS
>> >> >> has no chance to detect CNG anymore and hence never switch to
>> t38.
>> >> >
>> >> > Maybe you´re right here - or zoiper
>> >> (http://www.zoiper.com/softphone/classic/ which is a softphone with
>> >> only t38 fax support [no g711 fallback]) sends the reinvite every
>> time
>> >> after answer when it is sending a fax.
>> >> >
>> >> >>
>> >> >> Just trace the sending FAX-Device for SIP-Signalling and you
>> should
>> >> se
>> >> >> a
>> >> >> ReINVITE from FAX-device to FS, if this is true.
>> >> >
>> >> > Here is a debug with siptrace:
>> http://pastebin.freeswitch.org/15439
>> >> >
>> >> > If I read the logs in a right way:
>> >> > then FS executes t38_gateway on answer -
>> >> > sends a 200 OK to zoiper -
>> >> > zoiper answers with ACK and then reinvites with t38 -
>> >> > FS answers 100 Trying-
>> >> >
>> >> > And nothing is happening. I´m not sure if this is the scenario you
>> >> describe below, but shouldn´t FS answer with a t38 sdp so zoiper
>> knows
>> >> where to send it´s t38 fax??
>> >> >
>> >> >>
>> >> >> You should check your t38-Device configuration. See if it is able
>> to
>> >> >> let
>> >> >> the t38 fax detection job only by FS.
>> >> >>
>> >> >> Establish a call from the Fax device to a phone. Can your hear
>> the
>> >> CNG
>> >> >> signal when you pickup the phone? Does it suddenly stop? If so,
>> the
>> >> FAX
>> >> >> device or FS/mod_spandsp has sent a t38-ReINVITE.
>> >> >>
>> >> >> Do you see something like "media Bug removed" in FS console
>> (DEBUG
>> >> >> level) after 20 seconds of listening to 1100Hz? If so, then FS
>> >> failed
>> >> >> to
>> >> >> detect CNG, hence it never received it (or for too short to
>> detect
>> >> it).
>> >> >>
>> >> >> On my Grandstream ATAs this wasn't possible, so I had to search
>> for
>> >> a
>> >> >> hack.
>> >> >>
>> >> >> Hope this will light up your problems a little bit.
>> >> >>
>> >> >>
>> >> >> > If so, I´m wondering why rxfax in t38 mode is working fine then
>> -
>> >> >> with re-invite.
>> >> >> Can't tell you with this, never tried that. sorry.
>> >> >
>> >> > Thx,
>> >> >
>> >> > clemens
>> >> >
>> >> > _______________________________________________
>> >> > FreeSWITCH-users mailing list
>> >> > FreeSWITCH-users at lists.freeswitch.org
>> >> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> >> >
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-
>> >> users
>> >> > http://www.freeswitch.org
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Anthony Minessale II
>> >>
>> >> FreeSWITCH http://www.freeswitch.org/
>> >> ClueCon http://www.cluecon.com/
>> >> Twitter: http://twitter.com/FreeSWITCH_wire
>> >>
>> >> AIM: anthm
>> >> MSN:anthony_minessale at hotmail.com
>> >> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
>> >> IRC: irc.freenode.net #freeswitch
>> >>
>> >> FreeSWITCH Developer Conference
>> >> sip:888 at conference.freeswitch.org
>> >> googletalk:conf+888 at conference.freeswitch.org
>> >> pstn:+19193869900
>> >>
>> >> _______________________________________________
>> >> FreeSWITCH-users mailing list
>> >> FreeSWITCH-users at lists.freeswitch.org
>> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-
>> >> users
>> >> http://www.freeswitch.org
>> >
>> > _______________________________________________
>> > FreeSWITCH-users mailing list
>> > FreeSWITCH-users at lists.freeswitch.org
>> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-
>> users
>> > http://www.freeswitch.org
>> >
>>
>>
>>
>> --
>> Anthony Minessale II
>>
>> FreeSWITCH http://www.freeswitch.org/
>> ClueCon http://www.cluecon.com/
>> Twitter: http://twitter.com/FreeSWITCH_wire
>>
>> AIM: anthm
>> MSN:anthony_minessale at hotmail.com
>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
>> IRC: irc.freenode.net #freeswitch
>>
>> FreeSWITCH Developer Conference
>> sip:888 at conference.freeswitch.org
>> googletalk:conf+888 at conference.freeswitch.org
>> pstn:+19193869900
>>
>> _______________________________________________
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-
>> users
>> http://www.freeswitch.org
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>



-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
googletalk:conf+888 at conference.freeswitch.org
pstn:+19193869900



More information about the FreeSWITCH-users mailing list