Re: [Freeswitch-users] mod_fifo and early media
Hi, thanks for your answer. I'm not a developper, but will look at that with someone in my team. What I'm currently planning to do (if possible), and submit as a patch for mod_fifo : Add a parameter to make mod_fifo manage two modes : 1. Normal mode, where the A-Leg gets answered (200 OK). 2. "Early media" mode, where the A-Leg is pre-answered, and kept in early media mode, until the B-Leg answers. The A-leg is then (automatically) answered when the B-Leg answers. Does it make sense ? Dominique Jeannerod Interact-iv.com Infrastructure Manager 2016-11-22 18:52 GMT+01:00 Sergey Safarov <s.safarov@gmail.com>:
You can try patch mod_fifo source code and comment "switch_channel_answer(channel);" strings. Then you can manage signal is passed to a-leg from dialplan.
вт, 22 нояб. 2016 г. в 13:24, Dominique Jeannerod <dominique.jeannerod@interact-iv.com>:
Hello,
i'm working on a project where I need to manage a call waiting queue, in early media mode, to have a free waiting time, and start billing only after the call is really answered.
The general call flow is : 1- incoming call to a service number 2- early media answer (pre-answer) to manage voice messages 3- the call is put in a waiting queue, and the caller ears a message (MOH), still in early media 4- the queue is associated to a unique destination number, and then one an only call at a time is picked-up from the queue and bridged to the destination. 5- When the call is established (200 OK), the incoming call is also answered (200 OK), which starts the billing.
Question : this looks like a basic call queue handling, and mod_fifo could be a perfect fit for that ... except that mod_fifo answers the call with a 200 OK
Is it possible to manage early media with mod_fifo ?
Does someone have a best practice, experience, or advice to share on this matter ?
Thanks with anticipation
D. Jeannerod _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Both cases may be implemented. Also you must know - many provider restrict time while channel state is early media. In my case some operator's disconnect calls after 60 of early media, other after 120 sec. Are is this may take place in you case? пт, 25 нояб. 2016, 19:53 Dominique Jeannerod < dominique.jeannerod@interact-iv.com>:
Hi,
thanks for your answer. I'm not a developper, but will look at that with someone in my team.
What I'm currently planning to do (if possible), and submit as a patch for mod_fifo : Add a parameter to make mod_fifo manage two modes : 1. Normal mode, where the A-Leg gets answered (200 OK). 2. "Early media" mode, where the A-Leg is pre-answered, and kept in early media mode, until the B-Leg answers. The A-leg is then (automatically) answered when the B-Leg answers.
Does it make sense ?
Dominique Jeannerod Interact-iv.com Infrastructure Manager
2016-11-22 18:52 GMT+01:00 Sergey Safarov <s.safarov@gmail.com>:
You can try patch mod_fifo source code and comment "switch_channel_answer(channel);" strings. Then you can manage signal is passed to a-leg from dialplan.
вт, 22 нояб. 2016 г. в 13:24, Dominique Jeannerod <dominique.jeannerod@interact-iv.com>:
Hello,
i'm working on a project where I need to manage a call waiting queue, in early media mode, to have a free waiting time, and start billing only
after
the call is really answered.
The general call flow is : 1- incoming call to a service number 2- early media answer (pre-answer) to manage voice messages 3- the call is put in a waiting queue, and the caller ears a message (MOH), still in early media 4- the queue is associated to a unique destination number, and then one an only call at a time is picked-up from the queue and bridged to the destination. 5- When the call is established (200 OK), the incoming call is also answered (200 OK), which starts the billing.
Question : this looks like a basic call queue handling, and mod_fifo could be a perfect fit for that ... except that mod_fifo answers the call with a 200 OK
Is it possible to manage early media with mod_fifo ?
Does someone have a best practice, experience, or advice to share on this matter ?
Thanks with anticipation
D. Jeannerod
Professional FreeSWITCH Consulting Services: consulting@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@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@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Yes, we are building a service to manage a early media phase for call price announcement, which is a legal requirement in Germany, and has to be free. The billing starts when the call is really answered. This "answer waiting" phase is limited to 120s, and I will manage a timer to kill the call if necessary, after 120s.
participants (2)
-
Dominique Jeannerod
-
Sergey Safarov