<br><br><div class="gmail_quote">On Thu, Nov 12, 2009 at 10:00 AM, Suneel Papineni <span dir="ltr">&lt;<a href="mailto:Suneel.Papineni@mettoni.com">Suneel.Papineni@mettoni.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">









<div link="blue" vlink="purple" lang="EN-GB">

<div>

<p class="MsoNormal">Hi,</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">I am trying to set up a scenario where Call coming to FS1 at
2001 should be diverted to another freeswitch FS2. FS2 gateway is configured at
FS1 as a gateway with name “10001” . </p>

<p class="MsoNormal">Now when I try to originate call from CLI, it is giving me
errors. Please help me in sorting this out.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">freeswitch@ Opt330&gt; originate sofia/external/2001@10001
9999</p>

<p class="MsoNormal">2009-11-12 17:47:23.626250 [NOTICE] switch_channel.c:613 New
Channel sofia/external/2001@10001 [e2e54fd6-fa47-d64b-b700-1c62fd5e905e]</p>

<p class="MsoNormal">2009-11-12 17:47:23.626250 [NOTICE] sofia.c:4187 Hangup
sofia/external/2001@10001 [CS_ROUTING] [NORMAL_TEMPORARY_FAILURE]API CALL
[originate(sofia/external/2001@10001 9999)] output:</p>

<p class="MsoNormal">-ERR NORMAL_TEMPORARY_FAILURE</p>

<p class="MsoNormal">2009-11-12 17:47:23.641875 [NOTICE]
switch_core_session.c:1155 Session 20 (sofia/external/2001@10001) Ended</p>

<p class="MsoNormal">2009-11-12 17:47:23.641875 [NOTICE]
switch_core_session.c:1157 Close Channel sofia/external/2001@10001 [CS_DESTROY]</p>

<p class="MsoNormal"> </p></div></div></blockquote><div>If I understand you correctly, you&#39;re trying to test the connection from FS1 to FS2 by originating a call at the CLI on FS2? Please confirm your topology and how you are testing.<br>
<br>Also, if you are at the CLI on FS1 you can do a quick test to make sure that the bridge is working:<br>originate loopback/9999 2001<br><br>-MC<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-GB"><div>

<p class="MsoNormal">Please find configurations as:</p>

<p class="MsoNormal">Gateway:</p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&lt;gateway name=&quot;10001&quot;&gt;</span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">    &lt;param
name=&quot;username&quot; value=&quot;1001&quot;/&gt;</span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">    &lt;param
name=&quot;password&quot; value=&quot;1234&quot;/&gt;</span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">    &lt;param
name=&quot;register&quot; value=&quot;true&quot;/&gt;</span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">    &lt;param
name=&quot;register-proxy&quot; value=&quot;&lt;192.168.12.11&gt;&quot;/&gt;</span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">    &lt;param
name=&quot;extension&quot; value=&quot;1001&quot;/&gt;</span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">    &lt;param
name=&quot;retry-seconds&quot;
value=&quot;30&quot;/&gt;    
       </span></p>

<p><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&lt;/gateway&gt;
</span><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">Dialplan:</span></p>

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">        &lt;extension
name=&quot;Transfer&quot;&gt;</span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">      &lt;condition
field=&quot;destination_number&quot; expression=&quot;^2001$&quot;&gt;</span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">      &lt;action
application=&quot;bridge&quot; data=&quot;sofia/gateway/100001/1005&quot;/&gt;</span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">     
&lt;/condition&gt;</span></p>

<p><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">   
&lt;/extension&gt;</span><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Log from FS is as follows.....</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">2009-11-12 17:47:23.626250 [NOTICE] switch_channel.c:613 New
Channel sofia/external/2001@10001 [e2e54fd6-fa47-d64b-b700-1c62fd5e905e]</p>

<p class="MsoNormal">2009-11-12 17:47:23.626250 [DEBUG] mod_sofia.c:3061 (sofia/external/2001@10001)
State Change CS_NEW -&gt; CS_INIT</p>

<p class="MsoNormal">2009-11-12 17:47:23.626250 [DEBUG]
switch_core_session.c:1000 Send signal sofia/external/2001@10001 [BREAK]</p>

