scott.ellis at novatex... Guest
|
Posted: Wed Jan 14, 2009 6:54 am Post subject: [Freeswitch-users] Failed bridge in dial plan still answers |
|
|
Quote: | I have an inbound call via OpenZap, when I attempt to bridge to a SIP
extension, I get the ring tone (inbound line) up until the bridge fails
(for timeout or do not disturb). At this point the call is answered and
then my dial plan moves on to attempt another bridge to different
extensions. So I no longer have the ring tone for the person dialing in.
The call can still be answered and everything works ok, but I would
rather not answer the call until someone actually picks up. Failing that
simulating a ring tone would be good enough.
Have searched around, but at a bit of a loss on how to dothis.
Any suggestions greatly appreciated.
Scott
From my dialplan
<extension name="LandLine IN">
<condition field="source" expression="mod_openzap"/>
<condition field="caller_id_number" expression="^[1-8]$">
<!-- Ring reception for 30 seconds -->
<!--<action application="set" data="call_timeout=30"/> -->
<action application="set" data="continue_on_fail=true"/>
<!--<action application="set" data="hangup_after_bridge=true"/>-->
<action application="bridge"
data="{leg_timeout=30}sofia/$${domain}/500"/>
<!--<action application="playback"
data="sounds/ReceptionBusy.wav"/> -->
<!-- Ring second group for 15 seconds -->
<action application="set" data="call_timeout=15"/>
<action application="set" data="continue_on_fail=true"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="ring_ready"/>
<action application="bridge"
data="${group_call(ringgroup2@${domain_name})"/>
<!-- Ring everybody -->
<action application="set" data="call_timeout=15"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="bridge"
data="${group_call(everyone@${domain_name})"/>
<action application="hangup" data="NO_ANSWER"/>
</condition>
</extension>
_______________________________________________
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
|
A call log
009-01-14 22:47:10 [DEBUG] ozmod_analog.c:744 process_event() EVENT
[RING_START][2:1] STATE [IDLE]
2009-01-14 22:47:12 [DEBUG] ozmod_analog.c:744 process_event() EVENT
[RING_START][2:1] STATE [IDLE]
2009-01-14 22:47:13 [DEBUG] ozmod_analog.c:744 process_event() EVENT
[RING_START][2:1] STATE [IDLE]
2009-01-14 22:47:13 [NOTICE] switch_ivr_originate.c:206
check_per_channel_timeouts() Hangup sofia/internal/500
[CS_CONSUME_MEDIA] [ALLOTTED_TIMEOUT]
2009-01-14 22:47:13 [DEBUG] switch_channel.c:1517
switch_channel_perform_hangup() Send signal sofia/internal/500 [KILL]
2009-01-14 22:47:13 [DEBUG] switch_core_session.c:810
switch_core_session_signal_state_change() Send signal sofia/internal/500
[BREAK]
2009-01-14 22:47:13 [DEBUG] switch_core_state_machine.c:466
switch_core_session_run() (sofia/internal/500) State CONSUME_MEDIA going
to sleep
2009-01-14 22:47:13 [DEBUG] switch_core_state_machine.c:379
switch_core_session_run() (sofia/internal/500) Running State Change
CS_HANGUP
2009-01-14 22:47:13 [DEBUG] switch_core_state_machine.c:410
switch_core_session_run() (sofia/internal/500) State HANGUP
2009-01-14 22:47:13 [DEBUG] mod_sofia.c:287 sofia_on_hangup() Channel
sofia/internal/500 hanging up, cause: ALLOTTED_TIMEOUT
2009-01-14 22:47:13 [DEBUG] mod_sofia.c:351 sofia_on_hangup() Sending
CANCEL to sofia/internal/500
2009-01-14 22:47:13 [DEBUG] switch_core_state_machine.c:46
switch_core_standard_on_hangup() sofia/internal/500 Standard HANGUP,
cause: ALLOTTED_TIMEOUT
2009-01-14 22:47:13 [DEBUG] switch_core_state_machine.c:410
switch_core_session_run() (sofia/internal/500) State HANGUP going to sleep
2009-01-14 22:47:13 [DEBUG] switch_core_session.c:942
switch_core_session_thread() Session 403 (sofia/internal/500) Locked,
Waiting on external entities
2009-01-14 22:47:13 [DEBUG] switch_ivr_originate.c:1705
switch_ivr_originate() Originate Resulted in Error Cause: 602
[ALLOTTED_TIMEOUT]
2009-01-14 22:47:13 [NOTICE] switch_core_session.c:960
switch_core_session_thread() Session 403 (sofia/internal/500) Ended
2009-01-14 22:47:13 [NOTICE] switch_core_session.c:962
switch_core_session_thread() Close Channel sofia/internal/500 [CS_HANGUP]
2009-01-14 22:47:13 [DEBUG] switch_ivr.c:59 switch_ivr_sleep()
OpenZAP/2:1/2 receive message [PROGRESS]
2009-01-14 22:47:13 [DEBUG] mod_openzap.c:785
channel_receive_message_fxo() Changing state on 2:1 from IDLE to UP
2009-01-14 22:47:13 [DEBUG] switch_core_session.c:513
switch_core_session_perform_receive_message() Send signal OpenZAP/2:1/2
[BREAK]
2009-01-14 22:47:13 [NOTICE] switch_ivr.c:59 switch_ivr_sleep()
Ring-Ready OpenZAP/2:1/2!
2009-01-14 22:47:13 [NOTICE] switch_ivr.c:59 switch_ivr_sleep()
Pre-Answer OpenZAP/2:1/2!
2009-01-14 22:47:13 [DEBUG] switch_channel.c:177
switch_channel_audio_sync() OpenZAP/2:1/2 receive message [AUDIO_SYNC]
2009-01-14 22:47:13 [INFO] mod_dptools.c:1909 audio_bridge_function()
Originate Failed. Cause: ALLOTTED_TIMEOUT
2009-01-14 22:47:13 [DEBUG] mod_dptools.c:1930 audio_bridge_function()
Continue on fail [true]: Cause: ALLOTTED_TIMEOUT
2009-01-14 22:47:13 [DEBUG] switch_core_state_machine.c:152
switch_core_standard_on_execute() OpenZAP/2:1/2 Execute set(call_timeout=15)
2009-01-14 22:47:13 [DEBUG] mod_dptools.c:699 set_function()
OpenZAP/2:1/2 SET [call_timeout]=[15]
2009-01-14 22:47:13 [DEBUG] switch_core_state_machine.c:152
switch_core_standard_on_execute() OpenZAP/2:1/2 Execute
set(continue_on_fail=true)
2009-01-14 22:47:13 [DEBUG] mod_dptools.c:699 set_function()
OpenZAP/2:1/2 SET [continue_on_fail]=[true]
2009-01-14 22:47:13 [DEBUG] switch_core_state_machine.c:152
switch_core_standard_on_execute() OpenZAP/2:1/2 Execute
set(hangup_after_bridge=true)
2009-01-14 22:47:13 [DEBUG] mod_dptools.c:699 set_function()
OpenZAP/2:1/2 SET [hangup_after_bridge]=[true]
2009-01-14 22:47:13 [DEBUG] switch_core_state_machine.c:152
switch_core_standard_on_execute() OpenZAP/2:1/2 Execute ring_ready()
2009-01-14 22:47:13 [DEBUG] switch_core_state_machine.c:152
switch_core_standard_on_execute() OpenZAP/2:1/2 Execute
bridge({leg_timeout=10}sofia/10.0.0.9/520)
2009-01-14 22:47:13 [DEBUG] switch_ivr_originate.c:783
switch_ivr_originate() variable string 0 = [leg_timeout=10]
2009-01-14 22:47:13 [NOTICE] switch_channel.c:565
switch_channel_set_name() New Channel sofia/internal/520
[15657cd4-e231-11dd-9df1-2bc8b5f74e14]
2009-01-14 22:47:13 [DEBUG] mod_sofia.c:2518 sofia_outgoing_channel()
(sofia/internal/520) State Change CS_NEW -> CS_INIT
2009-01-14 22:47:13 [DEBUG] switch_core_session.c:810
switch_core_session_signal_state_change() Send signal sofia/internal/520
[BREAK]
2009-01-14 22:47:13 [DEBUG] switch_ivr_originate.c:1179
switch_ivr_originate() sofia/internal/520 Setting leg timeout to 10
2009-01-14 22:47:13 [DEBUG] switch_core_state_machine.c:379
switch_core_session_run() (sofia/internal/520) Running State Change CS_INIT
2009-01-14 22:47:13 [DEBUG] switch_core_state_machine.c:444
switch_core_session_run() (sofia/internal/520) State INIT
2009-01-14 22:47:13 [DEBUG] mod_sofia.c:83 sofia_on_init()
sofia/internal/520 SOFIA INIT
2009-01-14 22:47:13 [DEBUG] mod_sofia.c:111 sofia_on_init()
(sofia/internal/520) State Change CS_INIT -> CS_ROUTING
2009-01-14 22:47:13 [DEBUG] switch_core_session.c:810
switch_core_session_signal_state_change() Send signal sofia/internal/520
[BREAK]
2009-01-14 22:47:13 [DEBUG] sofia.c:2573 sofia_handle_sip_i_state()
Channel sofia/internal/520 entering state [calling]
2009-01-14 22:47:13 [DEBUG] switch_core_state_machine.c:444
switch_core_session_run() (sofia/internal/520) State INIT going to sleep
2009-01-14 22:47:13 [DEBUG] switch_core_state_machine.c:379
switch_core_session_run() (sofia/internal/520) Running State Change
CS_ROUTING
2009-01-14 22:47:13 [DEBUG] switch_core_state_machine.c:447
switch_core_session_run() (sofia/internal/520) State ROUTING
2009-01-14 22:47:13 [DEBUG] mod_sofia.c:130 sofia_on_routing()
sofia/internal/520 SOFIA ROUTING
2009-01-14 22:47:13 [DEBUG] switch_ivr_originate.c:62
originate_on_routing() (sofia/internal/520) State Change CS_ROUTING ->
CS_CONSUME_MEDIA
2009-01-14 22:47:13 [DEBUG] switch_core_session.c:810
switch_core_session_signal_state_change() Send signal sofia/internal/520
[BREAK]
2009-01-14 22:47:13 [DEBUG] switch_core_state_machine.c:447
switch_core_session_run() (sofia/internal/520) State ROUTING going to sleep
2009-01-14 22:47:13 [DEBUG] switch_core_state_machine.c:379
switch_core_session_run() (sofia/internal/520) Running State Change
CS_CONSUME_MEDIA
2009-01-14 22:47:13 [DEBUG] switch_core_state_machine.c:466
switch_core_session_run() (sofia/internal/520) State CONSUME_MEDIA
2009-01-14 22:47:13 [DEBUG] ozmod_analog.c:744 process_event() EVENT
[RING_START][2:1] STATE [UP]
2009-01-14 22:47:13 [DEBUG] ozmod_analog.c:410 zap_analog_channel_run()
Executing state handler on 2:1 for UP
2009-01-14 22:47:13 [DEBUG] mod_openzap.c:1165 on_fxo_signal() got FXO
sig 2:1 [UP]
2009-01-14 22:47:13 [NOTICE] mod_openzap.c:1192 on_fxo_signal() Channel
[OpenZAP/2:1/2] has been answered
_______________________________________________
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 |
|