Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[Freeswitch-users] another switch_ivr_set_user() can't find user


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





PostPosted: Mon Dec 22, 2008 8:17 pm    Post subject: [Freeswitch-users] another switch_ivr_set_user() can't find Reply with quote

I'm interested in moving some VoIP phones I'm playing with to a different
set of network numbers for various internal reasons. However, I'm not
looking for multiple FreeSWITCH domains ... I just want one. Here's what
I did:

1) On the FreeSWITCH box created a logical network interface and assigned
it a number from the new set of network numbers.

2) Changed rtp-ip and sip-ip in internal.xml to use the number assigned
to the logical network interface.

3) Per the FAQ set force-register-domain and force-register-db-domain in
internal.xml to the value for domain in vars.xml (i.e. the main local
ip v4 address of the FreeSWITCH machine).

4) Changed the VoIP phone to use a number from the new set.

When I place a call from the VoIP phone FreeSWITCH complains:

[WARNING] switch_ivr.c:1941 switch_ivr_set_user() can't find user
[default@192.168.14.10]

where 192.168.14.10 is the number assigned to the logical interface,
however the call goes through / everything seems to work. I'm able
to place a call to the VoIP phone from openzap without any complaints.

Suggestions / pointers regarding the warning and how to make it happy?

-- John
-------------------------------------------------------------------------
| Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com |
| John Wehle | Fax: 1-215-540-5495 | |
-------------------------------------------------------------------------


_______________________________________________
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
john at feith.com
Guest





PostPosted: Tue Dec 23, 2008 6:00 pm    Post subject: [Freeswitch-users] another switch_ivr_set_user() can't find Reply with quote

Quote:
You don't have a default user in domain 192.168.14.10, in the default
config I used this so that you can set some vars on every call with

Thanks for pointing it out and explaining the purpose.

It looks like the domain is coming from set_domain in default.xml
which gets it from sip_auth_realm. I guess the question is if
force-register-domain is being used then:

a) Should sip_auth_realm be set by FreeSWITCH to the value associated
with force-register-domain

b) or should set_domain in default.xml simply check for force-register-domain
when setting domain?

-- John
-------------------------------------------------------------------------
| Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com |
| John Wehle | Fax: 1-215-540-5495 | |
-------------------------------------------------------------------------


_______________________________________________
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
john at feith.com
Guest





PostPosted: Wed Dec 24, 2008 4:34 pm    Post subject: [Freeswitch-users] another switch_ivr_set_user() can't find Reply with quote

Quote:
Quote:
a) Should sip_auth_realm be set by FreeSWITCH to the value associated
with force-register-domain

You have to remember the default assumes a lot. You go to changing
things you have to then change the way things are assumed.

I appreciate that. Let me ask the question slightly differently.

sofia_reg_parse_auth contains the following logic:

if (!switch_strlen_zero(profile->reg_domain)) {
domain_name = profile->reg_domain;
} else {
domain_name = realm;
}

where profile->reg_domain is set from force-register-domain.
It then calls switch_xml_locate_user using domain_name.
It looks like force-register-domain is intended to make
FreeSWITCH believe that the user is in domain specified by
force-register-domain.

Later there's:

switch_event_add_header_string(*v_event, SWITCH_STACK_BOTTOM,
"sip_auth_realm", realm);
switch_event_add_header_string(*v_event, SWITCH_STACK_BOTTOM,
"domain_name", realm);

Shouldn't the add_header for domain_name contain the value for
the actual domain used to locate the user?

And ideally shouldn't the rest of FreeSWITCH (including examples
intended to get you started) work in the same fashion for consistency
sake (i.e. when trying to locate a user reference the domain used by
sofia_reg_parse_auth to locate the user instead of blindly using
sip_auth_realm)?

My thought is if sofia_reg_parse_auth set things up properly,
then the rest of FreeSWITCH shouldn't know or even care that
force-register-domain is in use ... it should be as if the
VoIP phone had in fact registered using the domain specified
by force-register-domain.

-- John
-------------------------------------------------------------------------
| Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com |
| John Wehle | Fax: 1-215-540-5495 | |
-------------------------------------------------------------------------


_______________________________________________
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