Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] fax detection


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
tculjaga at gmail.com
Guest





PostPosted: Tue Sep 15, 2009 10:57 am    Post subject: [Freeswitch-users] fax detection Reply with quote

Hi,

is there any way to route fax calls according to the call capability?

I mean .. if the fax call supports T.38 i'd like to route it to a T.38 capable gateway. All other fax calls (meaning inband) should be handled by FS/SpanDSP.
Of course, I know that every fax call starts as a voice call and upon fax tone detection additional capabilities are being negotiated(T.38 or G711). Can it be done in early media, before the call is even answered?



So, here the goal is to have a T.38 capable GW handling T.38 calls while SpanDSP handling T.30...


Any chance to do that with FS?
Back to top
msc at freeswitch.org
Guest





PostPosted: Thu Sep 17, 2009 3:54 pm    Post subject: [Freeswitch-users] fax detection Reply with quote

On Tue, Sep 15, 2009 at 8:45 AM, Tihomir Culjaga <tculjaga@gmail.com (tculjaga@gmail.com)> wrote:
Quote:
Hi,

is there any way to route fax calls according to the call capability?

I mean .. if the fax call supports T.38 i'd like to route it to a T.38 capable gateway. All other fax calls (meaning inband) should be handled by FS/SpanDSP.
Of course, I know that every fax call starts as a voice call and upon fax tone detection additional capabilities are being negotiated(T.38 or G711). Can it be done in early media, before the call is even answered?

I don't claim to be an expert in all this, especially T.38, but if I understand correctly, in both cases the call needs to be answered first. I'm pretty sure that the sending fax machine won't start emitting the 1100Hz tone until the receiving end answers. Also, with T.38 doesn't the call have to come up and then T.38 gets negotiated? (I don't know, I have only read about it.)
-MC

Quote:


So, here the goal is to have a T.38 capable GW handling T.38 calls while SpanDSP handling T.30...


Any chance to do that with FS?



_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (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

Back to top
tculjaga at gmail.com
Guest





PostPosted: Thu Sep 17, 2009 5:30 pm    Post subject: [Freeswitch-users] fax detection Reply with quote

Hi Michael, thanks for your response.

i think it will be enough to check the call capability... we always know the call is fax. We just need to apply the correct protocol Razz


let's suppose you have 2 incoming calls:
  1. SDP containing G711, gsm, T.38 caps
  2. SDP containing G711, gsm caps

the caps will be known on within INVITE message and FS can act accordingly.
  • If there is no T.38 support within SDP, start fax application (SpanDSP).
  • If there is T.38 suport within the SDP, route the call to some predefined gateway meant for T.38 fax receiving.
In both cases, the fax should be received Razz.

So, any chance to route the call according to T.38 caps within SDP message?



Now, for sending faxes there is some challenge.... we still have 2 calls:

we start sending a fax inband (SpanDSP) as this is the only thing we know... and:
  • if we receive 200 OK with SDP containing G711, anyCaps => continue with InBand Fax
  • if we receive 200 OK with DSP containing anyCompressedCaps, T.38 => drop the call without sending ACK to 200 OK ... and move the fax to be sent into a different directory.
well, as i said, while receiving faxes will work 100%, sending is tricky... but it might work.

what do you guys think?

T.




On Thu, Sep 17, 2009 at 10:51 PM, Michael Collins <msc@freeswitch.org (msc@freeswitch.org)> wrote:
Quote:


On Tue, Sep 15, 2009 at 8:45 AM, Tihomir Culjaga <tculjaga@gmail.com (tculjaga@gmail.com)> wrote:
Quote:
Hi,

is there any way to route fax calls according to the call capability?

I mean .. if the fax call supports T.38 i'd like to route it to a T.38 capable gateway. All other fax calls (meaning inband) should be handled by FS/SpanDSP.
Of course, I know that every fax call starts as a voice call and upon fax tone detection additional capabilities are being negotiated(T.38 or G711). Can it be done in early media, before the call is even answered?


I don't claim to be an expert in all this, especially T.38, but if I understand correctly, in both cases the call needs to be answered first. I'm pretty sure that the sending fax machine won't start emitting the 1100Hz tone until the receiving end answers. Also, with T.38 doesn't the call have to come up and then T.38 gets negotiated? (I don't know, I have only read about it.)
-MC

Quote:


So, here the goal is to have a T.38 capable GW handling T.38 calls while SpanDSP handling T.30...


Any chance to do that with FS?




_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (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




_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (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

Back to top
mike at jerris.com
Guest





PostPosted: Wed Sep 23, 2009 3:06 am    Post subject: [Freeswitch-users] fax detection Reply with quote

You have access to the full sdp in channel vars, so you can condition on those with regex.

Mike


On Sep 17, 2009, at 6:25 PM, Tihomir Culjaga wrote:
Quote:
Hi Michael, thanks for your response.

i think it will be enough to check the call capability... we always know the call is fax. We just need to apply the correct protocol Razz


let's suppose you have 2 incoming calls:
  1. SDP containing G711, gsm, T.38 caps
  2. SDP containing G711, gsm caps

the caps will be known on within INVITE message and FS can act accordingly.
  • If there is no T.38 support within SDP, start fax application (SpanDSP).
  • If there is T.38 suport within the SDP, route the call to some predefined gateway meant for T.38 fax receiving.
In both cases, the fax should be received Razz.

So, any chance to route the call according to T.38 caps within SDP message?



Now, for sending faxes there is some challenge.... we still have 2 calls:

we start sending a fax inband (SpanDSP) as this is the only thing we know... and:
  • if we receive 200 OK with SDP containing G711, anyCaps => continue with InBand Fax
  • if we receive 200 OK with DSP containing anyCompressedCaps, T.38 => drop the call without sending ACK to 200 OK ... and move the fax to be sent into a different directory.
well, as i said, while receiving faxes will work 100%, sending is tricky... but it might work.

what do you guys think?

T.




On Thu, Sep 17, 2009 at 10:51 PM, Michael Collins <msc@freeswitch.org (msc@freeswitch.org)> wrote:
Quote:


On Tue, Sep 15, 2009 at 8:45 AM, Tihomir Culjaga <tculjaga@gmail.com (tculjaga@gmail.com)> wrote:
Quote:
Hi,

is there any way to route fax calls according to the call capability?

I mean .. if the fax call supports T.38 i'd like to route it to a T.38 capable gateway. All other fax calls (meaning inband) should be handled by FS/SpanDSP.
Of course, I know that every fax call starts as a voice call and upon fax tone detection additional capabilities are being negotiated(T.38 or G711). Can it be done in early media, before the call is even answered?


I don't claim to be an expert in all this, especially T.38, but if I understand correctly, in both cases the call needs to be answered first. I'm pretty sure that the sending fax machine won't start emitting the 1100Hz tone until the receiving end answers. Also, with T.38 doesn't the call have to come up and then T.38 gets negotiated? (I don't know, I have only read about it.)
-MC

Quote:


So, here the goal is to have a T.38 capable GW handling T.38 calls while SpanDSP handling T.30...


Any chance to do that with FS?




_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (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




_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (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



_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services