Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Realtime not storing voicemail password changes


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
paddy at wizaner.com
Guest





PostPosted: Tue Dec 16, 2014 7:26 am    Post subject: [asterisk-users] Realtime not storing voicemail password cha Reply with quote

Hi All I am trying to get voicemail switched over to ARA on version 13 and notice that the password is not stored in the db when it is changed. A little hair pulling and playing around and I think the problem is in the function ast_update2_realtime in main/config.c. Issued source is ==> int ast_update2_realtime(const char *family, ...){ RAII_VAR(struct ast_variable *, lookup_fields, NULL, ast_variables_destroy); RAII_VAR(struct ast_variable *, update_fields, NULL, ast_variables_destroy); va_list ap; va_start(ap, family); /* XXX: If we wanted to pass no lookup fields (select all), we'd be * out of luck. realtime_arguments_to_fields expects at least one key * value pair. */ realtime_arguments_to_fields(ap, &lookup_fields); va_end(ap); va_start(ap, family); realtime_arguments_to_fields2(ap, 1, &lookup_fields); va_end(ap); if (!lookup_fields || !update_fields) { return -1; } return ast_update2_realtime_fields(family, lookup_fields, update_fields);} I believe line 3314 of the file main/config.c should be realtime_arguments_to_fields2(ap, 1, &update_fields); I have changed it and it works for me - but - 1) I don't know what else this may effect 2) I dont know how to pass this on to the development team Paddy
Back to top
mjordan at digium.com
Guest





PostPosted: Tue Dec 16, 2014 12:10 pm    Post subject: [asterisk-users] Realtime not storing voicemail password cha Reply with quote

On Tue, Dec 16, 2014 at 6:25 AM, Paddy Grice <paddy@wizaner.com> wrote:
Quote:
Hi All

I am trying to get voicemail switched over to ARA on version 13 and notice
that the password is not stored in the db when it is changed.

A little hair pulling and playing around and I think the problem is in the
function ast_update2_realtime in main/config.c.

Issued source is ==>

int ast_update2_realtime(const char *family, ...)
{
RAII_VAR(struct ast_variable *, lookup_fields, NULL,
ast_variables_destroy);
RAII_VAR(struct ast_variable *, update_fields, NULL,
ast_variables_destroy);
va_list ap;

va_start(ap, family);
/* XXX: If we wanted to pass no lookup fields (select all), we'd be
* out of luck. realtime_arguments_to_fields expects at least one
key
* value pair. */
realtime_arguments_to_fields(ap, &lookup_fields);
va_end(ap);

va_start(ap, family);
realtime_arguments_to_fields2(ap, 1, &lookup_fields);
va_end(ap);

if (!lookup_fields || !update_fields) {
return -1;
}

return ast_update2_realtime_fields(family, lookup_fields,
update_fields);
}

I believe line 3314 of the file main/config.c should be

realtime_arguments_to_fields2(ap, 1, &update_fields);

That looks right to me. Otherwise, we never extract the variable list
arguments passed in to the ast_variable list update_fields. Yikes.

Quote:
I have changed it and it works for me - but -

1) I don't know what else this may effect
2) I dont know how to pass this on to the development team


Please file a bug on issues.asterisk.org.

--
Matthew Jordan
Digium, Inc. | Engineering Manager
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services