No Ring Tone on Outbound Call

Status
Not open for further replies.

legolas108

New Member
Dec 11, 2019
10
0
1
Winter, WI
www.wintergreenhouse.com
On internal calls while waiting for response after dialing there's the usual ring tone. But on outbound calls it has been missing for some time now and I don't recall what was changed to trigger this. Corresponding to this seems to be an error logged by FusionPBX 4.5.10 / FreeSwitch 1.8.4:

[ERR] switch_ivr.c:1765 Can't re-establsh media on sofia/internal/109@pbx.example.local

Googling doesn't provide any clues other than it might have to do with the bypass_media flag. Had added this flag to the outbound route's dialplan just before the final bridge statements to force the media path via PBX server through a dedicated Internet connection to separate the VoIP traffic from other Internet browsing traffic on the smartphones we use as clients:
Code:
<extension name="TwilioOut01.1d10" continue="false" uuid="f3b7935c-4498-4750-b37d-af6f2e2e7295">
    <condition field="${user_exists}" expression="false"/>
    <condition field="destination_number" expression="^\+?1?(\d{10})$">
        <action application="set" data="sip_h_X-accountcode=${accountcode}"/>
        <action application="export" data="call_direction=outbound"/>
        <action application="unset" data="call_timeout"/>
        <action application="set" data="hangup_after_bridge=true"/>
        <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/>
        <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/>
        <action application="set" data="inherit_codec=true"/>
        <action application="set" data="ignore_display_updates=true"/>
        <action application="set" data="callee_id_number=$1"/>
        <action application="set" data="continue_on_fail=true"/>
        <action application="export" data="nolocal:rtp_secure_media=true:AES_CM_128_HMAC_SHA1_80"/>
        <action application="sleep" data="${sleep}"/>
        <action application="set" data="bypass_media=false"/>
        <action application="bridge" data="sofia/gateway/465c43a4-3bcb-408c-8e64-74689975f8e1/+1$1"/>
        <action application="bridge" data="sofia/gateway/9469eb8b-c486-490d-b565-b420690f8918/+1$1"/>
    </condition>
</extension>

Removing this flag again results in a 488 Not Acceptable Here as media then try to go through our VoIP provider directly from the phone and it doesn't provide media encrypted as expected there.

Thanks much for any hints!
 

Attachments

  • sip-trace-no-ring-tone.zip
    8.2 KB · Views: 2
Status
Not open for further replies.