Srini,<div><br></div><div>I think you misunderstood what my suggestion. What you&#39;ve got in your gateway definition are parameters that belong in the SIP profile. Again, look in conf/sip_profiles/external/example.xml. Don&#39;t add any parameters that are not already in that file. A gateway definition should be no more complicated than this:</div>
<div><br></div><div><p class="MsoNormal"></p><p class="MsoNormal"><span class="Apple-style-span" style="font-size: 15px;"><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">&lt;include&gt;</font></span></p>
<p class="MsoNormal"><span class="Apple-style-span" style="font-size: 15px;"><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">  &lt;gateway name=&quot;custom_carrier&quot;&gt;</font></span></p><p class="MsoNormal">
<span class="Apple-style-span" style="font-size: 15px; "><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">    &lt;param name=&quot;username&quot; value=&quot;my_username&quot;/&gt;</font></span></p><p class="MsoNormal">
<span class="Apple-style-span" style="font-size: 15px;"><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">    &lt;param name=&quot;realm&quot; value=&quot;target_realm&quot;/&gt;</font></span></p><p></p>
<p class="MsoNormal"><span class="Apple-style-span" style="font-size: 15px;"><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">    &lt;param name=&quot;password&quot; value=&quot;my_password&quot;/&gt;</font></span></p>
<p class="MsoNormal"><span class="Apple-style-span" style="font-size: 15px; "><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">    &lt;param name=&quot;register&quot; value=&quot;false&quot;/&gt;</font></span></p>
</div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">  &lt;/gateway&gt;</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">&lt;/include&gt;</font></div><div>
<br></div><div>Also, when doing a sip trace, simply do this:</div><div>sofia global siptrace on</div><div><br></div><div>If you do that sofialoglevel stuff you&#39;ll end up with way more information than you need.</div><div>
<br></div><div>-MC</div><div><br><div class="gmail_quote">On Fri, Jul 29, 2011 at 10:19 AM, Srinivasan Krishnamurthy <span dir="ltr">&lt;<a href="mailto:skrishnamurthy@attinteractive.com">skrishnamurthy@attinteractive.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;color:black">Now my </span><span style="color:black">sip_profiles\external\custom_carrier.xml looks like</span><span style="font-size:11.0pt;color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:black"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:black">&lt;include&gt;<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:black">                &lt;gateway name=&quot;custom_carrier&quot;&gt;<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:black">                                &lt;param name=&quot;auth-calls&quot; value=&quot;false&quot;/&gt;<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:black">                                &lt;param name=&quot;apply-outbound-acl&quot; value=&quot;custom_carrier&quot;/&gt;<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:black">                                &lt;param name=&quot;apply-inbound-acl&quot; value=&quot;custom_carrier&quot;/&gt;                  <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:black">                &lt;/gateway&gt;<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:black">&lt;/include&gt;<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:black"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:black">I have restarted FS.  Enabled sofia log in debug “sofia tracelevel 6’ and sip trace is on too.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:black">Refer to complete log @ <a href="http://pastebin.freeswitch.org/16918" target="_blank"><span style="color:black">http://pastebin.freeswitch.org/16918</span></a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:red">2011-07-29 10:00:31.372738 [ERR] mod_sofia.c:3492 Invalid Gateway<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:black">2011-07-29 10:00:31.372738 [NOTICE] mod_sofia.c:3779 Close Channel N/A [CS_NEW]<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:black">2011-07-29 10:00:31.372738 [DEBUG] switch_core_state_machine.c:428 () Running State Change CS_DESTROY<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:black">2011-07-29 10:00:31.372738 [DEBUG] switch_core_state_machine.c:438 (N/A) State DESTROY<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:black">2011-07-29 10:00:31.372738 [DEBUG] mod_sofia.c:350 N/A SOFIA DESTROY<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:black">2011-07-29 10:00:31.372738 [DEBUG] switch_core_state_machine.c:438 (N/A) State DESTROY going to sleep<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:red">2011-07-29 10:00:31.372738 [ERR] switch_ivr_originate.c:2493 Cannot create outgoing channel of type [sofia] cause: [INVALID_NUMBER_FORMAT]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Regards<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Srini<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><u></u> <u></u></span></p><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt"> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On Behalf Of </b>Brad Mina<br>
<b>Sent:</b> Thursday, July 28, 2011 7:33 PM<br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> Re: [Freeswitch-users] Trunk without authentication configuration<u></u><u></u></span></p></div><p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Might want to doublecheck the format your carrier accepts for outgoing calls.<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal" style="margin-bottom:12.0pt">
Also, attatch a full siptrace with your debug log, that helps a lot.<br><br>freeswitch&gt; sofia profile external siptrace on<u></u><u></u></p><div><p class="MsoNormal">On Thu, Jul 28, 2011 at 5:58 PM, Dmitry Saratsky &lt;<a href="mailto:freeswitch@simpot.com" target="_blank">freeswitch@simpot.com</a>&gt; wrote:<u></u><u></u></p>
<p class="MsoNormal">Did you restarted FS after that change? Or you only have reloaded xmls???<u></u><u></u></p><div><p class="MsoNormal"><br>-----Original Message-----<br>From: <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a><br>
[mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] On Behalf Of<br>Srinivasan Krishnamurthy<u></u><u></u></p></div><p class="MsoNormal">
Sent: 29 Jul 2011 00:55<u></u><u></u></p><div><div><p class="MsoNormal">To: FreeSWITCH Users Help<br>Subject: Re: [Freeswitch-users] Trunk without authentication configuration<br><br>Thanks for your suggestion. I tried but got Invalid gateway err!!!<br>
<br>----------------------------------------------------------------------------<br>-<br>EXECUTE sofia/internal/<a href="http://1001@10.10.2.3:5070" target="_blank">1001@10.10.2.3:5070</a><br>bridge(sofia/gateway/xxx.xxx.xxx.xxx/<a href="tel:14152484142" target="_blank">14152484142</a>)<br>
2011-07-28 14:48:39.163987 [ERR] mod_sofia.c:3492 Invalid Gateway<br>2011-07-28 14:48:39.163987 [NOTICE] mod_sofia.c:3779 Close Channel N/A<br>[CS_NEW]<br>2011-07-28 14:48:39.163987 [DEBUG] switch_core_state_machine.c:428 ()<br>
Running State Change CS_DESTROY<br>2011-07-28 14:48:39.163987 [DEBUG] switch_core_state_machine.c:438 (N/A)<br>State DESTROY<br>2011-07-28 14:48:39.163987 [DEBUG] mod_sofia.c:350 N/A SOFIA DESTROY<br>2011-07-28 14:48:39.163987 [DEBUG] switch_core_state_machine.c:438 (N/A)<br>
State DESTROY going to sleep<br>2011-07-28 14:48:39.163987 [ERR] switch_ivr_originate.c:2493 Cannot create<br>outgoing channel of type [sofia] cause: [INVALID_NUMBER_FORMAT]<br>2011-07-28 14:48:39.163987 [DEBUG] switch_ivr_originate.c:3308 Originate<br>
Resulted in Error Cause: 28 [INVALID_NUMBER_FORMAT]<br>2011-07-28 14:48:39.163987 [INFO] mod_dptools.c:2356 Originate Failed.<br>Cause: INVALID_NUMBER_FORMAT<br>----------------------------------------------------------------------------<br>
---<br>Regards<br>Srini<br><br><br>-----Original Message-----<br>From: <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a><br>[mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] On Behalf Of Dmitry<br>
Saratsky<br>Sent: Thursday, July 28, 2011 2:23 PM<br>To: FreeSWITCH Users Help<br>Subject: Re: [Freeswitch-users] Trunk without authentication configuration<br><br>I think you should try to change &quot;custom_carrier&quot; under dialplan and<br>
sip_profile to &quot;xxx.xxx.xxx.xxx&quot;:<br><br><br>  &lt;list name=&quot;custom_carrier&quot; default=&quot;deny&quot;&gt;<br>    &lt;node type=&quot;allow&quot; cidr=xxx.xxx.xxx.xxx/32&quot;/&gt;<br>  &lt;/list&gt;<br>
In acl.conf.xml<br><br>Created dialplan\default\01_custom_carrier.xml file as &lt;include&gt;<br>&lt;!-- Dial any 10 digit number 1(2223334444) here --&gt;<br>       &lt;extension name=&quot;Dial Out Custom Gateway&quot;&gt;<br>
               &lt;condition field=&quot;destination_number&quot;<br>expression=&quot;^9(1\d{10})$&quot;&gt;<br>                       &lt;action application=&quot;bridge&quot;<br>data=&quot;sofia/gateway/xxx.xxx.xxx.xxx/$1&quot;/&gt;<br>
               &lt;/condition&gt;<br>       &lt;/extension&gt;<br>&lt;/include&gt;<br><br>Created sip_profiles\external\custom_carrier.xml<br>&lt;include&gt;<br>       &lt;gateway name=&quot;xxx.xxx.xxx.xxx&quot;&gt;<br>               &lt;param name=&quot;username&quot; value=&quot;anything&quot;/&gt;<br>
               &lt;param name=&quot;password&quot; value=&quot;anything&quot;/&gt;<br>               &lt;param name=&quot;auth-calls&quot; value=&quot;false&quot;/&gt;<br>               &lt;param name=&quot;apply-outbound-acl&quot; value=&quot;custom_carrier&quot;/&gt;<br>
               &lt;param name=&quot;apply-inbound-acl&quot; value=&quot;custom_carrier&quot;/&gt;<br><br>               &lt;param name=&quot;register&quot; value=&quot;false&quot;/&gt;<br>       &lt;/gateway&gt;<br>&lt;/include&gt;<br>
