[Freeswitch-users] Trunk without authentication configuration
Michael Collins
msc at freeswitch.org
Fri Jul 29 21:33:41 MSD 2011
Srini,
I think you misunderstood what my suggestion. What you've got in your
gateway definition are parameters that belong in the SIP profile. Again,
look in conf/sip_profiles/external/example.xml. Don't add any parameters
that are not already in that file. A gateway definition should be no more
complicated than this:
<include>
<gateway name="custom_carrier">
<param name="username" value="my_username"/>
<param name="realm" value="target_realm"/>
<param name="password" value="my_password"/>
<param name="register" value="false"/>
</gateway>
</include>
Also, when doing a sip trace, simply do this:
sofia global siptrace on
If you do that sofialoglevel stuff you'll end up with way more information
than you need.
-MC
On Fri, Jul 29, 2011 at 10:19 AM, Srinivasan Krishnamurthy <
skrishnamurthy at attinteractive.com> wrote:
> Now my sip_profiles\external\custom_carrier.xml looks like****
>
> ** **
>
> <include>****
>
> <gateway name="custom_carrier">****
>
> <param name="auth-calls" value="false"/>**
> **
>
> <param name="apply-outbound-acl"
> value="custom_carrier"/>****
>
> <param name="apply-inbound-acl"
> value="custom_carrier"/> ****
>
> </gateway>****
>
> </include>****
>
> ** **
>
> I have restarted FS. Enabled sofia log in debug “sofia tracelevel 6’ and
> sip trace is on too.****
>
> Refer to complete log @ http://pastebin.freeswitch.org/16918****
>
> ** **
>
> 2011-07-29 10:00:31.372738 [ERR] mod_sofia.c:3492 Invalid Gateway****
>
> 2011-07-29 10:00:31.372738 [NOTICE] mod_sofia.c:3779 Close Channel N/A
> [CS_NEW]****
>
> 2011-07-29 10:00:31.372738 [DEBUG] switch_core_state_machine.c:428 ()
> Running State Change CS_DESTROY****
>
> 2011-07-29 10:00:31.372738 [DEBUG] switch_core_state_machine.c:438 (N/A)
> State DESTROY****
>
> 2011-07-29 10:00:31.372738 [DEBUG] mod_sofia.c:350 N/A SOFIA DESTROY****
>
> 2011-07-29 10:00:31.372738 [DEBUG] switch_core_state_machine.c:438 (N/A)
> State DESTROY going to sleep****
>
> 2011-07-29 10:00:31.372738 [ERR] switch_ivr_originate.c:2493 Cannot create
> outgoing channel of type [sofia] cause: [INVALID_NUMBER_FORMAT]****
>
> ** **
>
> Regards****
>
> Srini****
>
> ** **
>
> *From:* freeswitch-users-bounces at lists.freeswitch.org [mailto:
> freeswitch-users-bounces at lists.freeswitch.org] *On Behalf Of *Brad Mina
> *Sent:* Thursday, July 28, 2011 7:33 PM
> *To:* FreeSWITCH Users Help
> *Subject:* Re: [Freeswitch-users] Trunk without authentication
> configuration****
>
> ** **
>
> Might want to doublecheck the format your carrier accepts for outgoing
> calls.****
>
> ** **
>
> Also, attatch a full siptrace with your debug log, that helps a lot.
>
> freeswitch> sofia profile external siptrace on****
>
> On Thu, Jul 28, 2011 at 5:58 PM, Dmitry Saratsky <freeswitch at simpot.com>
> wrote:****
>
> Did you restarted FS after that change? Or you only have reloaded xmls???*
> ***
>
>
> -----Original Message-----
> From: freeswitch-users-bounces at lists.freeswitch.org
> [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of
> Srinivasan Krishnamurthy****
>
> Sent: 29 Jul 2011 00:55****
>
> To: FreeSWITCH Users Help
> Subject: Re: [Freeswitch-users] Trunk without authentication configuration
>
> Thanks for your suggestion. I tried but got Invalid gateway err!!!
>
>
> ----------------------------------------------------------------------------
> -
> EXECUTE sofia/internal/1001 at 10.10.2.3:5070
> bridge(sofia/gateway/xxx.xxx.xxx.xxx/14152484142)
> 2011-07-28 14:48:39.163987 [ERR] mod_sofia.c:3492 Invalid Gateway
> 2011-07-28 14:48:39.163987 [NOTICE] mod_sofia.c:3779 Close Channel N/A
> [CS_NEW]
> 2011-07-28 14:48:39.163987 [DEBUG] switch_core_state_machine.c:428 ()
> Running State Change CS_DESTROY
> 2011-07-28 14:48:39.163987 [DEBUG] switch_core_state_machine.c:438 (N/A)
> State DESTROY
> 2011-07-28 14:48:39.163987 [DEBUG] mod_sofia.c:350 N/A SOFIA DESTROY
> 2011-07-28 14:48:39.163987 [DEBUG] switch_core_state_machine.c:438 (N/A)
> State DESTROY going to sleep
> 2011-07-28 14:48:39.163987 [ERR] switch_ivr_originate.c:2493 Cannot create
> outgoing channel of type [sofia] cause: [INVALID_NUMBER_FORMAT]
> 2011-07-28 14:48:39.163987 [DEBUG] switch_ivr_originate.c:3308 Originate
> Resulted in Error Cause: 28 [INVALID_NUMBER_FORMAT]
> 2011-07-28 14:48:39.163987 [INFO] mod_dptools.c:2356 Originate Failed.
> Cause: INVALID_NUMBER_FORMAT
>
> ----------------------------------------------------------------------------
> ---
> Regards
> Srini
>
>
> -----Original Message-----
> From: freeswitch-users-bounces at lists.freeswitch.org
> [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Dmitry
> Saratsky
> Sent: Thursday, July 28, 2011 2:23 PM
> To: FreeSWITCH Users Help
> Subject: Re: [Freeswitch-users] Trunk without authentication configuration
>
> I think you should try to change "custom_carrier" under dialplan and
> sip_profile to "xxx.xxx.xxx.xxx":
>
>
> <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/xxx.xxx.xxx.xxx/$1"/>
> </condition>
> </extension>
> </include>
>
> Created sip_profiles\external\custom_carrier.xml
> <include>
> <gateway name="xxx.xxx.xxx.xxx">
> <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>
>
>
> Regards,
> Dmitry.
>
> -----Original Message-----
> From: freeswitch-users-bounces at lists.freeswitch.org
> [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of
> Srinivasan Krishnamurthy
> Sent: 28 Jul 2011 20:53
> To: FreeSWITCH Users Help
> Subject: [Freeswitch-users] 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
> l
>
> 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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
> _______________________________________________
> Join us at ClueCon 2011, Aug 9-11, Chicago
> http://www.cluecon.com 877-7-4ACLUE
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
> _______________________________________________
> Join us at ClueCon 2011, Aug 9-11, Chicago
> http://www.cluecon.com 877-7-4ACLUE
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org****
>
> ** **
>
> _______________________________________________
> Join us at ClueCon 2011, Aug 9-11, Chicago
> http://www.cluecon.com 877-7-4ACLUE
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110729/7d7f1740/attachment-0001.html
More information about the FreeSWITCH-users
mailing list