Oh it was exactly how you suggested it. What I figured out what why it wasn't working for me. It's because I had originally created my Asterisk Dialplan to handle the From field in the format <number>@<IP Address>, so I was removing the @ and '<>' etc from it, whereas if I use the X-Original-IP to simply be the $network_addr variable then I don't need to do any manipulation. 

Thanks
|RR

On Thu, Apr 22, 2010 at 4:11 PM, David Ponzone <david.ponzone@gmail.com> wrote:
Can you share it, just in case ?

Even if Asterisk is obviously not the topic here, FreeSWITCH integration into an Asterisk-based architecture is always an interesting subject, as it allows smooth 100% migration to FreeSWITCH :)

David Ponzone  Direction Technique
tel:      01 74 03 18 97
gsm:   06 66 98 76 34

Service Client IPeva
tel:      0811 46 26 26

Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.




Le 22/04/2010 à 22:03, RR a écrit :

Sorry ignore that question. I figured it out :)

Thanks

On Thu, Apr 22, 2010 at 3:54 PM, RR <ranjtech@gmail.com> wrote:
Hi David,

The method below to extract the value of or access X-Original-IP didn't work in Asterisk. I really want to avoid going to the Asterisk mailing list...so if anyone can help figuring out how I can access custom header value in an Asterisk Dialplan, I would be really grateful.

Thanks
RR

2010/4/21 Brian West <brian@freeswitch.org>
In freeswitch the incoming X-Headers are done with sip_h_X-Header as a variable.

/b

On Apr 21, 2010, at 1:15 PM, David Ponzone wrote:

It's not the right place for this but well :)

Should be ${SIP_HEADER(X-Original-IP)}

David Ponzone  Direction Technique
tel:      01 74 03 18 97
gsm:   06 66 98 76 34

Service Client IPeva
tel:      0811 46 26 26

Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.







_______________________________________________
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


_______________________________________________
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