]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
fix accountcode (bug #3951)
authorRussell Bryant <russell@russellbryant.com>
Tue, 5 Apr 2005 05:33:13 +0000 (05:33 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 5 Apr 2005 05:33:13 +0000 (05:33 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@5391 65c4cc65-6c06-0410-ace0-fbb531ad65f3

CHANGES
channels/chan_mgcp.c

diff --git a/CHANGES b/CHANGES
index 4fcd611336ea118c5c9125c27db67af14e9d2f1b..6bfddef57a387065e09451b704c437d17eb58bd8 100755 (executable)
--- a/CHANGES
+++ b/CHANGES
@@ -12,6 +12,8 @@
     -- We no longer send a "to" tag on "100 Trying" messages, as it is inappropriate
        to do so.
     -- We now respond correctly to an invite for T.38 with a "488 Not acceptable here"
+ -- chan_mgcp
+    -- Fixed setting of accountcode
  -- res_agi
     -- A fix has been added to prevent calls from being hung up when more than one
        call is executing an AGI script calling the GET DATA command.
index 102c28b1469fea91e2c3a778c97a64ed9f8fb5a9..18aef126276d345b84c68831c26a3563dac9c305 100755 (executable)
@@ -3559,6 +3559,7 @@ static struct mgcp_gateway *build_gateway(char *cat, struct ast_variable *v)
                     strncpy(gw->wcardep, v->value, sizeof(gw->wcardep)-1);
                                        /*strncpy(e->name, "aaln/" "*", sizeof(e->name) - 1);*/
                                        /* XXX Should we really check for uniqueness?? XXX */
+                                       strncpy(e->accountcode, accountcode, sizeof(e->accountcode) - 1);       
                                        strncpy(e->context, context, sizeof(e->context) - 1);
                                        strncpy(e->callerid, callerid, sizeof(e->callerid) - 1);
                                        strncpy(e->language, language, sizeof(e->language) - 1);
@@ -3651,6 +3652,7 @@ static struct mgcp_gateway *build_gateway(char *cat, struct ast_variable *v)
                         e->needaudit = 1;
                     }
                                        /* XXX Should we really check for uniqueness?? XXX */
+                                       strncpy(e->accountcode, accountcode, sizeof(e->accountcode) - 1);       
                                        strncpy(e->context, context, sizeof(e->context) - 1);
                                        strncpy(e->callerid, callerid, sizeof(e->callerid) - 1);
                                        strncpy(e->language, language, sizeof(e->language) - 1);