How can I get SIP “Call-ID” field from outbound INVITE?
Which channel driver are you referring to? For example PJSIP allows it using the CHANNEL dialplan function[1] using:
${CHANNEL(pjsip,call-id)}
[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+Function_CHANNEL
2 Likes
Thanks for your help! Yes, I use PJSIP driver. Before I try to use
channel.PJSIP_HEADER("read,call-id"):get()
but it only for inbound calls.
Now I can finish my cel events.
Have a nice day!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.