I’m updating a script that uses AMI to originate calls but I’m having issues adding a custom sipheader (nothing exciting, we just need a client code). Much of the documentation I’ve found mentioned adding a SIPADDHEADERS variable but nothing seems to work. My current AMI action looks something like this (using the method mentioned at voip-info:
Variable: __SIPADDHEADER51=X-CLIENT: TESTCODE
I’ve been using sngrep to watch my test calls and the X-CLIENT header just isn’t present. I’ve also attempted using __SIPADDHEADERS0. The machine in question is running Asterisk 13.38.1, which I’m unfortunately unable to update at this time. (long story). Does anyone know a method that would work with this version?