hello Henning

thanks for the update. Yes i actually was not sure if 2 different calls can have 2 callid which only differs by having capital or lowercase letters.
Also i added the line to remove the spaces, to make the function work in cases were the header has an space or not after "Call-ID:" part.

About the memory manager, if it's used shm_malloc instead of malloc only,
char* cid_value = (char*)shm_malloc(sizeof(char) * (cid_value_len + 1));
would be ok?

Or would be better something like

char* cid_value = (char*)pkg_malloc(sizeof(char) * (cid_value_len + 1));
.....
pkg_free(cid_value); (after retrieving only_callid value)

?

thanks a lot and regards
david


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <kamailio/kamailio/pull/3393/c1467920340@github.com>