where do variables like local_ip_v4 get their values?
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 -- View this message in context: http://www.nabble.com/where-do-variables-like-local_ip_v4-get-their-values--... Sent from the Freeswitch-users mailing list archive at Nabble.com.
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
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@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--... Sent from the Freeswitch-users mailing list archive at Nabble.com.
You can reset what local_ip_v4 is set too also if you want ... /b On Nov 26, 2008, at 8:53 AM, Carole O. wrote:
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
Hello, I think I will keep first the first solution since I do not know yet how to reset a variable. Thank you very much for your help. Carole Brian West-3 wrote:
You can reset what local_ip_v4 is set too also if you want ...
/b
On Nov 26, 2008, at 8:53 AM, Carole O. wrote:
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
_______________________________________________ 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
-- View this message in context: http://www.nabble.com/where-do-variables-like-local_ip_v4-get-their-values--... Sent from the Freeswitch-users mailing list archive at Nabble.com.
<X-PRE-PROCESS cmd="set" data="local_ip_v4=1.2.3.4"/> /b On Nov 28, 2008, at 2:22 AM, Carole O. wrote:
Hello,
I think I will keep first the first solution since I do not know yet how to reset a variable.
Thank you very much for your help. Carole
Brian West-3 wrote:
You can reset what local_ip_v4 is set too also if you want ...
/b
On Nov 26, 2008, at 8:53 AM, Carole O. wrote:
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
_______________________________________________ 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
-- View this message in context: http://www.nabble.com/where-do-variables-like-local_ip_v4-get-their-values--... Sent from the Freeswitch-users mailing list archive at Nabble.com.
_______________________________________________ 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
oh ok, I thought you meant something else. This one I got it but thanks for keeping answering. Carole Brian West-3 wrote:
<X-PRE-PROCESS cmd="set" data="local_ip_v4=1.2.3.4"/>
/b
On Nov 28, 2008, at 2:22 AM, Carole O. wrote:
Hello,
I think I will keep first the first solution since I do not know yet how to reset a variable.
Thank you very much for your help. Carole
Brian West-3 wrote:
You can reset what local_ip_v4 is set too also if you want ...
/b
On Nov 26, 2008, at 8:53 AM, Carole O. wrote:
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
_______________________________________________ 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
-- View this message in context: http://www.nabble.com/where-do-variables-like-local_ip_v4-get-their-values--... Sent from the Freeswitch-users mailing list archive at Nabble.com.
_______________________________________________ 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
-- View this message in context: http://www.nabble.com/where-do-variables-like-local_ip_v4-get-their-values--... Sent from the Freeswitch-users mailing list archive at Nabble.com.
participants (2)
-
Brian West
-
Carole O.