Hi, I’ve found quiet a few topics on this but they all seem to be old and no longer work. We are doing auto-dial calls where we need to change the outbound callee to have a custom P-Asserted-Identity header. But, have run into the following errors:
[macro-dialout-trunk-predial-hook]
;exten => s,1,Noop("DOING PAID TEST")
;exten => s,n,Set(HASH(__PJSIPHEADERS,P-Asserted-Identity)="CUST PAID" <sip:1234567890>)
"No application 'SIPAddHeader' for extension"
[macro-dialout-trunk-predial-hook]
;exten => s,1,Noop("DOING PAID TEST)
;exten => s,n,Set(PJSIP_HEADER(add,P-Asserted-Identity)="CUST PAID" <sip:1234567890>)
"This function requires a PJSIP channel."
What is the proper way to be adding the custom header? Thanks!
Thank you, but I forgot to add that I’ve also tried that one as well and get the following response:
-- Executing [[email protected]:5] Set("PJSIP/Prisma_static-0000012f", "SIPHEADERKEYS=Alert-Info,P-Asserted-Identity") in new stack
-- Executing [[email protected]:6] ExecIf("PJSIP/Prisma_static-0000012f", "1?Set(Rheader=1)") in new stack
-- Executing [[email protected]:7] While("PJSIP/Prisma_static-0000012f", "1") in new stack
-- Executing [[email protected]:8] Set("PJSIP/Prisma_static-0000012f", "sipheader=unset") in new stack
[2023-05-15 12:08:12] WARNING[21507][C-0000014a]: pbx.c:2928 pbx_extension_helper: No application 'SIPAddHeader' for extension (func-apply-sipheaders, s, 9)
too many ‘_’ for the _SIPHEADERS. But, now I need the FROM header to match this header. Where would I go about seeing where that is set in the CONF files and doing an update?