]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
global mohinterpret setting is ignored
authorDavid Vossel <dvossel@digium.com>
Mon, 4 May 2009 22:37:31 +0000 (22:37 +0000)
committerDavid Vossel <dvossel@digium.com>
Mon, 4 May 2009 22:37:31 +0000 (22:37 +0000)
mohinterpret and mohsuggest global variables were not copied over during build_users and build_peers.

(closes issue #14728)
Reported by: dimas
Patches:
      v1-14728.patch uploaded by dimas (license 88)
Tested by: dimas, dvossel

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@192213 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index fc36e8eeba513408b6850c5ff158a47e2364bbd4..3f2dd4cb185283e71ebb64297a2ba732377daa8d 100644 (file)
@@ -9621,6 +9621,8 @@ static struct iax2_peer *build_peer(const char *name, struct ast_variable *v, st
                        ast_clear_flag(peer, IAX_HASCALLERID);
                        ast_string_field_set(peer, cid_name, "");
                        ast_string_field_set(peer, cid_num, "");
+                       ast_string_field_set(peer, mohinterpret, mohinterpret);
+                       ast_string_field_set(peer, mohsuggest, mohsuggest);
                }
 
                if (!v) {
@@ -9855,6 +9857,9 @@ static struct iax2_user *build_user(const char *name, struct ast_variable *v, st
                        ast_clear_flag(user, IAX_HASCALLERID);
                        ast_string_field_set(user, cid_name, "");
                        ast_string_field_set(user, cid_num, "");
+                       ast_string_field_set(user, accountcode, accountcode);
+                       ast_string_field_set(user, mohinterpret, mohinterpret);
+                       ast_string_field_set(user, mohsuggest, mohsuggest);
                }
                if (!v) {
                        v = alt;