aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authordvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-04 22:44:51 +0000
committerdvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-04 22:44:51 +0000
commit516812be83b0c58dcb89fd4ee0261b696e0b7e36 (patch)
tree3846f1a1a0217969019dc046b80330905ff8e9d3 /channels
parent0b5da784d0946231831911f9460b3c7ba95bf224 (diff)
Merged revisions 192213 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r192213 | dvossel | 2009-05-04 17:37:31 -0500 (Mon, 04 May 2009) | 11 lines global mohinterpret setting is ignored 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: http://svn.digium.com/svn/asterisk/trunk@192214 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_iax2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index 8583dbc93..33e2431ce 100644
--- a/channels/chan_iax2.c
+++ b/channels/chan_iax2.c
@@ -10790,6 +10790,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) {
@@ -11058,6 +11060,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;