Hi everyone,
I would like to add the call-id of calling from sip message to sip history log
asterisk-18.xx.x/res/res_pjsip_history.c
to add message, it should add in sprint_list_entry function but it needs to add call-id from sip-message to history log like.
when I turn on pjsip history.
[Sep 12 ::] PJSIP_HISTORY[494709] res_pjsip_history.c: 00488 1662951549 * <== xx.xxx.xx.xxx:XXXX OPTIONS sip:xxx.xx.xxx.xxx:XXXX SIP/2.0 Call-id:
[Sep 12 ::] PJSIP_HISTORY[494710] res_pjsip_history.c: 00489 1662951549 * ==> xx.xxx.xx.xxx:XXXX SIP/2.0 200 OK Call-id:
how can i get sip message to print in history log or sip message global variable in c code.
many thanks.