TimmiORG
(TimmiORG)
March 17, 2018, 1:21pm
6
H,
this is the solution for the problem.
PJSIP and subroutines are not working any more. I understood that this is expected.
The right way is to make use out of the SIPHEADERS hash map. You can fill it within the [macro-dialout-trunk-predial-hook].
An example could be found here:
I noticed that something important has changed at this point. I don’t have a full understanding of “the new method”. Investigating and reading many docs I found a solution which seems to work for me:
There are functions which are adding these headers to the sip data stream. The function uses the SIPHEADERS variable to fetch custom/new/addtional headers. So I added the following code to the “old” [macro-dialout-trunk-predial-hook]:
[macro-dialout-trunk-predial-hook]
exten => s,1,NoOp(**********…
Best regards
Timmi