[Freeswitch-dev] Sofia configuration
I have a sip profile with a ext-sip-ip address that will change from time to time and I want to automatically update freeswitch. It will only change when there are no calls in progress and the sip-ip address will never change. Can I do this: Set a variable in "my_ext_ip=1.2.3.4" "vars.xml" In the sip-profile set "ext-sip-ip=$${my_ext_ip}" Whenever the ip-address changes update vars.xml and do "sofia profile profile_name reloadxml". Does vars.xml get re-read whenever mod_sofia reloads a profile, or only once at startup? How do I invoke "sofia profile ..." from a C application module? Thanks, Simon
when you add the reloadxml, it will re-read the whole config, including vars.xml. you can execute the fsapi command from the c api using: switch_status_t switch_api_execute(const char *cmd, const char *arg, switch_core_session_t *session, switch_stream_handle_t *stream); Mike On Jul 21, 2008, at 1:58 AM, Simon Capper wrote:
I have a sip profile with a ext-sip-ip address that will change from time to time and I want to automatically update freeswitch.
It will only change when there are no calls in progress and the sip-ip address will never change.
Can I do this: Set a variable in "my_ext_ip=1.2.3.4" "vars.xml" In the sip-profile set "ext-sip-ip=$${my_ext_ip}"
Whenever the ip-address changes update vars.xml and do "sofia profile profile_name reloadxml".
Does vars.xml get re-read whenever mod_sofia reloads a profile, or only once at startup? How do I invoke "sofia profile ..." from a C application module?
Thanks,
Simon
_______________________________________________ Freeswitch-dev mailing list Freeswitch-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
participants (2)
-
Michael Jerris
-
Simon Capper