I want to realise next scheme: 1. try call (bridge) to local extensions 2. if no one answer in 20s playback wav with attention to wait 3. bridge to mobile phone I dont understand - I must set <action application="set" data="hangup_after_bridge=false"/>? If I set this and leg b hangup (dont answer or normal clearing) playback will execute? How I can do 2&3 only on NO_ANSWER cause? -- С уважением, Кривушин Михаил Евгеньевич Системный администратор ЗАО "СОЮЗ Т" тел. +7 913 865 7 866 jid: mkrivushin@souzt.com icq: 218 744 127
I try this dialplan, dont work. What I missing? <extension name="admins_local"> <condition field="destination_number" expression="^admins|8031$"> <action application="set" data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER"/> <action application="set" data="call_timeout=10"/> <action application="set" data="hangup_after_bridge=false"/> <action application="bridge" data="sofia/default/1000%$${domain}"/> </condition> </extension> <extension name="admins_mobile"> <condition field="destination_number" expression="^admins|8031$"> <action application="answer"/> <action application="playback" data="/home/mkrivushin/fs/mobile.wav"/> <action application="bridge" data="sofia/public/982314123423@192.168.0.8"/> </condition> </extension> -- С уважением, Кривушин Михаил Евгеньевич Системный администратор ЗАО "СОЮЗ Т" тел. +7 913 865 7 866 jid: mkrivushin@souzt.com icq: 218 744 127
Give this a try. hangup_after_bridge is implied if you continue_on_fail. And you usually don't want to continue if the first call is answered and hungup properly. <extension name="admins_local"> <condition field="destination_number" expression="^admins|8031$"> <action application="set" data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER"/> <action application="set" data="call_timeout=10"/> <action application="bridge" data="sofia/default/1000%$$ {domain}"/> <action application="answer"/> <action application="playback" data="/home/mkrivushin/fs/ mobile.wav"/> <action application="bridge" data="sofia/public/982314123423@192.168.0.8 "/> </condition> </extension> /b On Jul 11, 2008, at 5:15 AM, Mihail Krivushin wrote:
I try this dialplan, dont work. What I missing?
В сообщении от Friday 11 July 2008 17:43:00 Brian West написал(а):
Give this a try. hangup_after_bridge is implied if you continue_on_fail. And you usually don't want to continue if the first call is answered and hungup properly.
Dont work in right way - after talking over local extension dont hangup and do playback and bridge to mobile. May be some command to hangup if "normal clearing"? Or wrong params to continue_on_fail? I dont think so. 2008-07-11 17:53:11 [NOTICE] sofia.c:2168 sofia_handle_sip_i_state() Hangup sofia/default/1000 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING] 2008-07-11 17:53:11 [NOTICE] switch_core_session.c:802 switch_core_session_thread() Session 505 (sofia/default/1000) Ended 2008-07-11 17:53:11 [NOTICE] switch_core_session.c:804 switch_core_session_thread() Close Channel sofia/default/1000 [CS_HANGUP] nta: timer I fired, terminate 200 response nta_incoming_timer: 0/0 resent, 0/0 tout, 1/1 term, 1/1 free 2008-07-11 17:53:14 [NOTICE] switch_channel.c:534 switch_channel_set_name() New Channel sofia/mira46_for_all/989132222222@192.168.0.8 [9002adb4-4f37-11dd-b495-3d3d3e62bec8] -- С уважением, Кривушин Михаил Евгеньевич Системный администратор ЗАО "СОЮЗ Т" тел. +7 913 865 7 866 jid: mkrivushin@souzt.com icq: 218 744 127
This piece work! Thank you, I understand how this works now. May be I must paste this example in wiki? From wiki I cant understand how I must use this continue on file. <extension name="admins"> <condition field="destination_number" expression="^admins|8031$"> <action application="set" data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER"/> <action application="set" data="call_timeout=10"/> <action application="set" data="hangup_after_bridge=true"/> <action application="bridge" data="sofia/192.168.0.198/1000%$${domain}"/> <action application="answer"/> <action application="playback" data="/home/mkrivushin/fs/mobile.wav"/> <action application="bridge" data="sofia/mira46_for_all/983234232342@192.168.0.8"/> </condition> </extension> -- С уважением, Кривушин Михаил Евгеньевич Системный администратор ЗАО "СОЮЗ Т" тел. +7 913 865 7 866 jid: mkrivushin@souzt.com icq: 218 744 127
http://wiki.freeswitch.org/wiki/Channel_Variables#continue_on_fail If set to true will continue on any and all failures. You can provide it a list of hangup causes which our here http://wiki.freeswitch.org/wiki/Hangup_causes Then it will only continue if one of those causes is encountered. You'll notice I used that in the Local_Extension example in the default configuration to go to voicemail when the phone wasn't answer and a few others. /b On Jul 11, 2008, at 6:11 AM, Mihail Krivushin wrote:
From wiki I cant understand how I must use this continue on file.
participants (2)
-
Brian West
-
Mihail Krivushin