Answer the question
In order to leave comments, you need to log in
How to add SipAddHeader for all calls?
Good afternoon.
There is telephony based on FreePBX Distro.
The task is to add the UNIQUEID value to absolutely all calls (internal, outgoing, incoming) in the SIP Header for further analysis of calls in CRM.
In extensions_custom.conf I add:
exten => _.,1,SIPaddheader(Unique-ID: ${UNIQUEID})
And when we receive an incoming call from another internal number, we see that the necessary information has been received:
No matter how I twisted SIPaddheader
it in this file, I can't add UNIQUEID to the header of outgoing calls, and incoming calls "from outside".
UPDATE:
In extensions_custom.conf added the following:
[macro-dialout-one-predial-hook]
exten => s,1,SIPAddHeader(X-Unique-ID: ${UNIQUEID})
exten => s,n,MacroExit()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question