[OpenSIPS-Devel] [opensips] event_rabbitmq order of _rmq_send attributes (#827)

Jarrod Baumann notifications at github.com
Mon Mar 14 05:09:27 CET 2016


I was having an issue where the `rmq_buffer` was correctly populated with evi params, but what was transmitted over the wire was empty.  The `_rmq_send` structure contains the `msg` attribute declared as char[0] which contains the full message by allocating memory for the struct itself as well as the rmq_buffer_len: `shm_malloc(sizeof(rmq_send_t) + len)`

Moving `int process_idx` above `char msg[0]` which was added from commit 1bc8baf84a1fbca84bf6581071bc59c58eac6552 seems to fix the problem for me. 

Am I missing something else or should it work the way it is since that commit has been in place since Jul 22, 2015?  I just couldn't get my E_ACC_CDR events published to rabbitmq on master until I tracked it down and changed this.  Thanks.
You can view, comment on, or merge this pull request online at:

  https://github.com/OpenSIPS/opensips/pull/827

-- Commit Summary --

  * event_rabbitmq order of _rmq_send attributes

-- File Changes --

    M modules/event_rabbitmq/rabbitmq_send.h (4)

-- Patch Links --

https://github.com/OpenSIPS/opensips/pull/827.patch
https://github.com/OpenSIPS/opensips/pull/827.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/pull/827
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20160313/215b3653/attachment.htm>


More information about the Devel mailing list