[asterisk-dev] 'IAX2 call variable passing between servers '
Douglas Garstang
dgarstang at oneeighty.com
Fri Aug 11 12:00:53 MST 2006
> -----Original Message-----
> From: Andrew Kohlsmith [mailto:akohlsmith-asterisk at benshaw.com]
> Sent: Friday, August 11, 2006 12:39 PM
> To: asterisk-dev at lists.digium.com
> Subject: Re: [asterisk-dev] 'IAX2 call variable passing
> between servers
> '
>
>
> On Friday 11 August 2006 13:55, Douglas Garstang wrote:
> > Aren't dnid and rdnis set by/when phone-B sends 'Moved
> Temporarily' back to
> > Asterisk? If so, I don't understand how setting those variables on
> > Asterisk-A is going to help. I thought rdnis was plucked out of the
> > 'Diverted' header by Asterisk.
>
> Depends on what you were looking at; On my PRI I get RDNIS
> from the switch,
> and IIRC I am not able to send RDNIS to redirect. I have
> never tried,
> though.
>
> In that case, are you using 'g' in your Box-B dialplan and
> moving on from
> there?
It's my understanding that rdnis comes from the phone. When someone forwards their calls, the phone sends back the 'Moved Temporarily' message to Asterisk. Asterisk interprets the SIP message and passes rdnis, dnid and extension back to the dial plan when it re-enters it. It tries to dial the new extension. My original DIAL() command has 'g' in it... which I guess is what causes Asterisk to re-enter the dial plan as it does, and try to find a match for the new extension.
More information about the asterisk-dev
mailing list