<br><br>Regards,<br>Dmitry.<br><br>-----Original Message-----<br>From: <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a><br>[mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] On Behalf Of<br>
Srinivasan Krishnamurthy<br>Sent: 28 Jul 2011 20:53<br>To: FreeSWITCH Users Help<br>Subject: [Freeswitch-users] Trunk without authentication configuration<br><br>I have configured a new gateway for outbound calls from FS as<br>
<br>  &lt;list name=&quot;custom_carrier&quot; default=&quot;deny&quot;&gt;<br>    &lt;node type=&quot;allow&quot; cidr=xxx.xxx.xxx.xxx/32&quot;/&gt;<br>  &lt;/list&gt;<br>In acl.conf.xml<br><br>Created dialplan\default\01_custom_carrier.xml file as &lt;include&gt;<br>
&lt;!-- Dial any 10 digit number 1(2223334444) here --&gt;<br>       &lt;extension name=&quot;Dial Out Custom Gateway&quot;&gt;<br>               &lt;condition field=&quot;destination_number&quot;<br>expression=&quot;^9(1\d{10})$&quot;&gt;<br>
                       &lt;action application=&quot;bridge&quot;<br>data=&quot;sofia/gateway/custom_carrier/$1&quot;/&gt;<br>               &lt;/condition&gt;<br>       &lt;/extension&gt;<br>&lt;/include&gt;<br><br>Created sip_profiles\external\custom_carrier.xml<br>
