Now that the version.h file was getting properly regenerated every time the svn
[asterisk/asterisk.git] / channels / chan_sip.c
index f5532ca..b0daf5c 100644 (file)
@@ -18371,8 +18371,8 @@ static int reload_config(enum channelreloadreason reason)
        global_directrtpsetup = FALSE;          /* Experimental feature, disabled by default */
        global_alwaysauthreject = 0;
        global_allowsubscribe = FALSE;
-       snprintf(global_useragent, sizeof(global_useragent), "%s %s", DEFAULT_USERAGENT, ASTERISK_VERSION);
-       snprintf(global_sdpsession, sizeof(global_sdpsession), "%s %s", DEFAULT_SDPSESSION, ASTERISK_VERSION);
+       snprintf(global_useragent, sizeof(global_useragent), "%s %s", DEFAULT_USERAGENT, ast_get_version());
+       snprintf(global_sdpsession, sizeof(global_sdpsession), "%s %s", DEFAULT_SDPSESSION, ast_get_version());
        snprintf(global_sdpowner, sizeof(global_sdpowner), "%s", DEFAULT_SDPOWNER);
        ast_copy_string(default_notifymime, DEFAULT_NOTIFYMIME, sizeof(default_notifymime));
        ast_copy_string(global_realm, S_OR(ast_config_AST_SYSTEM_NAME, DEFAULT_REALM), sizeof(global_realm));