you need fail_on_single_reject=true inside the {} as well<br><br><br><div class="gmail_quote">On Fri, Mar 12, 2010 at 11:30 AM, Max Ivanov <span dir="ltr"><<a href="mailto:ivanov.maxim@gmail.com">ivanov.maxim@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">2010/2/26 Kristian Kielhofner <<a href="mailto:kristian.kielhofner@gmail.com">kristian.kielhofner@gmail.com</a>>:<br>
<div class="im">> <a href="http://wiki.freeswitch.org/wiki/Channel_Variables#failure_causes" target="_blank">http://wiki.freeswitch.org/wiki/Channel_Variables#failure_causes</a><br>
<br>
</div>Doesn't help =( After getting first USER_BUSY it still makes call via<br>
second part of dialstring.<br>
<br>
originate {failure_causes=USER_BUSY}sofia/gateway/panas111/223|sofia/gateway/panas112/223<br>
&playback(local_stream://moh)<br>
<br>
Relevant log part is following:<br>
<br>
2010-03-12 20:26:00.490396 [DEBUG] switch_ivr_originate.c:1176<br>
variable string 0 = [failure_causes=USER_BUSY]<br>
2010-03-12 20:26:00.494260 [NOTICE] switch_channel.c:613 New Channel<br>
sofia/internal/223 [35e8382d-e3fd-4190-b625-47f61ae6be16]<br>
2010-03-12 20:26:00.494260 [DEBUG] mod_sofia.c:3020<br>
(sofia/internal/223) State Change CS_NEW -> CS_INIT<br>
freeswitch@internal> 2010-03-12 20:26:00.494260 [DEBUG]<br>
switch_core_session.c:1000 Send signal sofia/internal/223 [BREAK]<br>
2010-03-12 20:26:00.494260 [DEBUG] switch_core_state_machine.c:306<br>
(sofia/internal/223) Running State Change CS_INIT<br>
2010-03-12 20:26:00.494260 [DEBUG] switch_core_state_machine.c:330<br>
(sofia/internal/223) State INIT<br>
2010-03-12 20:26:00.494260 [DEBUG] mod_sofia.c:83 sofia/internal/223<br>
SOFIA INIT<br>
2010-03-12 20:26:00.494260 [DEBUG] mod_sofia.c:111<br>
(sofia/internal/223) State Change CS_INIT -> CS_ROUTING<br>
2010-03-12 20:26:00.494260 [DEBUG] switch_core_session.c:1000 Send<br>
signal sofia/internal/223 [BREAK]<br>
2010-03-12 20:26:00.494260 [DEBUG] switch_core_state_machine.c:330<br>
(sofia/internal/223) State INIT going to sleep<br>
2010-03-12 20:26:00.494260 [DEBUG] switch_core_state_machine.c:306<br>
(sofia/internal/223) Running State Change CS_ROUTING<br>
2010-03-12 20:26:00.494260 [DEBUG] switch_core_state_machine.c:333<br>
(sofia/internal/223) State ROUTING<br>
2010-03-12 20:26:00.494260 [DEBUG] mod_sofia.c:130 sofia/internal/223<br>
SOFIA ROUTING<br>
2010-03-12 20:26:00.494260 [DEBUG] switch_ivr_originate.c:66<br>
(sofia/internal/223) State Change CS_ROUTING -> CS_CONSUME_MEDIA<br>
2010-03-12 20:26:00.494260 [DEBUG] switch_core_session.c:1000 Send<br>
signal sofia/internal/223 [BREAK]<br>
2010-03-12 20:26:00.494260 [DEBUG] switch_core_state_machine.c:333<br>
(sofia/internal/223) State ROUTING going to sleep<br>
2010-03-12 20:26:00.494260 [DEBUG] switch_core_state_machine.c:306<br>
(sofia/internal/223) Running State Change CS_CONSUME_MEDIA<br>
2010-03-12 20:26:00.494260 [DEBUG] switch_core_state_machine.c:352<br>
(sofia/internal/223) State CONSUME_MEDIA<br>
2010-03-12 20:26:00.494260 [DEBUG] switch_core_state_machine.c:352<br>
(sofia/internal/223) State CONSUME_MEDIA going to sleep<br>
2010-03-12 20:26:00.494260 [DEBUG] sofia.c:3583 Channel<br>
sofia/internal/223 entering state [calling][0]<br>
2010-03-12 20:26:00.517975 [DEBUG] sofia.c:3583 Channel<br>
sofia/internal/223 entering state [calling][0]<br>
2010-03-12 20:26:00.550450 [DEBUG] sofia.c:3583 Channel<br>
sofia/internal/223 entering state [terminated][486]<br>
2010-03-12 20:26:00.550450 [NOTICE] sofia.c:4149 Hangup<br>
sofia/internal/223 [CS_CONSUME_MEDIA] [USER_BUSY]<br>
2010-03-12 20:26:00.550450 [DEBUG] switch_channel.c:1896 Send signal<br>
sofia/internal/223 [KILL]<br>
2010-03-12 20:26:00.550450 [DEBUG] switch_core_session.c:1000 Send<br>
signal sofia/internal/223 [BREAK]<br>
2010-03-12 20:26:00.550450 [DEBUG] switch_core_state_machine.c:451<br>
thread mismatch skipping state handler.<br>
2010-03-12 20:26:00.550450 [DEBUG] switch_core_state_machine.c:306<br>
(sofia/internal/223) Running State Change CS_HANGUP<br>
2010-03-12 20:26:00.550450 [DEBUG] switch_core_state_machine.c:478<br>
(sofia/internal/223) State HANGUP<br>
2010-03-12 20:26:00.550450 [DEBUG] mod_sofia.c:318 sofia/internal/223<br>
Overriding SIP cause 486 with 486 from the other leg<br>
2010-03-12 20:26:00.550450 [DEBUG] mod_sofia.c:350 Channel<br>
sofia/internal/223 hanging up, cause: USER_BUSY<br>
2010-03-12 20:26:00.550450 [DEBUG] switch_core_state_machine.c:46<br>
sofia/internal/223 Standard HANGUP, cause: USER_BUSY<br>
2010-03-12 20:26:00.550450 [DEBUG] switch_core_state_machine.c:478<br>
(sofia/internal/223) State HANGUP going to sleep<br>
2010-03-12 20:26:00.550450 [DEBUG] switch_core_state_machine.c:325<br>
(sofia/internal/223) State Change CS_HANGUP -> CS_REPORTING<br>
2010-03-12 20:26:00.550450 [DEBUG] switch_core_session.c:1000 Send<br>
signal sofia/internal/223 [BREAK]<br>
2010-03-12 20:26:00.550450 [DEBUG] switch_core_state_machine.c:306<br>
(sofia/internal/223) Running State Change CS_REPORTING<br>
2010-03-12 20:26:00.550450 [DEBUG] switch_core_state_machine.c:569<br>
(sofia/internal/223) State REPORTING<br>
2010-03-12 20:26:00.550450 [DEBUG] switch_core_state_machine.c:53<br>
sofia/internal/223 Standard REPORTING, cause: USER_BUSY<br>
2010-03-12 20:26:00.550450 [DEBUG] switch_core_state_machine.c:569<br>
(sofia/internal/223) State REPORTING going to sleep<br>
2010-03-12 20:26:00.550450 [DEBUG] switch_core_state_machine.c:319<br>
(sofia/internal/223) State Change CS_REPORTING -> CS_DESTROY<br>
2010-03-12 20:26:00.550450 [DEBUG] switch_core_session.c:1000 Send<br>
signal sofia/internal/223 [BREAK]<br>
2010-03-12 20:26:00.550450 [DEBUG] switch_core_session.c:1137 Session<br>
44644 (sofia/internal/223) Locked, Waiting on external entities<br>
2010-03-12 20:26:00.550450 [DEBUG] switch_ivr_originate.c:2467<br>
Originate Resulted in Error Cause: 17 [USER_BUSY]<br>
2010-03-12 20:26:00.550450 [NOTICE] switch_core_session.c:1155 Session<br>
44644 (sofia/internal/223) Ended<br>
2010-03-12 20:26:00.550450 [NOTICE] switch_core_session.c:1157 Close<br>
Channel sofia/internal/223 [CS_DESTROY]<br>
2010-03-12 20:26:00.550450 [DEBUG] switch_core_state_machine.c:415<br>
(sofia/internal/223) Running State Change CS_DESTROY<br>
2010-03-12 20:26:00.550450 [DEBUG] switch_core_state_machine.c:426<br>
(sofia/internal/223) State DESTROY<br>
2010-03-12 20:26:00.550450 [DEBUG] mod_sofia.c:267 sofia/internal/223<br>
SOFIA DESTROY<br>
2010-03-12 20:26:00.550450 [NOTICE] switch_channel.c:613 New Channel<br>
sofia/internal/223 [c8fdd3e0-d905-4f02-8955-d21d0bddf925]<br>
2010-03-12 20:26:00.550450 [DEBUG] switch_core_state_machine.c:60<br>
sofia/internal/223 Standard DESTROY<br>
2010-03-12 20:26:00.550450 [DEBUG] switch_core_state_machine.c:426<br>
(sofia/internal/223) State DESTROY going to sleep<br>
2010-03-12 20:26:00.550450 [DEBUG] mod_sofia.c:3020<br>
(sofia/internal/223) State Change CS_NEW -> CS_INIT<br>
2010-03-12 20:26:00.550450 [DEBUG] switch_core_session.c:1000 Send<br>
signal sofia/internal/223 [BREAK]<br>
2010-03-12 20:26:00.550450 [DEBUG] switch_core_state_machine.c:306<br>
(sofia/internal/223) Running State Change CS_INIT<br>
2010-03-12 20:26:00.550450 [DEBUG] switch_core_state_machine.c:330<br>
(sofia/internal/223) State INIT<br>
2010-03-12 20:26:00.550450 [DEBUG] mod_sofia.c:83 sofia/internal/223<br>
SOFIA INIT<br>
2010-03-12 20:26:00.554707 [DEBUG] mod_sofia.c:111<br>
(sofia/internal/223) State Change CS_INIT -> CS_ROUTING<br>
2010-03-12 20:26:00.554707 [DEBUG] switch_core_session.c:1000 Send<br>
signal sofia/internal/223 [BREAK]<br>
2010-03-12 20:26:00.554707 [DEBUG] sofia.c:3583 Channel<br>
sofia/internal/223 entering state [calling][0]<br>
2010-03-12 20:26:00.554707 [DEBUG] switch_core_state_machine.c:330<br>
(sofia/internal/223) State INIT going to sleep<br>
2010-03-12 20:26:00.554707 [DEBUG] switch_core_state_machine.c:306<br>
(sofia/internal/223) Running State Change CS_ROUTING<br>
2010-03-12 20:26:00.554707 [DEBUG] switch_core_state_machine.c:333<br>
(sofia/internal/223) State ROUTING<br>
2010-03-12 20:26:00.554707 [DEBUG] mod_sofia.c:130 sofia/internal/223<br>
SOFIA ROUTING<br>
2010-03-12 20:26:00.554707 [DEBUG] switch_ivr_originate.c:66<br>
(sofia/internal/223) State Change CS_ROUTING -> CS_CONSUME_MEDIA<br>
2010-03-12 20:26:00.554707 [DEBUG] switch_core_session.c:1000 Send<br>
signal sofia/internal/223 [BREAK]<br>
2010-03-12 20:26:00.554707 [DEBUG] switch_core_state_machine.c:333<br>
(sofia/internal/223) State ROUTING going to sleep<br>
2010-03-12 20:26:00.554707 [DEBUG] switch_core_state_machine.c:306<br>
(sofia/internal/223) Running State Change CS_CONSUME_MEDIA<br>
2010-03-12 20:26:00.554707 [DEBUG] switch_core_state_machine.c:352<br>
(sofia/internal/223) State CONSUME_MEDIA<br>
2010-03-12 20:26:00.554707 [DEBUG] switch_core_state_machine.c:352<br>
(sofia/internal/223) State CONSUME_MEDIA going to sleep<br>
2010-03-12 20:26:00.578400 [DEBUG] sofia.c:3583 Channel<br>
sofia/internal/223 entering state [calling][0]<br>
2010-03-12 20:26:00.614451 [DEBUG] sofia.c:3583 Channel<br>
sofia/internal/223 entering state [terminated][486]<br>
2010-03-12 20:26:00.614451 [NOTICE] sofia.c:4149 Hangup<br>
sofia/internal/223 [CS_CONSUME_MEDIA] [USER_BUSY]<br>
2010-03-12 20:26:00.614451 [DEBUG] switch_channel.c:1896 Send signal<br>
sofia/internal/223 [KILL]<br>
2010-03-12 20:26:00.614451 [DEBUG] switch_core_state_machine.c:306<br>
(sofia/internal/223) Running State Change CS_HANGUP<br>
2010-03-12 20:26:00.614451 [DEBUG] switch_core_state_machine.c:478<br>
(sofia/internal/223) State HANGUP<br>
2010-03-12 20:26:00.614451 [DEBUG] switch_core_session.c:1000 Send<br>
signal sofia/internal/223 [BREAK]<br>
2010-03-12 20:26:00.614451 [DEBUG] switch_core_state_machine.c:451<br>
thread mismatch skipping state handler.<br>
2010-03-12 20:26:00.618419 [DEBUG] mod_sofia.c:318 sofia/internal/223<br>
Overriding SIP cause 486 with 486 from the other leg<br>
2010-03-12 20:26:00.618419 [DEBUG] mod_sofia.c:350 Channel<br>
sofia/internal/223 hanging up, cause: USER_BUSY<br>
2010-03-12 20:26:00.618419 [DEBUG] switch_core_state_machine.c:46<br>
sofia/internal/223 Standard HANGUP, cause: USER_BUSY<br>
2010-03-12 20:26:00.618419 [DEBUG] switch_core_state_machine.c:478<br>
(sofia/internal/223) State HANGUP going to sleep<br>
2010-03-12 20:26:00.618419 [DEBUG] switch_ivr_originate.c:2467<br>
Originate Resulted in Error Cause: 17 [USER_BUSY]<br>
2010-03-12 20:26:00.618419 [DEBUG] switch_core_state_machine.c:325<br>
(sofia/internal/223) State Change CS_HANGUP -> CS_REPORTING<br>
2010-03-12 20:26:00.618419 [DEBUG] switch_core_session.c:1000 Send<br>
signal sofia/internal/223 [BREAK]<br>
2010-03-12 20:26:00.618419 [DEBUG] switch_core_state_machine.c:306<br>
(sofia/internal/223) Running State Change CS_REPORTING<br>
2010-03-12 20:26:00.618419 [DEBUG] switch_core_state_machine.c:569<br>
(sofia/internal/223) State REPORTING<br>
2010-03-12 20:26:00.618419 [DEBUG] switch_core_state_machine.c:53<br>
sofia/internal/223 Standard REPORTING, cause: USER_BUSY<br>
2010-03-12 20:26:00.618419 [DEBUG] switch_core_state_machine.c:569<br>
(sofia/internal/223) State REPORTING going to sleep<br>
2010-03-12 20:26:00.618419 [DEBUG] switch_core_state_machine.c:319<br>
(sofia/internal/223) State Change CS_REPORTING -> CS_DESTROY<br>
2010-03-12 20:26:00.618419 [DEBUG] switch_core_session.c:1000 Send<br>
signal sofia/internal/223 [BREAK]<br>
2010-03-12 20:26:00.618419 [DEBUG] switch_core_session.c:1137 Session<br>
44645 (sofia/internal/223) Locked, Waiting on external entities<br>
2010-03-12 20:26:00.618419 [NOTICE] switch_core_session.c:1155 Session<br>
44645 (sofia/internal/223) Ended<br>
2010-03-12 20:26:00.618419 [NOTICE] switch_core_session.c:1157 Close<br>
Channel sofia/internal/223 [CS_DESTROY]<br>
2010-03-12 20:26:00.618419 [DEBUG] switch_core_state_machine.c:415<br>
(sofia/internal/223) Running State Change CS_DESTROY<br>
2010-03-12 20:26:00.618419 [DEBUG] switch_core_state_machine.c:426<br>
(sofia/internal/223) State DESTROY<br>
2010-03-12 20:26:00.618419 [DEBUG] mod_sofia.c:267 sofia/internal/223<br>
SOFIA DESTROY<br>
2010-03-12 20:26:00.618419 [DEBUG] switch_core_state_machine.c:60<br>
sofia/internal/223 Standard DESTROY<br>
2010-03-12 20:26:00.618419 [DEBUG] switch_core_state_machine.c:426<br>
(sofia/internal/223) State DESTROY going to sleep<br>
<div><div></div><div class="h5"><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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:+19193869900<br>