Fix user agent on reload
authorMark Spencer <markster@digium.com>
Tue, 20 Jul 2004 22:22:36 +0000 (22:22 +0000)
committerMark Spencer <markster@digium.com>
Tue, 20 Jul 2004 22:22:36 +0000 (22:22 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3486 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index d780bf6..db1ecce 100755 (executable)
@@ -8246,6 +8246,7 @@ static int reload_config(void)
        strncpy(default_context, "default", sizeof(default_context) - 1);
        default_language[0] = '\0';
        default_fromdomain[0] = '\0';
+       strncpy(default_useragent, DEFAULT_USERAGENT, sizeof(default_useragent) - 1);
        strncpy(global_realm, "asterisk", sizeof(global_realm) - 1);
        global_realm[sizeof(global_realm)-1] = '\0';
        global_canreinvite = REINVITE_INVITE;