First, in the kamailio.cfg configuration file, within the onreply_route[MANAGE_REPLY], determine if it is a 408 response to an INVITE. Then, use python_exec to call the py script of app_python3. In the py script, check if the To tag value in the 408 response has changed compared to the previously cached To tag value. If it has changed, use msg.call_function(‘replace’, toTag, originalToTag) to modify the To tag value in the 408 response to the original value when forwarding the 408. By performing this operation, the following error was found in Kamailio:
Dec 4 13:45:00 sipp102 ./kamailio[391888]: CRITICAL: {2 92091734 INVITE a18e6868-2ca5-123e-a394-00163e347028} [core/mem/q_malloc.c:515]: qm_free(): BUG: bad pointer 0x7f60c10a88a0 (out of memory block!) called from app_python3: python_msgobj.c: msg_call_function(258) - ignoring
I’m currently uncertain whether the issue lies in my usage or if there’s a related bug in Kamailio. Could I trouble you all for some advice?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.