<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<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="Apple-tab-span" style="white-space:pre">        </span>"&lt;domain name=\"10.0.0.124\"&gt;"+</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>"&lt;user id=\"test\"&gt;"+<span class="Apple-tab-span" style="white-space:pre">        </span></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>"&lt;gateways&gt;"+</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>"&lt;gateway name=\"MyGW\"&gt;"+</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> " &lt;param name=\"username\" value=\"234wf423\"/&gt;"+</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> &nbsp;"&lt;param name=\"password\" value=\"pwdpwd\"/&gt;"+</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> &nbsp;"&lt;param name=\"realm\" value=\"testvoip.com\"/&gt;"+</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> &nbsp;"&lt;param name=\"proxy\" value=\"my.provider.com\"/&gt;"+</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> &nbsp;"&lt;param name=\"register\" value=\"true\"/&gt;"+</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>"&lt;/gateway&gt;"+</div><div>&nbsp;&nbsp; &nbsp; "&lt;/gateways&gt;"+</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>"&lt;params&gt;"+</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>"&lt;param name=\"password\" value=\"1234\"/&gt;"+</div><div><span class="Apple-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="Apple-tab-span" style="white-space:pre">        </span>"&lt;/params&gt;"+</div><div><span class="Apple-tab-span" style="white-space:pre">        </span></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>"&lt;variables&gt;"+</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> "&lt;variable name=\"register-gateway\" value=\"MyGW\"/&gt;"+</div><div><span class="Apple-tab-span" style="white-space:pre">        </span></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>"&lt;variable name=\"accountcode\" value=\"test\"/&gt;"+</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>"&lt;variable name=\"user_context\" value=\"mycontext\"/&gt;"+</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>"&lt;variable name=\"effective_caller_id_name\" value=\"Test User\"/&gt;"+</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>"&lt;variable name=\"effective_caller_id_number\" value=\"1234\"/&gt;"+</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>"&lt;/variables&gt;"+</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>"&lt;/user&gt;"+</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>"&lt;/domain&gt;"+</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>"&lt;/section&gt;"+</div><div><span class="Apple-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— <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></body>
</html>