Hi,

 

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” .

Now when I try to originate call from CLI, it is giving me errors. Please help me in sorting this out.

 

freeswitch@ Opt330> originate sofia/external/2001@10001 9999

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

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:

-ERR NORMAL_TEMPORARY_FAILURE

2009-11-12 17:47:23.641875 [NOTICE] switch_core_session.c:1155 Session 20 (sofia/external/2001@10001) Ended

2009-11-12 17:47:23.641875 [NOTICE] switch_core_session.c:1157 Close Channel sofia/external/2001@10001 [CS_DESTROY]

 

Please find configurations as:

Gateway:

<gateway name="10001">

    <param name="username" value="1001"/>

    <param name="password" value="1234"/>

    <param name="register" value="true"/>

    <param name="register-proxy" value="<192.168.12.11>"/>

    <param name="extension" value="1001"/>

    <param name="retry-seconds" value="30"/>            

</gateway>  

Dialplan:

        <extension name="Transfer">

      <condition field="destination_number" expression="^2001$">

      <action application="bridge" data="sofia/gateway/100001/1005"/>

      </condition>

    </extension>

 

Log from FS is as follows.....

 

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

2009-11-12 17:47:23.626250 [DEBUG] mod_sofia.c:3061 (sofia/external/2001@10001) State Change CS_NEW -> CS_INIT

2009-11-12 17:47:23.626250 [DEBUG] switch_core_session.c:1000 Send signal sofia/external/2001@10001 [BREAK]

2009-11-12 17:47:23.626250 [DEBUG] switch_core_state_machine.c:306 (sofia/external/2001@10001) Running State Change CS_INIT

2009-11-12 17:47:23.626250 [DEBUG] switch_core_state_machine.c:330 (sofia/external/2001@10001) State INIT

2009-11-12 17:47:23.626250 [DEBUG] mod_sofia.c:83 sofia/external/2001@10001 SOFIA INIT

2009-11-12 17:47:23.626250 [DEBUG] mod_sofia.c:111 (sofia/external/2001@10001) State Change CS_INIT -> CS_ROUTING

2009-11-12 17:47:23.626250 [DEBUG] switch_core_session.c:1000 Send signal sofia/external/2001@10001 [BREAK]

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

2009-11-12 17:47:23.626250 [DEBUG] switch_core_state_machine.c:306 (sofia/external/2001@10001) Running State Change CS_ROUTING

2009-11-12 17:47:23.626250 [DEBUG] sofia.c:3588 Channel sofia/external/2001@10001 entering state [calling][0]

2009-11-12 17:47:23.626250 [DEBUG] sofia.c:3588 Channel sofia/external/2001@10001 entering state [terminated][503]

2009-11-12 17:47:23.626250 [DEBUG] switch_core_state_machine.c:333 (sofia/external/2001@10001) State ROUTING

2009-11-12 17:47:23.626250 [NOTICE] sofia.c:4187 Hangup sofia/external/2001@10001 [CS_ROUTING] [NORMAL_TEMPORARY_FAILURE]

2009-11-12 17:47:23.626250 [DEBUG] mod_sofia.c:130 sofia/external/2001@10001 SOFIA ROUTING

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

2009-11-12 17:47:23.626250 [DEBUG] switch_core_state_machine.c:306 (sofia/external/2001@10001) Running State Change CS_HANGUP

2009-11-12 17:47:23.626250 [DEBUG] switch_ivr_originate.c:2465 Originate Resulted in Error Cause: 41 [NORMAL_TEMPORARY_FAILURE]

2009-11-12 17:47:23.626250 [DEBUG] switch_channel.c:1896 Send signal sofia/external/2001@10001 [KILL]

2009-11-12 17:47:23.626250 [DEBUG] switch_core_session.c:1000 Send signal sofia/external/2001@10001 [BREAK]

2009-11-12 17:47:23.626250 [DEBUG] switch_core_state_machine.c:451 thread mismatch skipping state handler.

2009-11-12 17:47:23.626250 [DEBUG] switch_core_state_machine.c:478 (sofia/external/2001@10001) State HANGUP

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

2009-11-12 17:47:23.626250 [DEBUG] mod_sofia.c:361 Channel sofia/external/2001@10001 hanging up, cause: NORMAL_TEMPORARY_FAILURE

2009-11-12 17:47:23.626250 [DEBUG] switch_core_state_machine.c:46 sofia/external/2001@10001 Standard HANGUP, cause: NORMAL_TEMPORARY_FAILURE

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

2009-11-12 17:47:23.641875 [DEBUG] switch_core_state_machine.c:325 (sofia/external/2001@10001) State Change CS_HANGUP -> CS_REPORTING

2009-11-12 17:47:23.641875 [DEBUG] switch_core_session.c:1000 Send signal sofia/external/2001@10001 [BREAK]

2009-11-12 17:47:23.641875 [DEBUG] switch_core_state_machine.c:306 (sofia/external/2001@10001) Running State Change CS_REPORTING

2009-11-12 17:47:23.641875 [DEBUG] switch_core_state_machine.c:569 (sofia/external/2001@10001) State REPORTING

2009-11-12 17:47:23.641875 [DEBUG] switch_core_state_machine.c:53 sofia/external/2001@10001 Standard REPORTING, cause: NORMAL_TEMPORARY_FAILURE

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

2009-11-12 17:47:23.641875 [DEBUG] switch_core_state_machine.c:319 (sofia/external/2001@10001) State Change CS_REPORTING -> CS_DESTROY

2009-11-12 17:47:23.641875 [DEBUG] switch_core_session.c:1000 Send signal sofia/external/2001@10001 [BREAK]

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

2009-11-12 17:47:23.641875 [NOTICE] switch_core_session.c:1155 Session 20 (sofia/external/2001@10001) Ended

2009-11-12 17:47:23.641875 [NOTICE] switch_core_session.c:1157 Close Channel sofia/external/2001@10001 [CS_DESTROY]

2009-11-12 17:47:23.641875 [DEBUG] switch_core_state_machine.c:415 (sofia/external/2001@10001) Running State Change CS_DESTROY

2009-11-12 17:47:23.641875 [DEBUG] switch_core_state_machine.c:426 (sofia/external/2001@10001) State DESTROY

2009-11-12 17:47:23.641875 [DEBUG] mod_sofia.c:278 sofia/external/2001@10001 SOFIA DESTROY

2009-11-12 17:47:23.641875 [DEBUG] switch_core_state_machine.c:60 sofia/external/2001@10001 Standard DESTROY

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

 

 

 

Thanks & Regards

Suneel

 

 

*************************************************************************
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
*************************************************************************