<p dir="ltr">Both cases may be implemented. <br>
Also you must know - many provider restrict time while channel state is early media.<br>
In my case some operator's disconnect calls after 60 of early media, other after 120 sec.</p>
<p dir="ltr">Are is this may take place in you case?</p>
<br><div class="gmail_quote"><div dir="ltr">пт, 25 нояб. 2016, 19:53 Dominique Jeannerod <<a href="mailto:dominique.jeannerod@interact-iv.com">dominique.jeannerod@interact-iv.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br class="gmail_msg">
<br class="gmail_msg">
thanks for your answer.<br class="gmail_msg">
I'm not a developper, but will look at that with someone in my team.<br class="gmail_msg">
<br class="gmail_msg">
What I'm currently planning to do (if possible), and submit as a patch<br class="gmail_msg">
for mod_fifo :<br class="gmail_msg">
Add a parameter to make mod_fifo manage two modes :<br class="gmail_msg">
1. Normal mode, where the A-Leg gets answered (200 OK).<br class="gmail_msg">
2. "Early media" mode, where the A-Leg is pre-answered, and kept in<br class="gmail_msg">
early media mode, until the B-Leg answers. The A-leg is then<br class="gmail_msg">
(automatically) answered when the B-Leg answers.<br class="gmail_msg">
<br class="gmail_msg">
Does it make sense ?<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
Dominique Jeannerod<br class="gmail_msg">
Interact-iv.com<br class="gmail_msg">
Infrastructure Manager<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
2016-11-22 18:52 GMT+01:00 Sergey Safarov <<a href="mailto:s.safarov@gmail.com" class="gmail_msg" target="_blank">s.safarov@gmail.com</a>>:<br class="gmail_msg">
> You can try patch mod_fifo source code and comment<br class="gmail_msg">
> "switch_channel_answer(channel);" strings.<br class="gmail_msg">
> Then you can manage signal is passed to a-leg from dialplan.<br class="gmail_msg">
><br class="gmail_msg">
> вт, 22 нояб. 2016 г. в 13:24, Dominique Jeannerod<br class="gmail_msg">
> <<a href="mailto:dominique.jeannerod@interact-iv.com" class="gmail_msg" target="_blank">dominique.jeannerod@interact-iv.com</a>>:<br class="gmail_msg">
>><br class="gmail_msg">
>> Hello,<br class="gmail_msg">
>><br class="gmail_msg">
>> i'm working on a project where I need to manage a call waiting queue, in<br class="gmail_msg">
>> early media mode, to have a free waiting time, and start billing only after<br class="gmail_msg">
>> the call is really answered.<br class="gmail_msg">
>><br class="gmail_msg">
>> The general call flow is :<br class="gmail_msg">
>> 1- incoming call to a service number<br class="gmail_msg">
>> 2- early media answer (pre-answer) to manage voice messages<br class="gmail_msg">
>> 3- the call is put in a waiting queue, and the caller ears a message<br class="gmail_msg">
>> (MOH), still in early media<br class="gmail_msg">
>> 4- the queue is associated to a unique destination number, and then one an<br class="gmail_msg">
>> only call at a time is picked-up from the queue and bridged to the<br class="gmail_msg">
>> destination.<br class="gmail_msg">
>> 5- When the call is established (200 OK), the incoming call is also<br class="gmail_msg">
>> answered (200 OK), which starts the billing.<br class="gmail_msg">
>><br class="gmail_msg">
>><br class="gmail_msg">
>> Question : this looks like a basic call queue handling, and mod_fifo could<br class="gmail_msg">
>> be a perfect fit for that ... except that mod_fifo answers the call with a<br class="gmail_msg">
>> 200 OK<br class="gmail_msg">
>><br class="gmail_msg">
>> Is it possible to manage early media with mod_fifo ?<br class="gmail_msg">
>><br class="gmail_msg">
>> Does someone have a best practice, experience, or advice to share on this<br class="gmail_msg">
>> matter ?<br class="gmail_msg">
>><br class="gmail_msg">
>><br class="gmail_msg">
>> Thanks with anticipation<br class="gmail_msg">
>><br class="gmail_msg">
>> D. Jeannerod<br class="gmail_msg">
>> _________________________________________________________________________<br class="gmail_msg">
>> Professional FreeSWITCH Consulting Services:<br class="gmail_msg">
>> <a href="mailto:consulting@freeswitch.org" class="gmail_msg" target="_blank">consulting@freeswitch.org</a><br class="gmail_msg">
>> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitchsolutions.com</a><br class="gmail_msg">
>><br class="gmail_msg">
>> Official FreeSWITCH Sites<br class="gmail_msg">
>> <a href="http://www.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitch.org</a><br class="gmail_msg">
>> <a href="http://confluence.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://confluence.freeswitch.org</a><br class="gmail_msg">
>> <a href="http://www.cluecon.com" rel="noreferrer" class="gmail_msg" target="_blank">http://www.cluecon.com</a><br class="gmail_msg">
>><br class="gmail_msg">
>> FreeSWITCH-users mailing list<br class="gmail_msg">
>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" class="gmail_msg" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br class="gmail_msg">
>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class="gmail_msg">
>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="gmail_msg">
>> <a href="http://www.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitch.org</a><br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
> _________________________________________________________________________<br class="gmail_msg">
> Professional FreeSWITCH Consulting Services:<br class="gmail_msg">
> <a href="mailto:consulting@freeswitch.org" class="gmail_msg" target="_blank">consulting@freeswitch.org</a><br class="gmail_msg">
> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitchsolutions.com</a><br class="gmail_msg">
><br class="gmail_msg">
> Official FreeSWITCH Sites<br class="gmail_msg">
> <a href="http://www.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitch.org</a><br class="gmail_msg">
> <a href="http://confluence.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://confluence.freeswitch.org</a><br class="gmail_msg">
> <a href="http://www.cluecon.com" rel="noreferrer" class="gmail_msg" target="_blank">http://www.cluecon.com</a><br class="gmail_msg">
><br class="gmail_msg">
> FreeSWITCH-users mailing list<br class="gmail_msg">
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" class="gmail_msg" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br class="gmail_msg">
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class="gmail_msg">
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="gmail_msg">
> <a href="http://www.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitch.org</a><br class="gmail_msg">
<br class="gmail_msg">
_________________________________________________________________________<br class="gmail_msg">
Professional FreeSWITCH Consulting Services:<br class="gmail_msg">
<a href="mailto:consulting@freeswitch.org" class="gmail_msg" target="_blank">consulting@freeswitch.org</a><br class="gmail_msg">
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitchsolutions.com</a><br class="gmail_msg">
<br class="gmail_msg">
Official FreeSWITCH Sites<br class="gmail_msg">
<a href="http://www.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitch.org</a><br class="gmail_msg">
<a href="http://confluence.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://confluence.freeswitch.org</a><br class="gmail_msg">
<a href="http://www.cluecon.com" rel="noreferrer" class="gmail_msg" target="_blank">http://www.cluecon.com</a><br class="gmail_msg">
<br class="gmail_msg">
FreeSWITCH-users mailing list<br class="gmail_msg">
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" class="gmail_msg" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br class="gmail_msg">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class="gmail_msg">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="gmail_msg">
<a href="http://www.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitch.org</a></blockquote></div>