Trunk without authentication configuration
I have configured a new gateway for outbound calls from FS as <list name="custom_carrier" default="deny"> <node type="allow" cidr=xxx.xxx.xxx.xxx/32"/> </list> In acl.conf.xml Created dialplan\default\01_custom_carrier.xml file as <include> <!-- Dial any 10 digit number 1(2223334444) here --> <extension name="Dial Out Custom Gateway"> <condition field="destination_number" expression="^9(1\d{10})$"> <action application="bridge" data="sofia/gateway/custom_carrier/$1"/> </condition> </extension> </include> Created sip_profiles\external\custom_carrier.xml <include> <gateway name="custom_carrier"> <param name="username" value="anything"/> <param name="password" value="anything"/> <param name="auth-calls" value="false"/> <param name="apply-outbound-acl" value="custom_carrier"/> <param name="apply-inbound-acl" value="custom_carrier"/> <param name="register" value="false"/> </gateway> </include> When I make an outbound call from registered extension (1001) xlite I get the following error. (I also tried using SJ phone) 2011-07-28 10:10:24.388677 [DEBUG] sofia.c:4200 Channel sofia/external/14152484142 entering state [terminated][503] 2011-07-28 10:10:24.388677 [NOTICE] sofia.c:4836 Hangup sofia/external/14152484142 [CS_CONSUME_MEDIA] [NORMAL_TEMPORARY_FAILURE] 2011-07-28 10:10:24.388677 [DEBUG] switch_channel.c:2145 Send signal sofia/external/14152484142 [KILL] 2011-07-28 10:10:24.388677 [DEBUG] switch_core_session.c:1022 Send signal sofia/external/14152484142 [BREAK] 2011-07-28 10:10:24.388677 [DEBUG] switch_core_state_machine.c:314 (sofia/external/14152484142) Running State Change CS_HANGUP 2011-07-28 10:10:24.388677 [DEBUG] switch_core_state_machine.c:498 (sofia/external/14152484142) State HANGUP 2011-07-28 10:10:24.388677 [DEBUG] mod_sofia.c:435 sofia/external/14152484142 Overriding SIP cause 503 with 503 from the other leg I have attached the complete log too. Iam a new FC users. I have referred to the following thread http://lists.freeswitch.org/pipermail/freeswitch-users/2011-March/070294.htm... and also read the section "Connecting to the world with gateways" in FreeSwitch book several times. Any help would be appreciated. Note: Iam able to make outbond calls from softphone through the trunk without FS. Srini
I recommend two things: #1 turn on siptrace at fs_cli: sofia global siptrace on #2 put the log into pastebin.freeswitch.org and use "FreeSWITCH Log" as the syntax highlighting Put the pastebin link in this email thread. It looks to me like you may just not be supplying the correct credentials to the carrier, but you won't know unless you look at the sip trace to see what, exactly, is happening. -MC On Thu, Jul 28, 2011 at 11:10 AM, Srinivasan Krishnamurthy < aksrini@hotmail.com> wrote:
I have configured a new gateway for outbound calls from FS as
**** **
<list name="custom_carrier" default="deny">
<node type="allow" cidr=xxx.xxx.xxx.xxx/32"/>
</list>
In acl.conf.xml
** **
Created dialplan\default\01_custom_carrier.xml file as <include>
<!-- Dial any 10 digit number 1(2223334444) here -->
<extension name="Dial Out Custom Gateway">
<condition field="destination_number" expression="^9(1\d{10})$">
<action application="bridge" data="sofia/gateway/custom_carrier/$1"/>
</condition>
</extension>
</include>
** **
Created sip_profiles\external\custom_carrier.xml
<include>
<gateway name="custom_carrier">
<param name="username" value="anything"/>
<param name="password" value="anything"/>
<param name="auth-calls" value="false"/>
<param name="apply-outbound-acl" value="custom_carrier"/>
<param name="apply-inbound-acl" value="custom_carrier"/>
<param name="register" value="false"/>
</gateway>
</include>
** **
When I make an outbound call from registered extension (1001) xlite I get the following error. (I also tried using SJ phone)
** **
2011-07-28 10:10:24.388677 [DEBUG] sofia.c:4200 Channel sofia/external/14152484142 entering state [terminated][503]
2011-07-28 10:10:24.388677 [NOTICE] sofia.c:4836 Hangup sofia/external/14152484142 [CS_CONSUME_MEDIA] [NORMAL_TEMPORARY_FAILURE]
2011-07-28 10:10:24.388677 [DEBUG] switch_channel.c:2145 Send signal sofia/external/14152484142 [KILL]
2011-07-28 10:10:24.388677 [DEBUG] switch_core_session.c:1022 Send signal sofia/external/14152484142 [BREAK]
2011-07-28 10:10:24.388677 [DEBUG] switch_core_state_machine.c:314 (sofia/external/14152484142) Running State Change CS_HANGUP
2011-07-28 10:10:24.388677 [DEBUG] switch_core_state_machine.c:498 (sofia/external/14152484142) State HANGUP
2011-07-28 10:10:24.388677 [DEBUG] mod_sofia.c:435 sofia/external/14152484142 Overriding SIP cause 503 with 503 from the other leg
** **
I have attached the complete log too.
** **
Iam a new FC users. I have referred to the following thread http://lists.freeswitch.org/pipermail/freeswitch-users/2011-March/070294.htm...
** **
and also read the section "Connecting to the world with gateways" in FreeSwitch book several times.
** **
Any help would be appreciated.
** **
Note: Iam able to make outbond calls from softphone through the trunk without FS.
** **
Srini
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Logs are attached http://pastebin.freeswitch.org/16910 I don't see FS sending INVITE out to gateway. From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Michael Collins Sent: Thursday, July 28, 2011 12:31 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Trunk without authentication configuration I recommend two things: #1 turn on siptrace at fs_cli: sofia global siptrace on #2 put the log into pastebin.freeswitch.org<http://pastebin.freeswitch.org> and use "FreeSWITCH Log" as the syntax highlighting Put the pastebin link in this email thread. It looks to me like you may just not be supplying the correct credentials to the carrier, but you won't know unless you look at the sip trace to see what, exactly, is happening. -MC On Thu, Jul 28, 2011 at 11:10 AM, Srinivasan Krishnamurthy <aksrini@hotmail.com<mailto:aksrini@hotmail.com>> wrote: I have configured a new gateway for outbound calls from FS as <list name="custom_carrier" default="deny"> <node type="allow" cidr=xxx.xxx.xxx.xxx/32"/> </list> In acl.conf.xml Created dialplan\default\01_custom_carrier.xml file as <include> <!-- Dial any 10 digit number 1(2223334444) here --> <extension name="Dial Out Custom Gateway"> <condition field="destination_number" expression="^9(1\d{10})$"> <action application="bridge" data="sofia/gateway/custom_carrier/$1"/> </condition> </extension> </include> Created sip_profiles\external\custom_carrier.xml <include> <gateway name="custom_carrier"> <param name="username" value="anything"/> <param name="password" value="anything"/> <param name="auth-calls" value="false"/> <param name="apply-outbound-acl" value="custom_carrier"/> <param name="apply-inbound-acl" value="custom_carrier"/> <param name="register" value="false"/> </gateway> </include> When I make an outbound call from registered extension (1001) xlite I get the following error. (I also tried using SJ phone) 2011-07-28 10:10:24.388677 [DEBUG] sofia.c:4200 Channel sofia/external/14152484142 entering state [terminated][503] 2011-07-28 10:10:24.388677 [NOTICE] sofia.c:4836 Hangup sofia/external/14152484142 [CS_CONSUME_MEDIA] [NORMAL_TEMPORARY_FAILURE] 2011-07-28 10:10:24.388677 [DEBUG] switch_channel.c:2145 Send signal sofia/external/14152484142 [KILL] 2011-07-28 10:10:24.388677 [DEBUG] switch_core_session.c:1022 Send signal sofia/external/14152484142 [BREAK] 2011-07-28 10:10:24.388677 [DEBUG] switch_core_state_machine.c:314 (sofia/external/14152484142) Running State Change CS_HANGUP 2011-07-28 10:10:24.388677 [DEBUG] switch_core_state_machine.c:498 (sofia/external/14152484142) State HANGUP 2011-07-28 10:10:24.388677 [DEBUG] mod_sofia.c:435 sofia/external/14152484142 Overriding SIP cause 503 with 503 from the other leg I have attached the complete log too. Iam a new FC users. I have referred to the following thread http://lists.freeswitch.org/pipermail/freeswitch-users/2011-March/070294.htm... and also read the section "Connecting to the world with gateways" in FreeSwitch book several times. Any help would be appreciated. Note: Iam able to make outbond calls from softphone through the trunk without FS. Srini _______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On Thu, Jul 28, 2011 at 2:41 PM, Srinivasan Krishnamurthy < skrishnamurthy@attinteractive.com> wrote:
Logs are attached http://pastebin.freeswitch.org/16910****
I don’t see FS sending INVITE out to gateway.****
**
I just noticed that you have what appear to be profile parameters in your gateway config. Try a minimal gateway config. Make a copy of sip-profiles/external/example.xml and fill in only the items you absolutely need. Make sure you put these in the sip-profile (external.xml) file: <param name="auth-calls" value="false"/> <param name="apply-outbound-acl" value="custom_carrier"/> <param name="apply-inbound-acl" value="custom_carrier"/> Be sure to reloadxml and then reload mod_sofia. Try again... -MC
participants (3)
-
Michael Collins
-
Srinivasan Krishnamurthy
-
Srinivasan Krishnamurthy