[Freeswitch-users] [WARNING] sofia_reg.c:2837 Cant register a pointer.

Michael Jerris mike at jerris.com
Wed Jun 10 20:01:18 MSD 2015


Domains don't include ports

On Wednesday, June 10, 2015, Aqs Younas <aqsyounas at gmail.com> wrote:

> Hi, users.
>
> I am trying to register my softphone with freeswitch using xml_curl *(https://github.com/intralanman/fs_curl
> <https://github.com/intralanman/fs_curl>*) for fetching user's data from
> database.
>
> My freeswitch is on following instances.
>
> tcp        0      0 127.0.0.1:8021          0.0.0.0:*
> LISTEN      2247/freeswitch
> tcp        0      0 192.168.1.50:6080        0.0.0.0:*
> LISTEN      2247/freeswitch
> tcp        0      0 192.168.1.50:6060        0.0.0.0:*
> LISTEN      2247/freeswitch
> udp        0      0 192.168.1.50:6060        0.0.0.0:*
> 2247/freeswitch
> udp        0      0 192.168.1.50:6080        0.0.0.0:*
> 2247/freeswitch
>
> Since my internal profile is running on port 6060, i added following "
> 192.168.1.50:6060" as my domain in database and 192.168.1.50:6060 in my
> softphone  domain.
> When i try to register my softphone, i encounter with this error.
>
>
> *[WARNING] sofia_reg.c:2837 Cant register a pointer.*
> But if i change my domain from 192.168.1.50:6060 to 192.168.1.50 in
> database but in softphone same "192.168.1.50:6060" user is successfully
> registered.
>
> Though xml_curl response is same in both cases expect domain name.
>
> For 192.168.1.50:6060 response is*,*
>
> <?xml version="1.0" encoding="UTF-8"?>
> <document type="freeswitch/xml">
>    <section name="directory" description="FreeSWITCH Directory">
>       <domain name="192.168.1.50:6060">
>          <params>
>             <param name="default_gateway" value="errors" />
>          </params>
>          <variables />
>          <groups>
>             <group name="default">
>                <users>
>                   <user id="1000" cacheable="0" mailbox="1000">
>                      <params>
>                         <param name="password" value="1234" />
>                         <param name="vm-password" value="861000" />
>                      </params>
>                      <variables>
>                         <variable name="numbering_plan" value="US" />
>                      </variables>
>                   </user>
>                </users>
>             </group>
>          </groups>
>       </domain>
>       <domain name="192.168.1.50:6060">
>          <params />
>          <variables />
>          <groups>
>             <group name="default">
>                <users />
>             </group>
>          </groups>
>       </domain>
>    </section>
>    <!-- User is 1000 -->
>    <!-- user id is: 1 -->
>    <!-- fs_directory:119 - 8:Undefined offset: 0 -->
>    <!-- user id is: 0 -->
>    <!-- Total # of Queries Run: 28 -->
>    <!-- Estimated Execution Time Is: 0.0048508644104004 -->
> </document>
>
> For *192.168.1.50*, response is .
>
> <?xml version="1.0" encoding="UTF-8"?>
> <document type="freeswitch/xml">
>    <section name="directory" description="FreeSWITCH Directory">
>       <domain name="192.168.1.50">
>          <params>
>             <param name="default_gateway" value="errors" />
>          </params>
>          <variables />
>          <groups>
>             <group name="default">
>                <users>
>                   <user id="1000" cacheable="0" mailbox="1000">
>                      <params>
>                         <param name="password" value="1234" />
>                         <param name="vm-password" value="861000" />
>                      </params>
>                      <variables>
>                         <variable name="numbering_plan" value="US" />
>                      </variables>
>                   </user>
>                </users>
>             </group>
>          </groups>
>       </domain>
>       <domain name="192.168.1.50">
>          <params />
>          <variables />
>          <groups>
>             <group name="default">
>                <users />
>             </group>
>          </groups>
>       </domain>
>    </section>
>    <!-- User is 1000 -->
>    <!-- user id is: 1 -->
>    <!-- fs_directory:119 - 8:Undefined offset: 0 -->
>    <!-- user id is: 0 -->
>    <!-- Total # of Queries Run: 28 -->
>    <!-- Estimated Execution Time Is: 0.0043249130249023 -->
> </document>
>
>
> What does that mean *Cant register a pointer*? If i does not enter port
> in domain, users is successfully register, but not with port why?
>
> Any pointer would be greatly appreciated.
>
> Thanks
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150610/c84ea4b0/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list