PJSIP_HEADER in AMI not working as expected

Hi all,

With reference to AMI Call with PJSIP

I’m using asterisk 18.16.0 and am trying to originate a call via the AMI and set some custom headers. However, when using “Variable: PJSIP_HEADER(add,X-NewHeader)=1” as I expect from the quoted link, I don’t see the header on the channel specified. Please see attached screenshots and advise? I suspect it’s a n00b error but I’m honestly just not seeing it…

image

Are those blank lines actually in your request? If so, try removing them

Also please provide logs and configurations a text, not images.

This here did the trick… Thanks JColp. Can’t believe I was being that daft :expressionless:

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