Thanks Brian,

maybe it's the version of FS that we're using that has a problem but the rdnis variable doesn't even show in the info app dump. The only place I could get the diversion info was in the sip_h_Diversion variable but that has the entire Diversion header instead of just the rdnis. Will have to capture this using regex and then do anything with it. 

You think this is because of the version of FreeSWITCH we have or is this a bug somewhere. Sorry we can't test this out by upgrading the FS version as this is the only environment we have and its all production :(

Thanks
RR

On Wed, Jun 23, 2010 at 12:44 PM, Brian West <brian@freeswitch.org> wrote:
${rdnis}  use the info app to dump it.

/b

On Jun 23, 2010, at 11:33 AM, RR wrote:

> Hello All,
>
> I have a call coming in with a Diversion header attached to it but after trying various DialPlan Variables  i.e. rdnis, dialed_user and  sip_redirect_contact_user_0, I can't seem to extract the rdnis information from the SIP header to then use to route or do any other operation on. Which variable holds this info? How do I get it/use it in the dialplan?