<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
 /* List Definitions */
 @list l0
        {mso-list-id:383650064;
        mso-list-type:hybrid;
        mso-list-template-ids:90979050 134807567 134807577 134807579 134807567 134807577 134807579 134807567 134807577 134807579;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level2
        {mso-level-tab-stop:72.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level3
        {mso-level-tab-stop:108.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level4
        {mso-level-tab-stop:144.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level5
        {mso-level-tab-stop:180.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level6
        {mso-level-tab-stop:216.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level7
        {mso-level-tab-stop:252.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level8
        {mso-level-tab-stop:288.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level9
        {mso-level-tab-stop:324.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-GB link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal>Hi,<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></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 &#8220;10001&#8221; . <o:p></o:p></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.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>freeswitch@ Opt330&gt; originate sofia/external/2001@10001
9999<o:p></o:p></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]<o:p></o:p></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:<o:p></o:p></p>

<p class=MsoNormal>-ERR NORMAL_TEMPORARY_FAILURE<o:p></o:p></p>

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

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

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

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

<p class=MsoListParagraph style='text-autospace:none'><span style='font-size:
10.0pt;font-family:"Courier New"'>&lt;gateway name=&quot;10001&quot;&gt;<o:p></o:p></span></p>

<p class=MsoListParagraph style='text-autospace:none'><span style='font-size:
10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; &lt;param
name=&quot;username&quot; value=&quot;1001&quot;/&gt;<o:p></o:p></span></p>

<p class=MsoListParagraph style='text-autospace:none'><span style='font-size:
10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; &lt;param
name=&quot;password&quot; value=&quot;1234&quot;/&gt;<o:p></o:p></span></p>

<p class=MsoListParagraph style='text-autospace:none'><span style='font-size:
10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; &lt;param
name=&quot;register&quot; value=&quot;true&quot;/&gt;<o:p></o:p></span></p>

<p class=MsoListParagraph style='text-autospace:none'><span style='font-size:
10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; &lt;param
name=&quot;register-proxy&quot; value=&quot;&lt;192.168.12.11&gt;&quot;/&gt;<o:p></o:p></span></p>

<p class=MsoListParagraph style='text-autospace:none'><span style='font-size:
10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; &lt;param
name=&quot;extension&quot; value=&quot;1001&quot;/&gt;<o:p></o:p></span></p>

<p class=MsoListParagraph style='text-autospace:none'><span style='font-size:
10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; &lt;param
name=&quot;retry-seconds&quot;
value=&quot;30&quot;/&gt;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<o:p></o:p></span></p>

<p class=MsoListParagraph><span style='font-size:10.0pt;font-family:"Courier New"'>&lt;/gateway&gt;
</span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>&nbsp;<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>Dialplan:<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&lt;extension
name=&quot;Transfer&quot;&gt;<o:p></o:p></span></p>

<p class=MsoListParagraph style='text-autospace:none'><span style='font-size:
10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition
field=&quot;destination_number&quot; expression=&quot;^2001$&quot;&gt;<o:p></o:p></span></p>

<p class=MsoListParagraph style='text-autospace:none'><span style='font-size:
10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action
application=&quot;bridge&quot; data=&quot;sofia/gateway/100001/1005&quot;/&gt;<o:p></o:p></span></p>

<p class=MsoListParagraph style='text-autospace:none'><span style='font-size:
10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/condition&gt;<o:p></o:p></span></p>

<p class=MsoListParagraph><span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
&lt;/extension&gt;</span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> <o:p></o:p></span></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

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

<p class=MsoNormal><o:p>&nbsp;</o:p></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]<o:p></o:p></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<o:p></o:p></p>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

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

<p class=MsoNormal>Suneel<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></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.  http://www.mettoni.com

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

</html>