[asterisk-dev] 'IAX2 call variable passing between servers '

Douglas Garstang dgarstang at oneeighty.com
Mon Aug 14 09:49:20 MST 2006


> -----Original Message-----
> From: Andrew Kohlsmith [mailto:akohlsmith-asterisk at benshaw.com]
> Sent: Monday, August 14, 2006 10:32 AM
> To: asterisk-dev at lists.digium.com
> Subject: Re: [asterisk-dev] 'IAX2 call variable passing 
> between servers
> '
> 
> 
> On Friday 11 August 2006 16:43, Douglas Garstang wrote:
> > I don't know if I'd call it a continuation of the dial 
> plan. The relevant
> > context here has _X. in it, so there's nowhere else to go 
> after it executes
> > that. Therefore, it must be matching _X. again.
> 
> Even so, when Dial() completes (failure or not) and there is 
> no 'g' option 
> there, the 'h' extension is called to handle the hangup.  _X. 
> won't match 
> that.
> 
> > ooga looks good... of course the problem here is that if 
> you trunked the
> > call from pbxA to pbxB via IAX, you don't get rdnis. :(
> 
> Why not?
> 
> pbxA:
> Set(IAXVAR(RDNIS)=${CALLERID(rdnis)})
> Dial(IAX2/user at pbxB/${EXTEN})
> 
> pbxB:
> Set(REMOTE_RDNIS=${IAXVAR(RDNIS)})
> Agi(do_something_funky.agi)

This makes no sense to me. RDNIS isn't set until phone B, on the other side of the trunk forwards a call. What's the point of setting it on this side of the trunk, before the call is placed?

Doug.



More information about the asterisk-dev mailing list