]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 372621,372625,372629 via svnmerge from
authorAutomerge script <automerge@asterisk.org>
Fri, 7 Sep 2012 22:25:26 +0000 (22:25 +0000)
committerAutomerge script <automerge@asterisk.org>
Fri, 7 Sep 2012 22:25:26 +0000 (22:25 +0000)
file:///srv/subversion/repos/asterisk/branches/10

................
  r372621 | rmudgett | 2012-09-07 16:24:39 -0500 (Fri, 07 Sep 2012) | 18 lines

  Fix VoicemailUserEntry event headers ServerEmail and MailCommand reported values.

  The AMI action VoicemailUsersList VoicemailUserEntry event headers
  ServerEmail and MailCommand did not report the global values if they were
  not overridden.  The VoicemailUserEntry event header ServerEmail was not
  populated with the global value if the voicemail user did not override it.
  The VoicemailUserEntry event header MailCommand was never populated with a
  value.

  * Removed unused struct ast_vm_user member mailcmd[].

  (closes issue AST-973)
  Reported by: John Bigelow
  Tested by: rmudgett
  ........

  Merged revisions 372620 from http://svn.asterisk.org/svn/asterisk/branches/1.8
................
  r372625 | rmudgett | 2012-09-07 16:49:16 -0500 (Fri, 07 Sep 2012) | 10 lines

  Fix exception path typo in app_queue.c try_calling().

  (closes issue ASTERISK-20380)
  Reported by: Jeremy Pepper
  Patches:
        fix-local-channel-locking.patch (license #6350) patch uploaded by Jeremy Pepper
  ........

  Merged revisions 372624 from http://svn.asterisk.org/svn/asterisk/branches/1.8
................
  r372629 | rmudgett | 2012-09-07 17:07:59 -0500 (Fri, 07 Sep 2012) | 8 lines

  Remove annoying unconditional debug message from INC/DEC functions.

  (closes issue AST-1001)
  Reported by: Guenther Kelleter
  ........

  Merged revisions 372628 from http://svn.asterisk.org/svn/asterisk/branches/1.8
................

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

apps/app_queue.c
apps/app_voicemail.c
funcs/func_math.c

index e4849ddf8c7ff1b4958dc2c893dea6018aa5fc78..f043ad0d420b76bc2c5358f1015c06e84fcff209 100644 (file)
@@ -4635,7 +4635,7 @@ static int try_calling(struct queue_ent *qe, const char *options, char *announce
                                callattempt_free(tmp);
                                ao2_ref(cur, -1);
                                ao2_iterator_destroy(&memi);
-                               ao2_unlock(&qe->parent);
+                               ao2_unlock(qe->parent);
                                goto out;
                        }
                        datastore->data = dialed_interfaces;
index 0581176edd3fd045013ffbcbdeb1dcbbd320da96..76e05a02c62809148a49dd8f93d9938f93c2bd6a 100644 (file)
@@ -691,7 +691,6 @@ struct ast_vm_user {
        char *emailbody;                 /*!< E-mail body */
        char pager[80];                  /*!< E-mail address to pager (no attachment) */
        char serveremail[80];            /*!< From: Mail address */
-       char mailcmd[160];               /*!< Configurable mail command */
        char language[MAX_LANGUAGE];     /*!< Config: Language setting */
        char zonetag[80];                /*!< Time zone */
        char locale[20];                 /*!< The locale (for presentation of date/time) */
@@ -11839,7 +11838,6 @@ static struct ast_cli_entry cli_voicemail[] = {
                USER(ast_vm_user, emailbody, AST_DATA_STRING)                   \
                USER(ast_vm_user, pager, AST_DATA_STRING)                       \
                USER(ast_vm_user, serveremail, AST_DATA_STRING)                 \
-               USER(ast_vm_user, mailcmd, AST_DATA_STRING)                     \
                USER(ast_vm_user, language, AST_DATA_STRING)                    \
                USER(ast_vm_user, zonetag, AST_DATA_STRING)                     \
                USER(ast_vm_user, callback, AST_DATA_STRING)                    \
@@ -11867,7 +11865,6 @@ static struct ast_cli_entry cli_voicemail[] = {
                USER(ast_vm_user, emailbody, AST_DATA_STRING)                   \
                USER(ast_vm_user, pager, AST_DATA_STRING)                       \
                USER(ast_vm_user, serveremail, AST_DATA_STRING)                 \
-               USER(ast_vm_user, mailcmd, AST_DATA_STRING)                     \
                USER(ast_vm_user, language, AST_DATA_STRING)                    \
                USER(ast_vm_user, zonetag, AST_DATA_STRING)                     \
                USER(ast_vm_user, callback, AST_DATA_STRING)                    \
@@ -12243,8 +12240,8 @@ static int manager_list_voicemail_users(struct mansession *s, const struct messa
                        vmu->fullname,
                        vmu->email,
                        vmu->pager,
-                       vmu->serveremail,
-                       vmu->mailcmd,
+                       ast_strlen_zero(vmu->serveremail) ? serveremail : vmu->serveremail,
+                       mailcmd,
                        vmu->language,
                        vmu->zonetag,
                        vmu->callback,
index e27057c57e90cd31f3d4fd86dbc32174215ee919..05321b719ca3379170f8d090d2649c7e770d056c 100644 (file)
@@ -421,8 +421,6 @@ static int crement_function_read(struct ast_channel *chan, const char *cmd,
                modify_orig = 1;
        }
 
-       ast_log(LOG_NOTICE, "The value is now: %d\n", int_value);
-
        if (snprintf(returnvar, sizeof(returnvar), "%d", int_value) > 0) {
                pbx_builtin_setvar_helper(chan, data, returnvar);
                if (modify_orig) {