Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Cant register a pointer. What wrong?


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
lubimov at neolant.ru
Guest





PostPosted: Tue Jun 30, 2009 8:38 am    Post subject: [Freeswitch-users] Cant register a pointer. What wrong? Reply with quote

I sofia_reg.c:1765 have two user records - good #110 and bad #111.

bad.xml:

<include>
<user id="111">
<params>
<param name="password" value="$${default_password}"/>
<param name="vm-password" value="$${default_vm_password}"/>
</params>
<variables>
<variable name="toll_allow" value="domestic,international,local"/>
<variable name="accountcode" value="111"/>
<variable name="user_context" value="default"/>
<variable name="effective_caller_id_name" value="Bad"/>
<variable name="effective_caller_id_number" value="111"/>
<variable name="outbound_caller_id_name"
value="$${outbound_caller_name}"/>
<variable name="outbound_caller_id_number"
value="$${outbound_caller_id}"/>
<variable name="callgroup" value="techsupport"/>
</variables>
</user>


good.xml:

<include>
<user id="110">
<params>
<param name="password" value="$${default_password}"/>
<param name="vm-password" value="$${default_vm_password}"/>
</params>
<variables>
<variable name="toll_allow" value="domestic,international,local"/>
<variable name="accountcode" value="110"/>
<variable name="user_context" value="default"/>
<variable name="effective_caller_id_name" value="Good"/>
<variable name="effective_caller_id_number" value="110"/>
<variable name="outbound_caller_id_name"
value="$${outbound_caller_name}"/>
<variable name="outbound_caller_id_number"
value="$${outbound_caller_id}"/>
<variable name="callgroup" value="techsupport"/>
</variables>
</user>
</include>

Good user 110 work without any problem. But user "Bad" user 111 can't
register to freeswitch.

In log I can see only one message - 2009-06-30 16:31:36.590970
[WARNING] sofia_reg.c:1765 Cant register a pointer.

good user exists:
freeswitch@internal> user_exists id 110 neolant.ru
true

and bad user exists!
freeswitch@internal> user_exists id 111 neolant.ru
true

good user don't have attr type:

freeswitch@internal> user_data 110@neolant.ru attr type
-ERR no reply

but bad user have attr type! :

freeswitch@internal> user_data 111@neolant.ru attr type
pointer


Good user have password:

freeswitch@internal> user_data 110@neolant.ru param password
123456

But bad user no have param pasword!

freeswitch@internal> user_data 111@neolant.ru param password
-ERR no reply


What's wrong in these configuration? How I can debug and resolve these
problems?


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
mike at jerris.com
Guest





PostPosted: Tue Jun 30, 2009 11:25 am    Post subject: [Freeswitch-users] Cant register a pointer. What wrong? Reply with quote

you have a pointer somewhere in your directory for that user, hard to
see without seeing the whole config, but grep for 111 and see what
else you find.

Mike

On Jun 30, 2009, at 10:21 AM, Alexey Lubimov wrote:

Quote:
I sofia_reg.c:1765 have two user records - good #110 and bad #111.

bad.xml:

<include>
<user id="111">
<params>
<param name="password" value="$${default_password}"/>
<param name="vm-password" value="$${default_vm_password}"/>
</params>
<variables>
<variable name="toll_allow"
value="domestic,international,local"/>
<variable name="accountcode" value="111"/>
<variable name="user_context" value="default"/>
<variable name="effective_caller_id_name" value="Bad"/>
<variable name="effective_caller_id_number" value="111"/>
<variable name="outbound_caller_id_name"
value="$${outbound_caller_name}"/>
<variable name="outbound_caller_id_number"
value="$${outbound_caller_id}"/>
<variable name="callgroup" value="techsupport"/>
</variables>
</user>


good.xml:

