[sr-dev] [kamailio/kamailio] hep: Store ipstr in a static buffer for exporting to cfg (#896)

Holger Freyther notifications at github.com
Wed Dec 21 10:41:19 CET 2016


When using hep(0x003) and hep(0x004) the extracted ip address
would be written to the local ipstr buffer but when returning
to the script the buffer would already be partially overwritten.

Keep the data around long enough by storing the result in a
static buffer.
You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/896

-- Commit Summary --

  * hep: Store ipstr in a static buffer for exporting to cfg

-- File Changes --

    M src/modules/sipcapture/hep.c (2)

-- Patch Links --

https://github.com/kamailio/kamailio/pull/896.patch
https://github.com/kamailio/kamailio/pull/896.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/896
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20161221/dfe66709/attachment.html>


More information about the sr-dev mailing list