&lt;include&gt;<br>       &lt;gateway name=&quot;custom_carrier&quot;&gt;<br>               &lt;param name=&quot;username&quot; value=&quot;anything&quot;/&gt;<br>               &lt;param name=&quot;password&quot; value=&quot;anything&quot;/&gt;<br>
               &lt;param name=&quot;auth-calls&quot; value=&quot;false&quot;/&gt;<br>               &lt;param name=&quot;apply-outbound-acl&quot; value=&quot;custom_carrier&quot;/&gt;<br>               &lt;param name=&quot;apply-inbound-acl&quot; value=&quot;custom_carrier&quot;/&gt;<br>
<br>               &lt;param name=&quot;register&quot; value=&quot;false&quot;/&gt;<br>       &lt;/gateway&gt;<br>&lt;/include&gt;<br><br>When I make an outbound call from registered extension (1001) xlite I get<br>the following error. (I also tried using SJ phone)<br>
<br>2011-07-28 10:10:24.388677 [DEBUG] sofia.c:4200 Channel<br>sofia/external/<a href="tel:14152484142" target="_blank">14152484142</a> entering state [terminated][503]<br>2011-07-28 10:10:24.388677 [NOTICE] sofia.c:4836 Hangup<br>
sofia/external/<a href="tel:14152484142" target="_blank">14152484142</a> [CS_CONSUME_MEDIA] [NORMAL_TEMPORARY_FAILURE]<br>2011-07-28 10:10:24.388677 [DEBUG] switch_channel.c:2145 Send signal<br>sofia/external/<a href="tel:14152484142" target="_blank">14152484142</a> [KILL]<br>
2011-07-28 10:10:24.388677 [DEBUG] switch_core_session.c:1022 Send signal<br>sofia/external/<a href="tel:14152484142" target="_blank">14152484142</a> [BREAK]<br>2011-07-28 10:10:24.388677 [DEBUG] switch_core_state_machine.c:314<br>
(sofia/external/<a href="tel:14152484142" target="_blank">14152484142</a>) Running State Change CS_HANGUP<br>2011-07-28 10:10:24.388677 [DEBUG] switch_core_state_machine.c:498<br>(sofia/external/<a href="tel:14152484142" target="_blank">14152484142</a>) State HANGUP<br>
2011-07-28 10:10:24.388677 [DEBUG] mod_sofia.c:435<br>sofia/external/<a href="tel:14152484142" target="_blank">14152484142</a> Overriding SIP cause 503 with 503 from the other<br>leg<br><br>I have attached the complete log too.<br>
<br>Iam a new FC users. I have referred to the following thread<br><a href="http://lists.freeswitch.org/pipermail/freeswitch-users/2011-March/070294.htm" target="_blank">http://lists.freeswitch.org/pipermail/freeswitch-users/2011-March/070294.htm</a><br>
l<br><br>and also read the section &quot;Connecting to the world with gateways&quot; in<br>FreeSwitch book several times.<br><br>Any help would be appreciated.<br><br>Note: Iam able to make outbond calls from softphone through the trunk<br>
without FS.<br><br>Srini<br><br><br>_______________________________________________<br>Join us at ClueCon 2011, Aug 9-11, Chicago<br><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br><br>_______________________________________________<br>Join us at ClueCon 2011, Aug 9-11, Chicago<br><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br><br>FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br><br>_______________________________________________<br>Join us at ClueCon 2011, Aug 9-11, Chicago<br><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br><br>FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><u></u><u></u></p>
</div></div></div><p class="MsoNormal"><u></u> <u></u></p></div></div></div><br>_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>