<include>
<user id="110">
<params>
<param name="password" value="$${default_password}"/>
<param name="vm-password" value="$${default_vm_password}"/>
</params>
<variables>
<variable name="toll_allow"
value="domestic,international,local"/>
<variable name="accountcode" value="110"/>
<variable name="user_context" value="default"/>
<variable name="effective_caller_id_name" value="Good"/>
<variable name="effective_caller_id_number" value="110"/>
<variable name="outbound_caller_id_name"
value="$${outbound_caller_name}"/>
<variable name="outbound_caller_id_number"
value="$${outbound_caller_id}"/>
<variable name="callgroup" value="techsupport"/>
</variables>
</user>
</include>

Good user 110 work without any problem. But user "Bad" user 111 can't
register to freeswitch.

In log I can see only one message - 2009-06-30 16:31:36.590970
[WARNING] sofia_reg.c:1765 Cant register a pointer.

good user exists:
freeswitch@internal> user_exists id 110 neolant.ru
true

and bad user exists!
freeswitch@internal> user_exists id 111 neolant.ru
true

good user don't have attr type:

freeswitch@internal> user_data 110@neolant.ru attr type
-ERR no reply

but bad user have attr type! :

freeswitch@internal> user_data 111@neolant.ru attr type
pointer


Good user have password:

freeswitch@internal> user_data 110@neolant.ru param password
123456

But bad user no have param pasword!

freeswitch@internal> user_data 111@neolant.ru param password
-ERR no reply


What's wrong in these configuration? How I can debug and resolve these
problems?


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
lubimov at neolant.ru
Guest





PostPosted: Wed Jul 01, 2009 3:57 am    Post subject: [Freeswitch-users] Cant register a pointer. What wrong? Reply with quote

grep -ir 111 *

default/bad.xml: <user id="111">
default/bad.xml: <variable name="accountcode" value="111"/>
default/bad.xml: <variable name="effective_caller_id_number" value="111"/>
default.xml: <user id="111" type="pointer"/>

default.xml:

<group name="employers">
<users>
<user id="110" type="pointer"/>
<user id="111" type="pointer"/>
<user id="177" type="pointer"/>
<user id="199" type="pointer"/>
<user id="143" type="pointer"/>
<user id="153" type="pointer"/>
<user id="148" type="pointer"/>
<user id="182" type="pointer"/>
</users>
</group>


Michael Jerris пишет:
Quote:
you have a pointer somewhere in your directory for that user, hard to
see without seeing the whole config, but grep for 111 and see what
else you find.

Mike

On Jun 30, 2009, at 10:21 AM, Alexey Lubimov wrote:


Quote:
I sofia_reg.c:1765 have two user records - good #110 and bad #111.

bad.xml:

<include>
<user id="111">
<params>
<param name="password" value="$${default_password}"/>
<param name="vm-password" value="$${default_vm_password}"/>
</params>
<variables>
<variable name="toll_allow"
value="domestic,international,local"/>
<variable name="accountcode" value="111"/>
<variable name="user_context" value="default"/>
<variable name="effective_caller_id_name" value="Bad"/>
<variable name="effective_caller_id_number" value="111"/>
<variable name="outbound_caller_id_name"
value="$${outbound_caller_name}"/>
<variable name="outbound_caller_id_number"
value="$${outbound_caller_id}"/>
<variable name="callgroup" value="techsupport"/>
</variables>
</user>


good.xml:

<include>
<user id="110">
<params>
<param name="password" value="$${default_password}"/>
<param name="vm-password" value="$${default_vm_password}"/>
</params>
<variables>
<variable name="toll_allow"
value="domestic,international,local"/>
<variable name="accountcode" value="110"/>
<variable name="user_context" value="default"/>
<variable name="effective_caller_id_name" value="Good"/>
<variable name="effective_caller_id_number" value="110"/>
<variable name="outbound_caller_id_name"
value="$${outbound_caller_name}"/>
<variable name="outbound_caller_id_number"
value="$${outbound_caller_id}"/>
<variable name="callgroup" value="techsupport"/>
</variables>
</user>
</include>

