<div dir="ltr">
<p class="">Hello Everyone!</p><p class="">I have faced same issue as Ross at this thread: <a href="http://lists.freeswitch.org/pipermail/freeswitch-users/2011-January/066985.html">http://lists.freeswitch.org/pipermail/freeswitch-users/2011-January/066985.html</a></p>
<p class="">FS translates q.850 codes from b-leg to a-leg incorrect.<br>Looks like there is no solution to translate q850 in correct way?</p><p class="">Please advice!</p><p class=""><br></p><p class="">Additional info:</p>
<p class=""># freeswitch -version<br>FreeSWITCH version: 1.2.11+git~20130711T181514Z~2eab94be78 (git 2eab94b 2013-07-11 18:15:14Z)</p><p class=""><br></p><p class="">dialplan extension:<br>
</p> <extension name="default"><br> <condition field="destination_number" expression="^\+?222222222222"><br> <action application="bridge" data="{max_forwards=70,progress_timeout=30,hangup_after_bridge=true,sip_cid_type=pid,zrtp_secure_media=false,hold_music=silence[absolute_codec_string=^^:G729@20i:PCMA@20i:PCMU@20i,origination_caller_id_number=+11111111111,origination_caller_id_name=+111111111111]sofia/external/<a href="http://222222222222@2.2.2.2:5062">222222222222@2.2.2.2:5062</a>"/><br>
</condition><br> </extension><div><br></div><div><br></div><div>SIP trace:</div><div>#<br>U 2014/04/10 10:19:43.079198 <a href="http://2.2.2.2:5062">2.2.2.2:5062</a> -> <a href="http://1.1.1.1:5080">1.1.1.1:5080</a><br>
SIP/2.0 480 Temporarily not available.<br>Via: SIP/2.0/UDP 1.1.1.1:5080;rport=5080;branch=z9hG4bKBXQm2F3cHgFcK.<br>From: "+111111111111" <<a href="mailto:sip%3A%2B111111111111@1.1.1.1">sip:+111111111111@1.1.1.1</a>>;tag=t8yp14HU53Xrj.<br>
To: <<a href="http://sip:+222222222222@4.4.4.4:5060">sip:+222222222222@4.4.4.4:5060</a>>;tag=gK0699dffd.<br>Call-ID: 5f60343b-3b3c-1232-d9ba-020820d8e22d.<br>CSeq: 58226505 INVITE.<br>Reason: Q.850;cause=19.<br>Content-Length: 0.<br>
.<br><br>#<br>U 2014/04/10 10:19:43.084570 <a href="http://1.1.1.1:5060">1.1.1.1:5060</a> -> <a href="http://2.2.2.2:5060">2.2.2.2:5060</a><br>SIP/2.0 480 Temporarily Unavailable.<br>Via: SIP/2.0/UDP 2.2.2.2;branch=z9hG4bK26dc.1612d515.0.<br>
Via: SIP/2.0/UDP 3.3.3.3:5060;branch=z9hG4bK420c53ac;rport=5060.<br>Max-Forwards: 16.<br>From: "pbx234" <<a href="mailto:sip%3A111111111111@3.3.3.3">sip:111111111111@3.3.3.3</a>>;tag=as333cf884.<br>To: <sip:0599#<a href="http://222222222222@2.2.2.2:5060">222222222222@2.2.2.2:5060</a>>;tag=veXaXcyc8118e.<br>
Call-ID: <a href="http://6c86be36267a0f6d54a34060364a3490@3.3.3.3:5060">6c86be36267a0f6d54a34060364a3490@3.3.3.3:5060</a>.<br>CSeq: 102 INVITE.<br>User-Agent: FS.<br>Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, NOTIFY.<br>
Supported: timer, precondition, path, replaces.<br>Allow-Events: talk, hold, conference, refer.<br>Reason: Q.850;cause=16;text="NORMAL_CLEARING".<br>Content-Length: 0.<br>Remote-Party-ID: "Outbound Call" <<a href="mailto:sip%3A222222222222@2.2.2.2">sip:222222222222@2.2.2.2</a>>;party=calling;privacy=off;screen=no.<p class="">
<br></p><p class=""><br></p><br><b>2014-04-10 10:50:03.470035 [DEBUG] sofia.c:4937 Remote Reason: 19<br>2014-04-10 10:50:03.490051 [ALERT] switch_ivr.c:828 sofia/external/<a href="http://222222222222@2.2.2.2:5062">222222222222@2.2.2.2:5062</a> receive message [SIGNAL_DATA]<br>
2014-04-10 10:50:03.490051 [DEBUG] sofia.c:5719 Channel sofia/external/<a href="http://222222222222@2.2.2.2:5062">222222222222@2.2.2.2:5062</a> entering state [terminated][480]<br>2014-04-10 10:50:03.490051 [NOTICE] sofia.c:6528 Hangup sofia/external/<a href="http://222222222222@2.2.2.2:5062">222222222222@2.2.2.2:5062</a> [CS_EXCHANGE_MEDIA] [NO_ANSWER]</b><br>
2014-04-10 10:50:03.490051 [DEBUG] switch_channel.c:3130 Send signal sofia/external/<a href="http://222222222222@2.2.2.2:5062">222222222222@2.2.2.2:5062</a> [KILL]<br>2014-04-10 10:50:03.490051 [DEBUG] switch_core_session.c:1334 Send signal sofia/external/<a href="http://222222222222@2.2.2.2:5062">222222222222@2.2.2.2:5062</a> [BREAK]<br>
2014-04-10 10:50:03.490051 [ALERT] switch_ivr.c:828 sofia/external/<a href="http://222222222222@2.2.2.2:5062">222222222222@2.2.2.2:5062</a> receive message [SIGNAL_DATA]<br>2014-04-10 10:50:03.490051 [DEBUG] switch_ivr_bridge.c:557 sofia/external/<a href="http://222222222222@2.2.2.2:5062">222222222222@2.2.2.2:5062</a> ending bridge by request from write function<br>
2014-04-10 10:50:03.490051 [DEBUG] switch_ivr_bridge.c:633 BRIDGE THREAD DONE [sofia/external/<a href="http://222222222222@2.2.2.2:5062">222222222222@2.2.2.2:5062</a>]<br>2014-04-10 10:50:03.490051 [DEBUG] switch_ivr_bridge.c:658 Send signal sofia/internal/<a href="http://111111111111@1.1.1.1:5060">111111111111@1.1.1.1:5060</a> [BREAK]<br>
2014-04-10 10:50:03.490051 [DEBUG] switch_core_state_machine.c:480 (sofia/external/<a href="http://222222222222@2.2.2.2:5062">222222222222@2.2.2.2:5062</a>) State EXCHANGE_MEDIA going to sleep<br>2014-04-10 10:50:03.490051 [DEBUG] switch_core_state_machine.c:415 (sofia/external/<a href="http://222222222222@2.2.2.2:5062">222222222222@2.2.2.2:5062</a>) Running State Change CS_HANGUP<br>
2014-04-10 10:50:03.490051 [DEBUG] switch_ivr_bridge.c:633 BRIDGE THREAD DONE [sofia/internal/<a href="http://111111111111@1.1.1.1:5060">111111111111@1.1.1.1:5060</a>]<br>2014-04-10 10:50:03.490051 [DEBUG] switch_ivr_bridge.c:658 Send signal sofia/external/<a href="http://222222222222@2.2.2.2:5062">222222222222@2.2.2.2:5062</a> [BREAK]<br>
2014-04-10 10:50:03.490051 [DEBUG] switch_core_state_machine.c:678 (sofia/external/<a href="http://222222222222@2.2.2.2:5062">222222222222@2.2.2.2:5062</a>) State HANGUP<br>2014-04-10 10:50:03.490051 [DEBUG] mod_sofia.c:504 Channel sofia/external/<a href="http://222222222222@2.2.2.2:5062">222222222222@2.2.2.2:5062</a> hanging up, cause: NO_ANSWER<br>
2014-04-10 10:50:03.490051 [DEBUG] switch_core_state_machine.c:48 sofia/external/<a href="http://222222222222@2.2.2.2:5062">222222222222@2.2.2.2:5062</a> Standard HANGUP, cause: NO_ANSWER<br>2014-04-10 10:50:03.490051 [DEBUG] switch_core_state_machine.c:678 (sofia/external/<a href="http://222222222222@2.2.2.2:5062">222222222222@2.2.2.2:5062</a>) State HANGUP going to sleep<br>
2014-04-10 10:50:03.490051 [DEBUG] switch_core_state_machine.c:689 (sofia/external/<a href="http://222222222222@2.2.2.2:5062">222222222222@2.2.2.2:5062</a>) Callstate Change EARLY -> HANGUP<br>2014-04-10 10:50:03.490051 [DEBUG] switch_core_state_machine.c:446 (sofia/external/<a href="http://222222222222@2.2.2.2:5062">222222222222@2.2.2.2:5062</a>) State Change CS_HANGUP -> CS_REPORTING<br>
2014-04-10 10:50:03.490051 [DEBUG] switch_core_session.c:1334 Send signal sofia/external/<a href="http://222222222222@2.2.2.2:5062">222222222222@2.2.2.2:5062</a> [BREAK]<br>2014-04-10 10:50:03.490051 [ALERT] switch_ivr_bridge.c:1521 sofia/external/<a href="http://222222222222@2.2.2.2:5062">222222222222@2.2.2.2:5062</a> receive message [UNBRIDGE]<br>
2014-04-10 10:50:03.490051 [DEBUG] switch_ivr_bridge.c:1521 sofia/external/<a href="http://222222222222@2.2.2.2:5062">222222222222@2.2.2.2:5062</a> skip receive message [UNBRIDGE] (channel is hungup already)<br>2014-04-10 10:50:03.490051 [ALERT] switch_ivr_bridge.c:1524 sofia/internal/<a href="http://111111111111@1.1.1.1:5060">111111111111@1.1.1.1:5060</a> receive message [UNBRIDGE]<br>
2014-04-10 10:50:03.490051 [DEBUG] switch_core_session.c:854 Send signal sofia/internal/<a href="http://111111111111@1.1.1.1:5060">111111111111@1.1.1.1:5060</a> [BREAK]<br>2014-04-10 10:50:03.490051 [DEBUG] switch_core_state_machine.c:415 (sofia/external/<a href="http://222222222222@2.2.2.2:5062">222222222222@2.2.2.2:5062</a>) Running State Change CS_REPORTING<br>
2014-04-10 10:50:03.490051 [ALERT] switch_core_session.c:2732 sofia/internal/<a href="http://111111111111@1.1.1.1:5060">111111111111@1.1.1.1:5060</a> receive message [APPLICATION_EXEC_COMPLETE]<br>2014-04-10 10:50:03.490051 [NOTICE] switch_core_state_machine.c:262 sofia/internal/<a href="http://111111111111@1.1.1.1:5060">111111111111@1.1.1.1:5060</a> has executed the last dialplan instruction, hanging up.<br>
2014-04-10 10:50:03.490051 [NOTICE] switch_core_state_machine.c:264 Hangup sofia/internal/<a href="http://111111111111@1.1.1.1:5060">111111111111@1.1.1.1:5060</a> [CS_EXECUTE] [NORMAL_CLEARING]<br>2014-04-10 10:50:03.490051 [DEBUG] switch_core_state_machine.c:761 (sofia/external/<a href="http://222222222222@2.2.2.2:5062">222222222222@2.2.2.2:5062</a>) State REPORTING<br>
2014-04-10 10:50:03.490051 [DEBUG] switch_channel.c:3130 Send signal sofia/internal/<a href="http://111111111111@1.1.1.1:5060">111111111111@1.1.1.1:5060</a> [KILL]<br>2014-04-10 10:50:03.490051 [DEBUG] switch_core_session.c:1334 Send signal sofia/internal/<a href="http://111111111111@1.1.1.1:5060">111111111111@1.1.1.1:5060</a> [BREAK]<br>
2014-04-10 10:50:03.490051 [DEBUG] switch_core_state_machine.c:477 (sofia/internal/<a href="http://111111111111@1.1.1.1:5060">111111111111@1.1.1.1:5060</a>) State EXECUTE going to sleep<br>2014-04-10 10:50:03.490051 [DEBUG] switch_core_state_machine.c:415 (sofia/internal/<a href="http://111111111111@1.1.1.1:5060">111111111111@1.1.1.1:5060</a>) Running State Change CS_HANGUP<br>
2014-04-10 10:50:03.490051 [DEBUG] switch_core_state_machine.c:678 (sofia/internal/<a href="http://111111111111@1.1.1.1:5060">111111111111@1.1.1.1:5060</a>) State HANGUP<br>2014-04-10 10:50:03.490051 [DEBUG] mod_sofia.c:498 sofia/internal/<a href="http://111111111111@1.1.1.1:5060">111111111111@1.1.1.1:5060</a> Overriding SIP cause 480 with 480 from the other leg<br>
<b>2014-04-10 10:50:03.490051 [DEBUG] mod_sofia.c:504 Channel sofia/internal/<a href="http://111111111111@1.1.1.1:5060">111111111111@1.1.1.1:5060</a> hanging up, cause: NORMAL_CLEARING<br>2014-04-10 10:50:03.490051 [DEBUG] mod_sofia.c:638 Responding to INVITE with: 480</b><div>
<br></div><div><br></div><div>-- <br>Yours sincerely,<br>Vladimir Getmanshchuk
</div></div></div>