[Freeswitch-users] Don't work playback after bypass media mode.

Sergey Scheglov sid at eltc.ru
Wed May 26 03:49:16 PDT 2010


Hi, Freeswitch-users.

My dialplan:
<extension name="Local_Extension">
    <condition field="destination_number" expression="^([1-9]\d{4})$">
        <action application="set" data="dialed_extension=$1"/>
        <action application="export" data="dialed_extension=$1"/>
        <action application="set" data="ringback=${ru-ring}"/>
        <action application="set" data="bypass_media=true"/>
        <action application="set" data="hangup_after_bridge=true"/>
        <action application="set" data="continue_on_fail=SUBSCRIBER_ABSENT,USER_NOT_REGISTERED"/>
        <action application="set" data="continue_on_fail=true"/>
        <action application="bridge" data="user/${dialed_extension}@${domain_name}"/>
        <action application="pre_answer"/>
        <action application="sleep" data="1000"/>
        <action application="playback" data="elight/${originate_disposition}.wav"/>
    </condition>
</extension>

If hangup cause is SUBSCRIBER_ABSENT or USER_NOT_REGISTERED, then
playback don't work.

Piece of log

2010-05-26 17:35:08.218253 [ERR] switch_ivr_originate.c:2493 Cannot create outgoing channel of type [user] cause: [SUBSCRIBER_ABSENT]
2010-05-26 17:35:08.218253 [DEBUG] switch_ivr_originate.c:3308 Originate Resulted in Error Cause: 20 [SUBSCRIBER_ABSENT]
2010-05-26 17:35:08.218253 [INFO] mod_dptools.c:2356 Originate Failed.  Cause: SUBSCRIBER_ABSENT
EXECUTE sofia/internal/39663 at 10.110.1.8:5060 pre_answer()
2010-05-26 17:35:08.219282 [INFO] mod_dptools.c:746 Sending early media
2010-05-26 17:35:08.219282 [NOTICE] mod_sofia.c:2032 Pre-Answer sofia/internal/39663 at 10.110.1.8:5060!
2010-05-26 17:35:08.219282 [DEBUG] switch_core_session.c:642 Send signal sofia/internal/39663 at 10.110.1.8:5060 [BREAK]
EXECUTE sofia/internal/39663 at 10.110.1.8:5060 sleep(1000)
2010-05-26 17:35:08.219282 [DEBUG] sofia.c:4195 Channel sofia/internal/39663 at 10.110.1.8:5060 skipping state [early][183]
2010-05-26 17:35:09.219252 [DEBUG] switch_core_session.c:642 Send signal sofia/internal/39663 at 10.110.1.8:5060 [BREAK]
2010-05-26 17:35:39.226271 [ERR] switch_core_io.c:121 sofia/internal/39663 at 10.110.1.8:5060 has no read codec.
2010-05-26 17:35:39.226271 [DEBUG] switch_core_session.c:1759 Application playback Requires media on channel sofia/internal/39663 at 10.110.1.8:5060!
EXECUTE sofia/internal/39663 at 10.110.1.8:5060 playback(elight/SUBSCRIBER_ABSENT.wav)
2010-05-26 17:35:39.226271 [NOTICE] switch_core_state_machine.c:185 sofia/internal/39663 at 10.110.1.8:5060 has executed the last dialplan instruction, hanging up.
2010-05-26 17:35:39.226271 [NOTICE] switch_core_state_machine.c:187 Hangup sofia/internal/39663 at 10.110.1.8:5060 [CS_EXECUTE] [NORMAL_CLEARING]

What am I doing wrong?

If set bypass_media_after_bridge instead bypass_media, then works
fine, BUT changing codec negotiation.

Thanks.
-- 
Regard
Sergey Scheglov






More information about the FreeSWITCH-users mailing list