Good user 110 work without any problem. But user "Bad" user 111 can't
register to freeswitch.

In log I can see only one message - 2009-06-30 16:31:36.590970
[WARNING] sofia_reg.c:1765 Cant register a pointer.

good user exists:
freeswitch@internal> user_exists id 110 neolant.ru
true

and bad user exists!
freeswitch@internal> user_exists id 111 neolant.ru
true

good user don't have attr type:

freeswitch@internal> user_data 110@neolant.ru attr type
-ERR no reply

but bad user have attr type! :

freeswitch@internal> user_data 111@neolant.ru attr type
pointer


Good user have password:

freeswitch@internal> user_data 110@neolant.ru param password
123456

But bad user no have param pasword!

freeswitch@internal> user_data 111@neolant.ru param password
-ERR no reply


What's wrong in these configuration? How I can debug and resolve these
problems?



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
gservat at gmail.com
Guest





PostPosted: Wed Jul 01, 2009 4:11 am    Post subject: [Freeswitch-users] Cant register a pointer. What wrong? Reply with quote

On Wed, Jul 1, 2009 at 6:56 PM, Alexey Lubimov <lubimov@neolant.ru (lubimov@neolant.ru)> wrote:
Quote:

grep -ir 111 *

default/bad.xml: <user id="111">
default/bad.xml: <variable name="accountcode" value="111"/>
default/bad.xml: <variable name="effective_caller_id_number" value="111"/>
default.xml: <user id="111" type="pointer"/>

[..snip..]

This is probably a long shot, but for bad user you didn't close off the </include> (I'm assuming you just didn't paste it but it's closed off, but you never know...)

- Gonzalo
Back to top
lubimov at neolant.ru
Guest





PostPosted: Wed Jul 01, 2009 4:24 am    Post subject: [Freeswitch-users] Cant register a pointer. What wrong? Reply with quote

No, tag </include> is exists.


<include>
<user id="111">
<params>
<param name="password" value="$${default_password}"/>
<param name="vm-password" value="$${default_vm_password}"/>
</params>
<variables>
<variable name="toll_allow" value="domestic,international,local"/>
<variable name="accountcode" value="111"/>
<variable name="user_context" value="default"/>
<variable name="effective_caller_id_name" value="Bad"/>
<variable name="effective_caller_id_number" value="111"/>
<variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
<variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
<variable name="callgroup" value="techsupport"/>
</variables>
</user>
</include>

Gonzalo Servat пишет:
Quote:
On Wed, Jul 1, 2009 at 6:56 PM, Alexey Lubimov <lubimov@neolant.ru
<mailto:lubimov@neolant.ru>> wrote:


grep -ir 111 *

default/bad.xml: <user id="111">
default/bad.xml: <variable name="accountcode" value="111"/>
default/bad.xml: <variable name="effective_caller_id_number"
value="111"/>
default.xml: <user id="111" type="pointer"/>


[..snip..]

This is probably a long shot, but for bad user you didn't close off
the </include> (I'm assuming you just didn't paste it but it's closed
off, but you never know...)

- Gonzalo

------------------------------------------------------------------------

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
lubimov at neolant.ru
Guest





PostPosted: Wed Jul 01, 2009 4:55 am    Post subject: [Freeswitch-users] Cant register a pointer. What wrong? Reply with quote

Thank You, Gonzalo!

freeswitch@internal> reloadxml
+OK [Success]

2009-07-01 13:40:37.205835 [ERR] switch_xml.c:1282 Couldnt open
/opt/freeswitch/conf/directory/default/bad.xml (Permission denied)

ls -l
-rw-r----- 1 root root 756 2009-06-30 16:39 bad.xml
-rw-r----- 1 freeswitch daemon 761 2009-06-19 12:02 good.xml

After chown freeswitch:daemon, problem was resolved.



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services