I am working on a patch for ASTERISK-24601 to include LOCAL/REMOTE headers in dialog-info XML. I stumbled across an old post by @jcolp where he suggested that the function ast_sip_subscription_get_dialog can get the dialog info and properly generate the fields necessary, however, I am running into a problem.
The struct members returned by that function are not strings, and pjproject includes functions to extract the data into stings that can be manipluated. For example:
…is the function necessary to extract the SIP header from a remote FROM dialog. However, when attempting to use this function, I get:
implicit declaration of function ‘pjsip_fromto_hdr_print’
It think that the third-party directory that contains sip_msg.h is included in the make file, but I don’t see any modules being generated. Explicitly including the sip_msg.h does not seem to do anything either.