How to add CHANNEL(pjsip,call-id) as post recording script variable?


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:

bash /var/lib/asterisk/bin/ ^{CALL-ID}

I understand that this variable is not built-in MIXMON, so I have to define it from CHANNEL(pjsip,call-id)

How can I achieve this?

Informing you that I made site progress, I implemented bash /var/lib/asterisk/bin/ ^{CHANNEL(pjsip,call-id)}.

For outbound calls, Call-Idof the client matches the CHANNEL(pjsip,call-id), for example lca2c1gibv5p28oubsfl, no problem :partying_face:

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 ? :woozy_face:

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.