[Freeswitch-users] Early Media AMD

Michael Collins msc at freeswitch.org
Wed Sep 17 03:21:44 MSD 2014


On Tue, Sep 16, 2014 at 12:28 PM, Delifisek Tux <delifisek.tux at gmail.com>
wrote:

> Hello Thanks for answers.
>
> English was not my first language. I believe there where errors in my
> question. I'll try to explain my self, please have patience for my mistakes.
>
No worries!


>
> Also, when I start to dig deep, I found my VOIP knowladge was very
> shallow. Configuring asterisk from console looks great for me. However
> today I found I cannot debug meaningfully sip protocol, which is
> frusturates me.
>
Don't worry, SIP frustrates everyone. :)


>
> Anyway,
>
> In my scenario,
>
> There is no user on my setup. I had autodialer to call numbers. My
> provider has new voice mail box rule for unanswered, busy and unreached
> numbers, If I leave message it cost me a time and a very expensive service
> fee. This was increase my costs.
>
> So I setup a dial timeout. However, if too short phone answer ratio was
> drop significantly, If too long then I leave a message.
>
>
> So I want to check is there an early media voice. If there is a voice (not
> ringing) I want to hangup line. I cannot do this with asterisk. Even I try
> to hack it and code is so large for short time learning.
>
> The another problem is. We are use GSM gateways so %100 percent SIP was
> not available.
>
> From my point of view I have to develop a solution which can listen early
> media and if there is a voice. Hangup the line.
>
> Is this doable with base Freeswitch ?
>
Possibly. One technique would be to listen for ringing in early media, and
if you don't hear ringing then assume it's the message machine and hangup.
It's a long shot but you might be able to use the tone_detect app to
transfer the call leg to an extension that does your call processing. If
the tone_detect doesn't hear ringing then you could just hangup after a
certain amount of time. (Start here
<https://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_tone_detect>.)

If you really want to detect the message then you'd need mod_com_amd in
order to do this. If mod_com_amd works like the old mod_amd then you can do
detection in early media. It might be tricky and it won't be 100% but it
would probably work for many calls.

This is not an easy thing to do so be patient and try different methods.

-MC



> My Best Regards
>
> 2014-09-16 20:30 GMT+03:00 Michael Collins <msc at freeswitch.org>:
>
>> This is the proverbial auto dialing chicken-and-egg scenario. There's a
>> love-hate relationship with early media. Sometimes the early media is handy
>> and sometimes it's annoying. Figuring out which is which can be a challenge.
>>
>> Before you go down the path of AMD (which requires an investment of both
>> time and money) I'd assess the situation and find out if you can indeed
>> ignore all early media, or if you want to do the semi-magical trick of
>> monitoring early media and selectively ignoring or passing it. Start here:
>> https://wiki.freeswitch.org/wiki/Variable_monitor_early_media_ring
>>
>> If you think that all early media is bad except for ringing then that may
>> just do the trick. Just keep in mind that no solution that tries to examine
>> audio like this will ever be 100% accurate. Still if you can get yourself
>> to 90% or more accurate then you're doing well, especially given the price
>> tag of FreeSWITCH. ;)
>>
>> -MC
>>
>>
>> On Tue, Sep 16, 2014 at 3:24 AM, Stanislav Sinyagin <ssinyagin at gmail.com>
>> wrote:
>>
>>> if you use a simple bridge command with ignore_early_media=true, I think
>>> the caller will still hear the FreeSWITCH'es ringback instead of the GSM
>>> unavailability message. So, in this case, the caller would simply hang up
>>> after waiting for too long.
>>>
>>> You can also configure a group call with answer confirmation: the called
>>> party would have to press a digit before the call is connected with the
>>> caller.
>>>
>>> Also you can do some scripting and process the outbound call before you
>>> bridge it with the inbound call. Here I have an example in Perl:
>>> https://jira.freeswitch.org/browse/FS-6746
>>>
>>> Also currently I'm learning how to do that with ESL and Golang.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Tue, Sep 16, 2014 at 10:54 AM, Delifisek Tux <delifisek.tux at gmail.com
>>> > wrote:
>>>
>>>> Hello Everyone.
>>>>
>>>> Is there any way to detect early media Automatic Message Detection
>>>> before the answer in freeswitch.
>>>>
>>>> We had small asterisk setup for outgoing messages, GSM voice mails box
>>>> are troubles us.
>>>>
>>>> Providers sends voice messages as early media. So we need to detect
>>>> them before the answer and hangup the line.
>>>>
>>>> Before dig deep, we asking for is this possible with freeswitch ?
>>>>
>>>> Our Best Regards.
>>>>
>>>>
>>>> _________________________________________________________________________
>>>> Professional FreeSWITCH Consulting Services:
>>>> consulting at freeswitch.org
>>>> http://www.freeswitchsolutions.com
>>>>
>>>> Official FreeSWITCH Sites
>>>> http://www.freeswitch.org
>>>> http://confluence.freeswitch.org
>>>> http://www.cluecon.com
>>>>
>>>> 
>>>> 
>>>>
>>>> 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
>>>>
>>>
>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://confluence.freeswitch.org
>>> http://www.cluecon.com
>>>
>>> 
>>> 
>>>
>>> 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
>>>
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> 
>> 
>>
>> 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
>>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> 
> 
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140916/c012edc3/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list