<html><head><base href="x-msg://383/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">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="Apple-interchange-newline"><blockquote type="cite"><div class="hmmessage" 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="Apple-tab-span" style="white-space: pre; ">        </span>"<domain name=\"10.0.0.124\">"+</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>"<user id=\"test\">"+<span class="Apple-tab-span" style="white-space: pre; ">        </span></div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>"<gateways>"+</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>"<gateway name=\"MyGW\">"+</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span><span class="Apple-converted-space"> </span>" <param name=\"username\" value=\"234wf423\"/>"+</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span><span class="Apple-converted-space"> </span> "<param name=\"password\" value=\"pwdpwd\"/>"+</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span><span class="Apple-converted-space"> </span> "<param name=\"realm\" value=\"testvoip.com\"/>"+</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span><span class="Apple-converted-space"> </span> "<param name=\"proxy\" value=\"my.provider.com\"/>"+</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span><span class="Apple-converted-space"> </span> "<param name=\"register\" value=\"true\"/>"+</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>"</gateway>"+</div><div> "</gateways>"+</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>"<params>"+</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>"<param name=\"password\" value=\"1234\"/>"+</div><div><span class="Apple-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="Apple-tab-span" style="white-space: pre; ">        </span>"</params>"+</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span></div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>"<variables>"+</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span><span class="Apple-converted-space"> </span>"<variable name=\"register-gateway\" value=\"MyGW\"/>"+</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span></div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>"<variable name=\"accountcode\" value=\"test\"/>"+</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>"<variable name=\"user_context\" value=\"mycontext\"/>"+</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>"<variable name=\"effective_caller_id_name\" value=\"Test User\"/>"+</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>"<variable name=\"effective_caller_id_number\" value=\"1234\"/>"+</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>"</variables>"+</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>"</user>"+</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>"</domain>"+</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>"</section>"+</div><div><span class="Apple-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="Apple-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" target="_new">even when you’re not signed in.</a><span class="Apple-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></body></html>