<div dir="ltr"><div><div>Dear Michael,<br><br></div>I thank you for the support.<br><br></div><div>I just curious to is it doable with Freeswitch, other way I have to start to digging Asterisk module development documents.<br><br>It seems this way was more quick than other.<br><br></div><div>My Humble Regards.<br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-09-17 2:21 GMT+03:00 Michael Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Tue, Sep 16, 2014 at 12:28 PM, Delifisek Tux <span dir="ltr">&lt;<a href="mailto:delifisek.tux@gmail.com" target="_blank">delifisek.tux@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello Thanks for answers.<div><br></div><div>English was not my first language. I believe there where errors in my question. I&#39;ll try to explain my self, please have patience for my mistakes.</div></div></blockquote></span><div>No worries!<br> <br></div><span class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>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.</div></div></blockquote></span><div>Don&#39;t worry, SIP frustrates everyone. :)<br> <br></div><span class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>Anyway,</div><div><br></div><div>In my scenario,</div><div><br></div><div>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. </div><div><br></div><div>So I setup a dial timeout. However, if too short phone answer ratio was drop significantly, If too long then I leave a message.</div><div><br></div><div><br></div><div>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.</div><div><br></div><div>The another problem is. We are use GSM gateways so %100 percent SIP was not available. </div><div><br></div><div>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.</div><div><br></div><div>Is this doable with base Freeswitch ?</div></div></blockquote></span><div>Possibly. One technique would be to listen for ringing in early media, and if you don&#39;t hear ringing then assume it&#39;s the message machine and hangup. It&#39;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&#39;t hear ringing then you could just hangup after a certain amount of time. (Start <a href="https://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_tone_detect" target="_blank">here</a>.)<br></div><div><br>If you really want to detect the message then you&#39;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&#39;t be 100% but it would probably work for many calls.<br><br></div><div>This is not an easy thing to do so be patient and try different methods.<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888"><div>-MC<br></div></font></span><div><div class="h5"><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>My Best Regards</div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-09-16 20:30 GMT+03:00 Michael Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>This is the proverbial auto dialing chicken-and-egg scenario. There&#39;s a love-hate relationship with early media. Sometimes the early media is handy and sometimes it&#39;s annoying. Figuring out which is which can be a challenge.<br><br></div>Before you go down the path of AMD (which requires an investment of both time and money) I&#39;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:<br><a href="https://wiki.freeswitch.org/wiki/Variable_monitor_early_media_ring" target="_blank">https://wiki.freeswitch.org/wiki/Variable_monitor_early_media_ring</a><br><br></div>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&#39;re doing well, especially given the price tag of FreeSWITCH. ;) <br><span><font color="#888888"><br></font></span></div><span><font color="#888888">-MC<br><br></font></span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 16, 2014 at 3:24 AM, Stanislav Sinyagin <span dir="ltr">&lt;<a href="mailto:ssinyagin@gmail.com" target="_blank">ssinyagin@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>if you use a simple bridge command with ignore_early_media=true, I think the caller will still hear the FreeSWITCH&#39;es ringback instead of the GSM unavailability message. So, in this case, the caller would simply hang up after waiting for too long.<br><br></div>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.<br><br></div>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:<br><a href="https://jira.freeswitch.org/browse/FS-6746" target="_blank">https://jira.freeswitch.org/browse/FS-6746</a><br><br>Also currently I&#39;m learning how to do that with ESL and Golang.<br><br><br><br><br><br><div><br><div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Tue, Sep 16, 2014 at 10:54 AM, Delifisek Tux <span dir="ltr">&lt;<a href="mailto:delifisek.tux@gmail.com" target="_blank">delifisek.tux@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hello Everyone.<div><br></div><div>Is there any way to detect early media Automatic Message Detection before the answer in freeswitch.</div><div><br></div><div>We had small asterisk setup for outgoing messages, GSM voice mails box are troubles us. </div><div><br></div><div>Providers sends voice messages as early media. So we need to detect them before the answer and hangup the line.</div><div><br></div><div>Before dig deep, we asking for is this possible with freeswitch ?</div><div><br></div><div>Our Best Regards.</div></div>
<br></div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div></div></div><br></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>