This seems to be a big limitation of Asterisk. You can't pass variables, either set with setvar in sip.conf, or channel or even global variables, when you trunk a call from one Asterisk system to another with IAX. Considering that DUNDi is used for peering and redundancy, and IAX is used in the transport of the call, passing any variables from Asterisk system 1 to Asterisk system 2 is of _critical_ importance. Doug.
We have had success with sending data in the dialstring. I know this isn't optimal at all, but it has worked flawlessly for us for the last two years. We just send the data (star-delimited) in the dial string and parse it out in an AGI script on the other end where you can assign it to a variable if you like. Here's and example of one dial string we used today over IAX: 7275551212*TESTCAMP*12345*JOHN STEWART*CUSTOMER SERVICE*54321 You can use alpha-numeric and as long as you match by a wildcard and parse through an AGI on the other end it all works out well. As for true and proper variables in IAX streams, that would be a very nice feature. MATT--- On 7/17/06, Douglas Garstang <dgarstang@oneeighty.com> wrote:> This seems to be a big limitation of Asterisk. > You can't pass variables, either set with setvar in sip.conf, or channel or even global variables, when you trunk a call from one Asterisk system to another with IAX. Considering that DUNDi is used for peering and redundancy, and IAX is used in the transport of the call, passing any variables from Asterisk system 1 to Asterisk system 2 is of _critical_ importance. > > Doug. > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
> -----Original Message----- > From: Matt Florell [mailto:astmattf@gmail.com] > Sent: Monday, July 17, 2006 1:50 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [asterisk-users] Passing Variables with IAX > > > We have had success with sending data in the dialstring. I know this > isn't optimal at all, but it has worked flawlessly for us for the last > two years. > > We just send the data (star-delimited) in the dial string and parse it > out in an AGI script on the other end where you can assign it to a > variable if you like. Here's and example of one dial string we used > today over IAX: > 7275551212*TESTCAMP*12345*JOHN STEWART*CUSTOMER SERVICE*54321 > > You can use alpha-numeric and as long as you match by a wildcard and > parse through an AGI on the other end it all works out well. > > As for true and proper variables in IAX streams, that would be a very > nice feature. > > MATT---Thanks for the reply Matt. It's good to know I'm not going crazy and someone else has tried to do this. I thought about passing the variables in one of the IAX arguments, but wasn't sure if it was the best way or not. Turns out it might be. Doug.