I have a setup where there is a SIP trunk into my machine and an IAX2 trunk to a unix domain socket. So basically incoming calls from SIP phones end up sending IAX2 messages to the socket where an application reads the IAX messages and does some work. I am setting an IAXVAR in the incoming dialplan based on the values of some SIP headers. I know I can access the IAXVAR in the dialplan, but is it possible to access the iaxvar in my code? i.e. are IAXVARs stored in the NEW message?
Thanks, Wray