<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: <span class="Apple-style-span" style="font-family: monospace; line-height: 14px; white-space: pre; ">[purpose] => gateways </span></div><div><div>But I was not 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) </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> <domains> </div><div> <domain name="all" alias="false" parse="true"/> </div><div> </domains></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) 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>"<section name=\"directory\">"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"<domain name=\"10.0.0.124\">"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"<user id=\"test\">"+<span class="ecxApple-tab-span" style="white-space:pre">        </span></div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"<gateways>"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"<gateway name=\"MyGW\">"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span><span class="ecxApple-converted-space"> </span>" <param name=\"username\" value=\"234wf423\"/>"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span><span class="ecxApple-converted-space"> </span> "<param name=\"password\" value=\"pwdpwd\"/>"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span><span class="ecxApple-converted-space"> </span> "<param name=\"realm\" value=\"testvoip.com\"/>"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span><span class="ecxApple-converted-space"> </span> "<param name=\"proxy\" value=\"my.provider.com\"/>"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span><span class="ecxApple-converted-space"> </span> "<param name=\"register\" value=\"true\"/>"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"</gateway>"+</div><div> "</gateways>"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"<params>"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"<param name=\"password\" value=\"1234\"/>"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"<param name=\"dial-string\" value=\"{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}\"/>"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"</params>"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span></div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"<variables>"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span><span class="ecxApple-converted-space"> </span>"<variable name=\"register-gateway\" value=\"MyGW\"/>"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span></div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"<variable name=\"accountcode\" value=\"test\"/>"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"<variable name=\"user_context\" value=\"mycontext\"/>"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"<variable name=\"effective_caller_id_name\" value=\"Test User\"/>"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"<variable name=\"effective_caller_id_number\" value=\"1234\"/>"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"</variables>"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"</user>"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"</domain>"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"</section>"+</div><div><span class="ecxApple-tab-span" style="white-space:pre">        </span>"</document>";</div><div><br></div><div>User id "test" is able to register and call other internal users </div><div><br></div><div>In my sip_profiles/internal.xml I have:</div><div><br></div><div><div> <!-- indicator to parse the directory for domains with parse="true" to get g</div><div>ateways--></div><div> <domain name="all" parse="true"/></div><div> <!-- indicator to parse the directory for domains with parse="true" to get g</div><div>ateways and alias every domain to this profile --></div><div> <domain name="all" alias="true" parse="true"/></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"> </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"> </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>