<p class="MsoNormal">2009-11-12 17:47:23.626250 [DEBUG]
switch_core_state_machine.c:306 (sofia/external/2001@10001) Running State
Change CS_INIT</p>

<p class="MsoNormal">2009-11-12 17:47:23.626250 [DEBUG]
switch_core_state_machine.c:330 (sofia/external/2001@10001) State INIT</p>

<p class="MsoNormal">2009-11-12 17:47:23.626250 [DEBUG] mod_sofia.c:83
sofia/external/2001@10001 SOFIA INIT</p>

<p class="MsoNormal">2009-11-12 17:47:23.626250 [DEBUG] mod_sofia.c:111
(sofia/external/2001@10001) State Change CS_INIT -&gt; CS_ROUTING</p>

<p class="MsoNormal">2009-11-12 17:47:23.626250 [DEBUG]
switch_core_session.c:1000 Send signal sofia/external/2001@10001 [BREAK]</p>

<p class="MsoNormal">2009-11-12 17:47:23.626250 [DEBUG]
switch_core_state_machine.c:330 (sofia/external/2001@10001) State INIT going to
sleep</p>

<p class="MsoNormal">2009-11-12 17:47:23.626250 [DEBUG]
switch_core_state_machine.c:306 (sofia/external/2001@10001) Running State
Change CS_ROUTING</p>

<p class="MsoNormal">2009-11-12 17:47:23.626250 [DEBUG] sofia.c:3588 Channel
sofia/external/2001@10001 entering state [calling][0]</p>

<p class="MsoNormal">2009-11-12 17:47:23.626250 [DEBUG] sofia.c:3588 Channel
sofia/external/2001@10001 entering state [terminated][503]</p>

<p class="MsoNormal">2009-11-12 17:47:23.626250 [DEBUG]
switch_core_state_machine.c:333 (sofia/external/2001@10001) State ROUTING</p>

<p class="MsoNormal">2009-11-12 17:47:23.626250 [NOTICE] sofia.c:4187 Hangup
sofia/external/2001@10001 [CS_ROUTING] [NORMAL_TEMPORARY_FAILURE]</p>

<p class="MsoNormal">2009-11-12 17:47:23.626250 [DEBUG] mod_sofia.c:130
sofia/external/2001@10001 SOFIA ROUTING</p>

<p class="MsoNormal">2009-11-12 17:47:23.626250 [DEBUG] switch_core_state_machine.c:333
(sofia/external/2001@10001) State ROUTING going to sleep</p>

<p class="MsoNormal">2009-11-12 17:47:23.626250 [DEBUG]
switch_core_state_machine.c:306 (sofia/external/2001@10001) Running State
Change CS_HANGUP</p>

<p class="MsoNormal">2009-11-12 17:47:23.626250 [DEBUG] switch_ivr_originate.c:2465
Originate Resulted in Error Cause: 41 [NORMAL_TEMPORARY_FAILURE]</p>

<p class="MsoNormal">2009-11-12 17:47:23.626250 [DEBUG] switch_channel.c:1896
Send signal sofia/external/2001@10001 [KILL]</p>

<p class="MsoNormal">2009-11-12 17:47:23.626250 [DEBUG]
switch_core_session.c:1000 Send signal sofia/external/2001@10001 [BREAK]</p>

<p class="MsoNormal">2009-11-12 17:47:23.626250 [DEBUG]
switch_core_state_machine.c:451 thread mismatch skipping state handler.</p>

<p class="MsoNormal">2009-11-12 17:47:23.626250 [DEBUG]
switch_core_state_machine.c:478 (sofia/external/2001@10001) State HANGUP</p>

<p class="MsoNormal">2009-11-12 17:47:23.626250 [DEBUG] mod_sofia.c:329
sofia/external/2001@10001 Overriding SIP cause 503 with 503 from the other leg</p>

<p class="MsoNormal">2009-11-12 17:47:23.626250 [DEBUG] mod_sofia.c:361 Channel
sofia/external/2001@10001 hanging up, cause: NORMAL_TEMPORARY_FAILURE</p>

