Why ringback is not generated?
In dialplan I set ringback variable <extension name="setRingback" continue="true"> <condition> <action application="set" data="ringback=${us-ring}"/> </condition> </extension> And diaplan terminate call on extension <extension name="agent_login"> <condition field="${destination_number}" expression="^agent_login$"> <action application="set" data="ignore=${callcenter_config(agent set status ${caller_id_number}@${sip_to_host} 'Available')}" inline="true"/> <action application="ring_ready"/> <action application="pre_answer"/> <action application="sleep" data="2500"/> <action application="answer"/> <action application="sleep" data="700"/> </condition> </extension> But ringback is not generaded. Why is it posible? Sergey
Wireshark help locate root issue FS send 183 message but not start sending RTP media. FS start send media after sending 200 message. It is bug? On Thu, Jul 2, 2015 at 3:07 PM, Sergey Safarov <s.safarov@gmail.com> wrote:
In dialplan I set ringback variable
<extension name="setRingback" continue="true"> <condition> <action application="set" data="ringback=${us-ring}"/> </condition> </extension> And diaplan terminate call on extension
<extension name="agent_login"> <condition field="${destination_number}" expression="^agent_login$"> <action application="set" data="ignore=${callcenter_config(agent set status ${caller_id_number}@${sip_to_host} 'Available')}" inline="true"/> <action application="ring_ready"/> <action application="pre_answer"/> <action application="sleep" data="2500"/> <action application="answer"/> <action application="sleep" data="700"/> </condition> </extension>
But ringback is not generaded. Why is it posible?
Sergey
FreeSWITCH will send media back to the caller once it received a 18X, if you want to send immediately use instant_ringback=true https://freeswitch.org/confluence/display/FREESWITCH/Channel+Variables#Chann... On Thu, Jul 2, 2015 at 9:15 AM, Sergey Safarov <s.safarov@gmail.com> wrote:
Wireshark help locate root issue FS send 183 message but not start sending RTP media. FS start send media after sending 200 message.
It is bug?
On Thu, Jul 2, 2015 at 3:07 PM, Sergey Safarov <s.safarov@gmail.com> wrote:
In dialplan I set ringback variable
<extension name="setRingback" continue="true"> <condition> <action application="set" data="ringback=${us-ring}"/> </condition> </extension> And diaplan terminate call on extension
<extension name="agent_login"> <condition field="${destination_number}" expression="^agent_login$"> <action application="set" data="ignore=${callcenter_config(agent set status ${caller_id_number}@${sip_to_host} 'Available')}" inline="true"/> <action application="ring_ready"/> <action application="pre_answer"/> <action application="sleep" data="2500"/> <action application="answer"/> <action application="sleep" data="700"/> </condition> </extension>
But ringback is not generaded. Why is it posible?
Sergey
_________________________________________________________________________ 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
-- Ítalo Rossi
thank you Italo, Ken for quick response I set "instant_ringback=true" but it is not help. Usage schema as described below endpointA -> FS1 -> FS2 FS2 must generate ringback, play "you a logged in" wav file and hangup FS1 - user endpoint registrator, managed by kazoo FS2 - host implemening callcenter queries. On Thu, Jul 2, 2015 at 5:08 PM, Ítalo Rossi <italorossib@gmail.com> wrote:
FreeSWITCH will send media back to the caller once it received a 18X, if you want to send immediately use instant_ringback=true
https://freeswitch.org/confluence/display/FREESWITCH/Channel+Variables#Chann...
On Thu, Jul 2, 2015 at 9:15 AM, Sergey Safarov <s.safarov@gmail.com> wrote:
Wireshark help locate root issue FS send 183 message but not start sending RTP media. FS start send media after sending 200 message.
It is bug?
On Thu, Jul 2, 2015 at 3:07 PM, Sergey Safarov <s.safarov@gmail.com> wrote:
In dialplan I set ringback variable
<extension name="setRingback" continue="true"> <condition> <action application="set" data="ringback=${us-ring}"/> </condition> </extension> And diaplan terminate call on extension
<extension name="agent_login"> <condition field="${destination_number}" expression="^agent_login$"> <action application="set" data="ignore=${callcenter_config(agent set status ${caller_id_number}@${sip_to_host} 'Available')}" inline="true"/> <action application="ring_ready"/> <action application="pre_answer"/> <action application="sleep" data="2500"/> <action application="answer"/> <action application="sleep" data="700"/> </condition> </extension>
But ringback is not generaded. Why is it posible?
Sergey
_________________________________________________________________________ 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
-- Ítalo Rossi
_________________________________________________________________________ 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
On FS2 did you pre-answer the call? That will put FS into the state to start generating early media... And you¹ll probably have to sleep or something to delay the exchange long enough to actually get ringing... Just playing a file and firing a script to check a pin or something and firing a DB query happens so fast that 99.99999% of the time its worthless to send ringing On 7/2/15, 10:09 AM, "Sergey Safarov" <s.safarov@gmail.com> wrote:
thank you Italo, Ken for quick response I set "instant_ringback=true" but it is not help. Usage schema as described below endpointA -> FS1 -> FS2
FS2 must generate ringback, play "you a logged in" wav file and hangup
FS1 - user endpoint registrator, managed by kazoo FS2 - host implemening callcenter queries.
On Thu, Jul 2, 2015 at 5:08 PM, Ítalo Rossi <italorossib@gmail.com> wrote:
FreeSWITCH will send media back to the caller once it received a 18X, if you want to send immediately use instant_ringback=true
https://freeswitch.org/confluence/display/FREESWITCH/Channel+Variables#Chann... lVariables-instant_ringback
On Thu, Jul 2, 2015 at 9:15 AM, Sergey Safarov <s.safarov@gmail.com> wrote:
Wireshark help locate root issue FS send 183 message but not start sending RTP media. FS start send media after sending 200 message.
It is bug?
On Thu, Jul 2, 2015 at 3:07 PM, Sergey Safarov <s.safarov@gmail.com> wrote:
In dialplan I set ringback variable
<extension name="setRingback" continue="true"> <condition> <action application="set" data="ringback=${us-ring}"/> </condition> </extension> And diaplan terminate call on extension
<extension name="agent_login"> <condition field="${destination_number}" expression="^agent_login$"> <action application="set" data="ignore=${callcenter_config(agent set status ${caller_id_number}@${sip_to_host} 'Available')}" inline="true"/> <action application="ring_ready"/> <action application="pre_answer"/> <action application="sleep" data="2500"/> <action application="answer"/> <action application="sleep" data="700"/> </condition> </extension>
But ringback is not generaded. Why is it posible?
Sergey
_________________________________________________________________________ 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
-- Ken http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org irc.freenode.net #freeswitch Twitter: @FreeSWITCH
Is this a 2 leg called where Endpoint A -> FreeSWITCH -> Endpoint B and Endpoint A is calling Endpoint B, if EndPoint B sends FreeSWITCH a 183 with SDP indicating that it is providing Early Media, then does not actually send Early Media, the problem is a problem with Endpoint B as in this case FreeSWITCH Depends on the endpoint to do what it says its going to do On 7/2/15, 7:15 AM, "Sergey Safarov" <s.safarov@gmail.com> wrote:
Wireshark help locate root issue FS send 183 message but not start sending RTP media. FS start send media after sending 200 message.
It is bug?
On Thu, Jul 2, 2015 at 3:07 PM, Sergey Safarov <s.safarov@gmail.com> wrote:
In dialplan I set ringback variable
<extension name="setRingback" continue="true"> <condition> <action application="set" data="ringback=${us-ring}"/> </condition> </extension> And diaplan terminate call on extension
<extension name="agent_login"> <condition field="${destination_number}" expression="^agent_login$"> <action application="set" data="ignore=${callcenter_config(agent set status ${caller_id_number}@${sip_to_host} 'Available')}" inline="true"/> <action application="ring_ready"/> <action application="pre_answer"/> <action application="sleep" data="2500"/> <action application="answer"/> <action application="sleep" data="700"/> </condition> </extension>
But ringback is not generaded. Why is it posible?
Sergey
_________________________________________________________________________ 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
-- Ken http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org irc.freenode.net #freeswitch Twitter: @FreeSWITCH
I think it's working as designed, pre_answer doesn't honour the ringback variable and doesn't send anything automatically, you have to send it yourself. In your case you could probably use something like this on FS2: <action application="pre_answer"/> <action application="playback" data="tone_stream://${us-ring};loops=2"/> <action application="answer"/> <action application="playback" data="you_are_logged_in.wav"/> <action application="hangup"/> also you don't need "ring_ready", it only sends 180 without SDP. On 2 July 2015 at 14:15, Sergey Safarov <s.safarov@gmail.com> wrote:
Wireshark help locate root issue FS send 183 message but not start sending RTP media. FS start send media after sending 200 message.
It is bug?
On Thu, Jul 2, 2015 at 3:07 PM, Sergey Safarov <s.safarov@gmail.com> wrote:
In dialplan I set ringback variable
<extension name="setRingback" continue="true"> <condition> <action application="set" data="ringback=${us-ring}"/> </condition> </extension> And diaplan terminate call on extension
<extension name="agent_login"> <condition field="${destination_number}" expression="^agent_login$"> <action application="set" data="ignore=${callcenter_config(agent set status ${caller_id_number}@${sip_to_host} 'Available')}" inline="true"/> <action application="ring_ready"/> <action application="pre_answer"/> <action application="sleep" data="2500"/> <action application="answer"/> <action application="sleep" data="700"/> </condition> </extension>
But ringback is not generaded. Why is it posible?
Sergey
_________________________________________________________________________ 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
-- Dušan Dragić
Correct, The last response is exactly right. The ringback var is only relevant to the bridge app. pre_answer is just an indication. On Thu, Jul 2, 2015 at 12:00 PM, Dušan Dragić <dragic.dusan@gmail.com> wrote:
I think it's working as designed, pre_answer doesn't honour the ringback variable and doesn't send anything automatically, you have to send it yourself.
In your case you could probably use something like this on FS2: <action application="pre_answer"/> <action application="playback" data="tone_stream://${us-ring};loops=2"/> <action application="answer"/> <action application="playback" data="you_are_logged_in.wav"/> <action application="hangup"/>
also you don't need "ring_ready", it only sends 180 without SDP.
On 2 July 2015 at 14:15, Sergey Safarov <s.safarov@gmail.com> wrote:
Wireshark help locate root issue FS send 183 message but not start sending RTP media. FS start send media after sending 200 message.
It is bug?
On Thu, Jul 2, 2015 at 3:07 PM, Sergey Safarov <s.safarov@gmail.com> wrote:
In dialplan I set ringback variable
<extension name="setRingback" continue="true"> <condition> <action application="set" data="ringback=${us-ring}"/> </condition> </extension> And diaplan terminate call on extension
<extension name="agent_login"> <condition field="${destination_number}" expression="^agent_login$"> <action application="set" data="ignore=${callcenter_config(agent set status ${caller_id_number}@${sip_to_host} 'Available')}" inline="true"/> <action application="ring_ready"/> <action application="pre_answer"/> <action application="sleep" data="2500"/> <action application="answer"/> <action application="sleep" data="700"/> </condition> </extension>
But ringback is not generaded. Why is it posible?
Sergey
_________________________________________________________________________ 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
-- Dušan Dragić
_________________________________________________________________________ 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
-- Anthony Minessale II ♬ @anthmfs ♬ @FreeSWITCH ♬ ☞ http://freeswitch.org/ ☞ http://cluecon.com/ ☞ http://twitter.com/FreeSWITCH ☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+ <http://freeswitch.org/g+>* ClueCon Weekly Development Call ☎ sip:888@conference.freeswitch.org ☎ +19193869900 https://www.youtube.com/watch?v=9XXgW34t40s https://www.youtube.com/watch?v=NLaDpGQuZDA
Thank you Dušan, Anthony Playback of tone_stream is help in my case. On Thu, Jul 2, 2015 at 8:00 PM, Dušan Dragić <dragic.dusan@gmail.com> wrote:
I think it's working as designed, pre_answer doesn't honour the ringback variable and doesn't send anything automatically, you have to send it yourself.
In your case you could probably use something like this on FS2: <action application="pre_answer"/> <action application="playback" data="tone_stream://${us-ring};loops=2"/> <action application="answer"/> <action application="playback" data="you_are_logged_in.wav"/> <action application="hangup"/>
also you don't need "ring_ready", it only sends 180 without SDP.
On 2 July 2015 at 14:15, Sergey Safarov <s.safarov@gmail.com> wrote:
Wireshark help locate root issue FS send 183 message but not start sending RTP media. FS start send media after sending 200 message.
It is bug?
On Thu, Jul 2, 2015 at 3:07 PM, Sergey Safarov <s.safarov@gmail.com> wrote:
In dialplan I set ringback variable
<extension name="setRingback" continue="true"> <condition> <action application="set" data="ringback=${us-ring}"/> </condition> </extension> And diaplan terminate call on extension
<extension name="agent_login"> <condition field="${destination_number}" expression="^agent_login$"> <action application="set" data="ignore=${callcenter_config(agent set status ${caller_id_number}@${sip_to_host} 'Available')}" inline="true"/> <action application="ring_ready"/> <action application="pre_answer"/> <action application="sleep" data="2500"/> <action application="answer"/> <action application="sleep" data="700"/> </condition> </extension>
But ringback is not generaded. Why is it posible?
Sergey
_________________________________________________________________________ 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
-- Dušan Dragić
_________________________________________________________________________ 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
participants (5)
-
Anthony Minessale
-
Dušan Dragić
-
Ken Rice
-
Sergey Safarov
-
Ítalo Rossi