I am using FreePBX GUI and would like pass the Call-ID SIP header for both inbound and outbound calls as variable in Post Call Recording Script, such as:
Informing you that I made site progress, I implemented bash /var/lib/asterisk/bin/post-recording.sh ^{CHANNEL(pjsip,call-id)}.
For outbound calls, Call-Idof the client matches the CHANNEL(pjsip,call-id), for example lca2c1gibv5p28oubsfl, no problem
However, for inbound calls, the client’s Call-Id in the received INVITE from FreePBX is f67e562f-2dd9-4c86-838e-73957b09ac55 whereas the reported CHANNEL(pjsip,call-id) on the post call recording script is [email protected]:5060. So completely different.
How can I capture the Call-Idfor outbound calls in that case ?