<p class="MsoNormal">2009-11-12 17:47:23.626250 [DEBUG]
switch_core_state_machine.c:46 sofia/external/2001@10001 Standard HANGUP,
cause: NORMAL_TEMPORARY_FAILURE</p>

<p class="MsoNormal">2009-11-12 17:47:23.626250 [DEBUG]
switch_core_state_machine.c:478 (sofia/external/2001@10001) State HANGUP going
to sleep</p>

<p class="MsoNormal">2009-11-12 17:47:23.641875 [DEBUG]
switch_core_state_machine.c:325 (sofia/external/2001@10001) State Change
CS_HANGUP -&gt; CS_REPORTING</p>

<p class="MsoNormal">2009-11-12 17:47:23.641875 [DEBUG]
switch_core_session.c:1000 Send signal sofia/external/2001@10001 [BREAK]</p>

<p class="MsoNormal">2009-11-12 17:47:23.641875 [DEBUG]
switch_core_state_machine.c:306 (sofia/external/2001@10001) Running State
Change CS_REPORTING</p>

<p class="MsoNormal">2009-11-12 17:47:23.641875 [DEBUG]
switch_core_state_machine.c:569 (sofia/external/2001@10001) State REPORTING</p>

<p class="MsoNormal">2009-11-12 17:47:23.641875 [DEBUG]
switch_core_state_machine.c:53 sofia/external/2001@10001 Standard REPORTING,
cause: NORMAL_TEMPORARY_FAILURE</p>

<p class="MsoNormal">2009-11-12 17:47:23.641875 [DEBUG]
switch_core_state_machine.c:569 (sofia/external/2001@10001) State REPORTING
going to sleep</p>

<p class="MsoNormal">2009-11-12 17:47:23.641875 [DEBUG]
switch_core_state_machine.c:319 (sofia/external/2001@10001) State Change
CS_REPORTING -&gt; CS_DESTROY</p>

<p class="MsoNormal">2009-11-12 17:47:23.641875 [DEBUG]
switch_core_session.c:1000 Send signal sofia/external/2001@10001 [BREAK]</p>

<p class="MsoNormal">2009-11-12 17:47:23.641875 [DEBUG]
switch_core_session.c:1137 Session 20 (sofia/external/2001@10001) Locked,
Waiting on external entities</p>

<p class="MsoNormal">2009-11-12 17:47:23.641875 [NOTICE]
switch_core_session.c:1155 Session 20 (sofia/external/2001@10001) Ended</p>

<p class="MsoNormal">2009-11-12 17:47:23.641875 [NOTICE]
switch_core_session.c:1157 Close Channel sofia/external/2001@10001 [CS_DESTROY]</p>

<p class="MsoNormal">2009-11-12 17:47:23.641875 [DEBUG]
switch_core_state_machine.c:415 (sofia/external/2001@10001) Running State
Change CS_DESTROY</p>

<p class="MsoNormal">2009-11-12 17:47:23.641875 [DEBUG] switch_core_state_machine.c:426
(sofia/external/2001@10001) State DESTROY</p>

<p class="MsoNormal">2009-11-12 17:47:23.641875 [DEBUG] mod_sofia.c:278
sofia/external/2001@10001 SOFIA DESTROY</p>

<p class="MsoNormal">2009-11-12 17:47:23.641875 [DEBUG]
switch_core_state_machine.c:60 sofia/external/2001@10001 Standard DESTROY</p>

<p class="MsoNormal">2009-11-12 17:47:23.641875 [DEBUG]
switch_core_state_machine.c:426 (sofia/external/2001@10001) State DESTROY going
to sleep</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal"> </p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Thanks &amp; Regards</p>

<p class="MsoNormal">Suneel</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal"> </p>

</div>

<pre>*************************************************************************
Please consider the environment before printing this e-mail
*************************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.  <a href="http://www.mettoni.com" target="_blank">http://www.mettoni.com</a>

Mettoni Ltd
Registered in England and Wales: 4485956
9400 Garsington Road, Oxford Business Park, Oxford, OX4 2HN
*************************************************************************
</pre></div>


<br>_______________________________________________<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>