[Freeswitch-users] where do variables like local_ip_v4 get their values?

Carole O. carole.olivier at enst.fr
Wed Nov 26 06:53:29 PST 2008


Ok thanks for your answer !!

Just in case some are interested in: I have made a mistake by telling that
putting "domain" to 192.168.1.200 does not work. It works but I did not pay
attention that domain was already assign to "local_ip_v4" so it was assigned
2 times and obviously it could not work...
I am sorry for that.

Thanks a lot,
Carole



Brian West-3 wrote:
> 
> local_ip_v4 is setup inside switch_core.c as a global variable that  
> can be used in the config.  FreeSWITCH will try to detect the proper  
> address to bind to for the sip profiles in your case it can't figure  
> it out since you might not be connected to the internet.  So you can  
> open up vars.xml and set it... remember the default configs are just  
> an example of how to use FreeSWITCH not the set in stone way you  
> should use FreeSWITCH.   You can also open up the xml files in  
> sip_profiles and input the sip-ip and rtp-ip in there also.
> 
> /b
> 
> On Nov 26, 2008, at 5:48 AM, Carole O. wrote:
> 
>>
>> Hello,
>>
>> I have just installed Freeswitch on OpenSUSE 10.3.
>>
>> I was wondering where the variable indicated with $$ get their  
>> values. I get
>> some problems with the variables local_ip_v4 and domain which are both
>> initialized with the loopback address 127.0.0.1. Thereof, no  
>> registration is
>> possible on the ip address of the PC (192.168.1.200) since the port  
>> 5060 is
>> closed. Freeswitch is apparently waiting on the port 5060 of the ip  
>> address
>> 127.0.0.1 which is open.
>> How does it come that the loopback address is chosen?
>>
>> I try the following: add in vars.xml $${local_ip_v4}=192.168.1.200.  
>> After
>> this freeswitch is listening at the port 5060 of 192.168.1.200. So  
>> it seems
>> to work, even if it does not answer my first question (where does the
>> default value of local_ip_v4 come?).
>> Moreover, I got another problem. The registrations are now possible  
>> but I
>> observe that the default domain is still bound to the ip address  
>> 127.0.0.1.
>> So I try to add in vars.xml $${domain}=192.168.1.200, which did not  
>> work.
>> The domain is still bound to 127.0.0.1. Why????
>>
>> I thank you in advance for your help.
>> Best regards,
>> Carole
> 
> 
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
> 
> 

-- 
View this message in context: http://www.nabble.com/where-do-variables-like-local_ip_v4-get-their-values--tp20699388p20702424.html
Sent from the Freeswitch-users mailing list archive at Nabble.com.





More information about the FreeSWITCH-users mailing list