<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi,<div>FS was sending (while loading modules) such request: &nbsp;<span class="Apple-style-span" style="font-family: monospace; line-height: 14px; white-space: pre; ">[purpose] =&gt; gateways </span></div><div><div>But I was not &nbsp;aware of that...so that I am replying FS with my Gateways now...</div><div><br></div><div>But now I am wondering...suppose I have 1000 domains and two different gateways per domain (2K Gateways)&nbsp;</div><div>Should I reply FS request with such huge XML on startup?</div><div><br></div><div><br></div><div>Thanks for your backings</div><div><br></div><div>Paulo</div><div><hr id="stopSpelling">From: brian@freeswitch.org<br>Date: Thu, 17 Dec 2009 11:44:15 -0600<br>To: freeswitch-users@lists.freeswitch.org<br>Subject: Re: [Freeswitch-users] [freeswitch-users] Gateway in Directory        Loaded via xml curl<br><br>

<base>I'm going to guess you removed these lines from your profile:<div><br></div><div><div>&nbsp;&nbsp;&lt;domains&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp;&nbsp; &nbsp;&lt;domain name="all" alias="false" parse="true"/&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp;&nbsp;&lt;/domains&gt;</div><div><br></div><div>parse=true causes the profile to parse the domain looking for gateways and register them..</div><div><br></div><div>/b</div><div><br></div><div><div>On Dec 17, 2009, at 11:18 AM, Paulo Vicentini wrote:</div><br class="ecxApple-interchange-newline"><blockquote><div class="ecxhmmessage" style="font-size:10pt;font-family:Verdana"><div>Hi,</div><div>I am trying to define Gateways (for inbound and outbound calls via SIP provider) within Directory (under "internal" sample profile)&nbsp;using XML CURL</div><div>But I am getting this warning:</div><div><div>2009-12-17 14:42:03.294519 [WARNING] sofia_reg.c:2115 Gateway 'MyGW' not found.</div><div><br></div><div>And</div><div><br></div><div><div>sofia status gateway MyGW</div><div>API CALL [sofia(status gateway MyGW)] output:</div><div>Invalid Gateway!</div></div><div><br></div><div><br></div><div>This is my configuration (overlook language details )</div><div><br></div><div><div>"&lt;section name=\"directory\"&gt;"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"&lt;domain name=\"10.0.0.124\"&gt;"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"&lt;user id=\"test\"&gt;"+<span class="ecxApple-tab-span" style="white-space:pre">        </span></div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"&lt;gateways&gt;"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"&lt;gateway name=\"MyGW\"&gt;"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span><span class="ecxApple-converted-space">&nbsp;</span>" &lt;param name=\"username\" value=\"234wf423\"/&gt;"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span><span class="ecxApple-converted-space">&nbsp;</span>&nbsp;"&lt;param name=\"password\" value=\"pwdpwd\"/&gt;"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span><span class="ecxApple-converted-space">&nbsp;</span>&nbsp;"&lt;param name=\"realm\" value=\"testvoip.com\"/&gt;"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span><span class="ecxApple-converted-space">&nbsp;</span>&nbsp;"&lt;param name=\"proxy\" value=\"my.provider.com\"/&gt;"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span><span class="ecxApple-converted-space">&nbsp;</span>&nbsp;"&lt;param name=\"register\" value=\"true\"/&gt;"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"&lt;/gateway&gt;"+</div><div>&nbsp;&nbsp; &nbsp; "&lt;/gateways&gt;"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"&lt;params&gt;"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"&lt;param name=\"password\" value=\"1234\"/&gt;"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"&lt;param name=\"dial-string\" value=\"{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}\"/&gt;"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"&lt;/params&gt;"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span></div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"&lt;variables&gt;"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span><span class="ecxApple-converted-space">&nbsp;</span>"&lt;variable name=\"register-gateway\" value=\"MyGW\"/&gt;"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span></div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"&lt;variable name=\"accountcode\" value=\"test\"/&gt;"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"&lt;variable name=\"user_context\" value=\"mycontext\"/&gt;"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"&lt;variable name=\"effective_caller_id_name\" value=\"Test User\"/&gt;"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"&lt;variable name=\"effective_caller_id_number\" value=\"1234\"/&gt;"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"&lt;/variables&gt;"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"&lt;/user&gt;"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"&lt;/domain&gt;"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"&lt;/section&gt;"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"&lt;/document&gt;";</div><div><br></div><div>User id "test" is able to register and call other internal users &nbsp;</div><div><br></div><div>In my&nbsp;sip_profiles/internal.xml I have:</div><div><br></div><div><div>&nbsp;&nbsp; &nbsp;&lt;!-- indicator to parse the directory for domains with parse="true" to get g</div><div>ateways--&gt;</div><div>&nbsp;&nbsp; &nbsp;&lt;domain name="all" parse="true"/&gt;</div><div>&nbsp;&nbsp; &nbsp;&lt;!-- indicator to parse the directory for domains with parse="true" to get g</div><div>ateways and alias every domain to this profile --&gt;</div><div>&nbsp;&nbsp; &nbsp;&lt;domain name="all" alias="true" parse="true"/&gt;</div><div><br></div></div><div><br></div><div>Can you help me with this issue?</div><div><br></div><div>Thank you</div><div>Paulo</div><div><br></div></div></div><br><hr>Keep your friends updated—<span class="ecxApple-converted-space">&nbsp;</span><a href="http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_5:092010">even when you’re not signed in.</a><span class="ecxApple-converted-space">&nbsp;</span>_______________________________________________<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">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br><a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br></div></blockquote></div><br></div></div></div>                                               <br /><hr />Windows Live:  <a href='http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_3:092010' target='_new'>Friends get your Flickr, Yelp, and Digg updates when they e-mail you.</a></body>
</html>