[Freeswitch-users] Can't set up users outside of local domain...

Kin Quek kin_quek at yahoo.com
Thu Sep 11 08:28:38 PDT 2008


Hi All,
I am new to FreeSwitch so please bear with me if my question is too obvious. I set up FS in Boston and it is running fine. I want to set up a user in LA with username 1003 for example. I edited default.xml as below:

<include>
  <!--the domain or ip (the right hand side of the @ in the addr-->
  <domain name="$${domain}" value="12.345.67.89">
    <params>
      <param name="dial-string" value="{presence_id=${dialed_user}@${dialed_domain},transfer_fallback_extension=${dialed_user}}${sofia_contact(${dialed_domain}/${dialed_user}@${dialed_domain})}"/>
    </params>

    <variables>
      <variable name="record_stereo" value="true"/>
    </variables>

    <X-PRE-PROCESS cmd="include" data="default/*.xml"/>
  </domain>
</include>
-----------
I set up directory.xml as such:
<domain name="$${sip_profile}">
 <user id="1003">
   <params>
     <param name="password" value="1234"/>
   </params>
   <variables>
     <variable name="sip-force-contact" value="sip:1003 at 12.345.67.89"/>
   </variables>
 </user>
</domain>
----------------
My user in LA tried to register as user 1003 using X-Lite:
Username: 1003
Password: 1234
Auth username: 1003
Domain: 12.345.67.89
-------------
The remote user won't be able to register with FS. The warning messages are attached:
[Warning] sofia_reg.c: 1251 sofia_reg_parse_auth() can't find user [1003 at 12.345.67.89]
You must define a domain called '12.345.67.89' in your directory and add a user with the id="1003" attribute and you must configure your device to use the proper domain in it's authentication on credentials.
-------------
I tried different attempts including hard code the domain name value in default.xml and the error message remained the same. I know this is possible because my user at LA set up something similar with Asterisk and we have used it many times. I think it should be possible on FS as well.

Any help well be highly appreciated! Thanks in advance.

Best regards,

Kin Quek



       
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080911/61e9d3d4/attachment-0002.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: domain undefined.jpg
Type: image/jpeg
Size: 63435 bytes
Desc: 2854612743-domain undefined.jpg
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080911/61e9d3d4/attachment-0002.jpg 


More information about the FreeSWITCH-users mailing list