Perfect!, after more digging I found this line in the documentation of for mod sofia
All inbound SIP calls will install any X- headers into local variables
but I wasnt sure about the syntax, Thanks!

On 08/09/2010 09:36 AM, Sergey Okhapkin wrote:
${sip_h_X-MyHeader}

On Monday 09 August 2010, Jesse Cloutier wrote:
  Hi all,
Is there a way to read custom sip headers (eg: P-MyHeader or X-MyHeader)
in the freeswitch dialplan?

I am using freeswitch as a SBC and would like to pass certain variables
to it for the cdr.

Thanks!
Jesse Cloutier


_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org