IAX – Equivalent Of SipAddHeader
Hi list,
is there any existing IAX command to add information to a call like SipAddHeader? Another solution is sending text frame (0x07) frame type, but I don know how do it in a dialplan.
Thanks for any hint.
Hi list,
is there any existing IAX command to add information to a call like SipAddHeader? Another solution is sending text frame (0x07) frame type, but I don know how do it in a dialplan.
Thanks for any hint.
3 thoughts on - IAX – Equivalent Of SipAddHeader
You can do it with IAXVAR.
https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+Function_IAXVAR
exten => 100,1,Set(IAXVAR(myvar)=foo)
exten => 100,n,Dial(OTHERHOST/201)
on OTHERHOST
exten => 201,1,Set(myvar=${IAXVAR(myvar)})
exten => 201,n,NoOP(My variable is ${myvar})
Le 24/10/2016
voip-info is severely out of date and should be ignored for most things.
I linked you directly to the official Asterisk Wiki for the page on IAXVAR
for version 14. I don’t have a 14 box with IAX myself but I trust that wiki to be correct.