[sr-dev] Issue in xhttp_mod

Dario Bozzali Dario.Bozzali at ifmgroup.it
Tue Jul 18 14:45:36 CEST 2017


Hello,

I'm quite new to Kamailio and I'm making some tests using devel release (git head).



I'm facing an issue in xhttp_mod module after I updated my repository to master head and in particular after  commit dc0765c04c3cb5d8981551e3f28ee6871fc803ff (14/07/2017).

In src/core/route.h line 57

#define EVENT_ROUTE   REQUEST_ROUTE

has been changed to

#define EVENT_ROUTE   (1 << 9)



After this change, xhttp_reply is no more accepted as valid command in event_route[xhttp:request] route in my kamailio.cfg file.



I suppose that the issue is caused by REQUEST_ROUTE in src/modules/xhttp/xhttp_mod.c line 74. I think it should be EVENT_ROUTE

static cmd_export_t cmds[] = {

               {"xhttp_reply",    (cmd_function)w_xhttp_send_reply,

                              4, fixup_xhttp_reply,  0, REQUEST_ROUTE},    ==========> should be (?)  4, fixup_xhttp_reply,  0, EVENT_ROUTE},

               {"bind_xhttp",     (cmd_function)bind_xhttp,

                              0, 0, 0, ANY_ROUTE},

               {0, 0, 0, 0, 0}

};



I changed REQUEST_ROUTE to EVENT_ROUTE and, after that, kamailio.cfg is loaded without error. I don't know Kamailio code, so I don't know if this change is enough.



Thank you and best regards,

Dario






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20170718/f3cb8b4b/attachment.html>


More information about the sr-dev mailing list