I am trying to send a different hangup cause to the caller party. In the Dial plan i am using this public xml file (the asterisks "*" in the code are digits ommited):
 
<extension name="lcr_******">
   <condition field="network_addr" expression="***.***.***.***"/>
   <condition field="destination_number" expression="^5***#(\d+)$">
        <action application="set" data="absolute_codec_string=G729"/>
        <action application="set" data="continue_on_fail=yes"/>
        <action application="set" data="sip_ignore_remote_cause=true"/>
        <action application="set" data="hangup_after_bridge=true"/>
        <action application="bridge" data="sofia/gateway/co*****/5***#$1"/>
        <action application="hangup" data="NORMAL_CIRCUIT_CONGESTION"/>
   </condition>
</extension>
 
when a call is made, the dialplan shows me that all is ok
This is the Freeswitch server A who play the normal circuit congestion dialplan:
 

2011-12-13 12:59:37.390188 [NOTICE] switch_channel.c:907 New Channel sofia/external/***********@109.***.28.*** [5a591069-4d76-45c9-93ea-f38e85d17aa2]
2011-12-13 12:59:37.390188 [INFO] mod_dialplan_xml.c:336 Processing *******<********>->5*******#21********** in context public
2011-12-13 12:59:37.390188 [NOTICE] switch_channel.c:907 New Channel sofia/external/5*******#21********** [11fc5e4e-045f-4ce9-81ec-5049c248cb34]
2011-12-13 12:59:37.414191 [NOTICE] sofia.c:5872 Hangup sofia/external/5*******#21********** [CS_CONSUME_MEDIA] [CALL_REJECTED]
2011-12-13 12:59:37.426196 [INFO] mod_dptools.c:2696 Originate Failed.  Cause: CALL_REJECTED
2011-12-13 12:59:37.426196 [NOTICE] mod_dptools.c:916 Hangup sofia/external/***********@109.***.28.*** [CS_EXECUTE] [NORMAL_CIRCUIT_CONGESTION]
2011-12-13 12:59:37.426196 [NOTICE] switch_core_session.c:1353 Session 304414 (sofia/external/***********@109.***.28.***) Ended
2011-12-13 12:59:37.426196 [NOTICE] switch_core_session.c:1355 Close Channel sofia/external/***********@109.***.28.*** [CS_DESTROY]
2011-12-13 12:59:37.426196 [NOTICE] switch_core_session.c:1353 Session 304415 (sofia/external/5*******#21**********) Ended
2011-12-13 12:59:37.426196 [NOTICE] switch_core_session.c:1355 Close Channel sofia/external/5*******#21********** [CS_DESTROY]
 
 
And this is the other freeswitch i am using for testing pourposes to check if the cause code is the right one:
 
2011-12-13 16:05:13.556630 [NOTICE] switch_channel.c:779 New Channel sofia/external/***********@109.***.28.*** [8a188730-f366-4a49-964e-e4e66fae973c]
2011-12-13 16:05:13.560645 [INFO] mod_dialplan_xml.c:331 Processing 1000 <1000>->500321261452652 in context public
2011-12-13 16:05:13.560645 [NOTICE] switch_channel.c:779 New Channel sofia/external/5*******#21********** [e03f896f-f935-42f9-b83f-49a30de216e7]
2011-12-13 16:05:13.600636 [NOTICE] sofia.c:5051 Hangup sofia/external/5*******#21********** [CS_CONSUME_MEDIA] [NORMAL_TEMPORARY_FAILURE]
2011-12-13 16:05:13.604647 [INFO] mod_dptools.c:2393 Originate Failed.  Cause: NORMAL_TEMPORARY_FAILURE
2011-12-13 16:05:13.604647 [NOTICE] mod_dptools.c:2456 Hangup sofia/external/***********@109.***.28.*** [CS_EXECUTE] [NORMAL_TEMPORARY_FAILURE]
2011-12-13 16:05:13.604647 [NOTICE] switch_core_session.c:1228 Session 108345 (sofia/external/***********@109.***.28.***) Ended
2011-12-13 16:05:13.604647 [NOTICE] switch_core_session.c:1230 Close Channel sofia/external/***********@109.***.28.*** [CS_DESTROY]
2011-12-13 16:05:13.604647 [NOTICE] switch_core_session.c:1228 Session 108346 (sofia/external/5*******#21**********) Ended
2011-12-13 16:05:13.604647 [NOTICE] switch_core_session.c:1230 Close Channel sofia/external/5*******#21********** [CS_DESTROY]
 
For me to receive a 34 or a 41 it is not a problem, but for my client they can manage 34 but not 41 error to redirect traffic to other provider.
 
 
Can someone help me with this issue?
 
I beg you pardon for my english
 

Josue Diaz Cruz

Departamento Tecnico y Soporte

jdiaz@coinfru.com