<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) 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> " <param name=\"username\" value=\"234wf423\"/>"+</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> "<param name=\"password\" value=\"pwdpwd\"/>"+</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> "<param name=\"realm\" value=\"testvoip.com\"/>"+</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> "<param name=\"proxy\" value=\"my.provider.com\"/>"+</div><div><span class="Apple-tab-span" style="white-space:pre">        </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> "<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— <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>