passing originating IP when configured as a B2BUA
Hello list, we have an FS server configured as a call-distributor (using "mod_distributor") to a bank/farm of Asterisk servers. However, since the FS is acting like a B2BUA, it's not passing the originating IP (network_addr) from the originating switch/gateway to the Asterisk farm (as expected). However, we need to have this information in the Asterisk servers. How can we achieve this? Do we need to create/insert a custom SIP header when passing on the call or set a variable or any other way? Any help on the issue will be much appreciated Thanks in advance, RR
Setting a customer SIP header seems a nice way to do that. And easy. David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34 Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com 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 21/04/2010 à 01:24, RR a écrit :
Hello list,
we have an FS server configured as a call-distributor (using "mod_distributor") to a bank/farm of Asterisk servers. However, since the FS is acting like a B2BUA, it's not passing the originating IP (network_addr) from the originating switch/gateway to the Asterisk farm (as expected). However, we need to have this information in the Asterisk servers. How can we achieve this? Do we need to create/insert a custom SIP header when passing on the call or set a variable or any other way?
Any help on the issue will be much appreciated
Thanks in advance, RR _______________________________________________ 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
Thanks David. We know the custom header is the way to go but didn't know how to send that in the header. After a little research, discovered that we could use the sip_invite_domain channel variable to forward the call with the original "From" Header to the Asterisk Farm. Just thought it would help someone else out in the future :) On Tue, Apr 20, 2010 at 9:16 PM, David Ponzone <david.ponzone@gmail.com>wrote:
Setting a customer SIP header seems a nice way to do that. And easy.
David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34
Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com
*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 21/04/2010 à 01:24, RR a écrit :
Hello list,
we have an FS server configured as a call-distributor (using "mod_distributor") to a bank/farm of Asterisk servers. However, since the FS is acting like a B2BUA, it's not passing the originating IP (network_addr) from the originating switch/gateway to the Asterisk farm (as expected). However, we need to have this information in the Asterisk servers. How can we achieve this? Do we need to create/insert a custom SIP header when passing on the call or set a variable or any other way?
Any help on the issue will be much appreciated
Thanks in advance, RR _______________________________________________ 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
Well, yes. Or you use the network_addr variable, and you put it in a custom header X-Original-IP or whatever. David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34 Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com 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 21/04/2010 à 17:34, RR a écrit :
Thanks David. We know the custom header is the way to go but didn't know how to send that in the header. After a little research, discovered that we could use the sip_invite_domain channel variable to forward the call with the original "From" Header to the Asterisk Farm. Just thought it would help someone else out in the future :)
On Tue, Apr 20, 2010 at 9:16 PM, David Ponzone <david.ponzone@gmail.com
wrote: Setting a customer SIP header seems a nice way to do that. And easy.
David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34
Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com
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 21/04/2010 à 01:24, RR a écrit :
Hello list,
we have an FS server configured as a call-distributor (using "mod_distributor") to a bank/farm of Asterisk servers. However, since the FS is acting like a B2BUA, it's not passing the originating IP (network_addr) from the originating switch/gateway to the Asterisk farm (as expected). However, we need to have this information in the Asterisk servers. How can we achieve this? Do we need to create/insert a custom SIP header when passing on the call or set a variable or any other way?
Any help on the issue will be much appreciated
Thanks in advance, RR _______________________________________________ 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
_______________________________________________ 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
Cool, that works too. But I guess in Asterisk it's easier to extract the "FROM" header using the SIP_HEADER function than some custom header variable...although it might just be easy, I just don't know how to do it. Thanks anyway, RR On Wed, Apr 21, 2010 at 11:43 AM, David Ponzone <david.ponzone@gmail.com>wrote:
Well, yes. Or you use the network_addr variable, and you put it in a custom header X-Original-IP or whatever.
David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34
Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com
*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 21/04/2010 à 17:34, RR a écrit :
Thanks David. We know the custom header is the way to go but didn't know how to send that in the header. After a little research, discovered that we could use the sip_invite_domain channel variable to forward the call with the original "From" Header to the Asterisk Farm. Just thought it would help someone else out in the future :)
On Tue, Apr 20, 2010 at 9:16 PM, David Ponzone <david.ponzone@gmail.com>wrote:
Setting a customer SIP header seems a nice way to do that. And easy.
David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34
Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com
*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 21/04/2010 à 01:24, RR a écrit :
Hello list,
we have an FS server configured as a call-distributor (using "mod_distributor") to a bank/farm of Asterisk servers. However, since the FS is acting like a B2BUA, it's not passing the originating IP (network_addr) from the originating switch/gateway to the Asterisk farm (as expected). However, we need to have this information in the Asterisk servers. How can we achieve this? Do we need to create/insert a custom SIP header when passing on the call or set a variable or any other way?
Any help on the issue will be much appreciated
Thanks in advance, RR _______________________________________________ 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
_______________________________________________ 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
Try the info app... I will bet you money the answer to your question is already there. /b On Apr 21, 2010, at 1:07 PM, RR wrote:
Cool, that works too. But I guess in Asterisk it's easier to extract the "FROM" header using the SIP_HEADER function than some custom header variable...although it might just be easy, I just don't know how to do it.
Thanks anyway, RR
It's not the right place for this but well :) Should be ${SIP_HEADER(X-Original-IP)} David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34 Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com 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 21/04/2010 à 20:07, RR a écrit :
Cool, that works too. But I guess in Asterisk it's easier to extract the "FROM" header using the SIP_HEADER function than some custom header variable...although it might just be easy, I just don't know how to do it.
Thanks anyway, RR
On Wed, Apr 21, 2010 at 11:43 AM, David Ponzone <david.ponzone@gmail.com
wrote: Well, yes. Or you use the network_addr variable, and you put it in a custom header X-Original-IP or whatever.
David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34
Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com
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 21/04/2010 à 17:34, RR a écrit :
Thanks David. We know the custom header is the way to go but didn't know how to send that in the header. After a little research, discovered that we could use the sip_invite_domain channel variable to forward the call with the original "From" Header to the Asterisk Farm. Just thought it would help someone else out in the future :)
On Tue, Apr 20, 2010 at 9:16 PM, David Ponzone <david.ponzone@gmail.com
wrote: Setting a customer SIP header seems a nice way to do that. And easy.
David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34
Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com
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 21/04/2010 à 01:24, RR a écrit :
Hello list,
we have an FS server configured as a call-distributor (using "mod_distributor") to a bank/farm of Asterisk servers. However, since the FS is acting like a B2BUA, it's not passing the originating IP (network_addr) from the originating switch/gateway to the Asterisk farm (as expected). However, we need to have this information in the Asterisk servers. How can we achieve this? Do we need to create/insert a custom SIP header when passing on the call or set a variable or any other way?
Any help on the issue will be much appreciated
Thanks in advance, RR _______________________________________________ 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
_______________________________________________ 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
_______________________________________________ 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
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 email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34
Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com
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.
David, Thanks. I was thinking the same thing but figured it's neater for me to modify the FROM header so even the CDRs will have the correct origination IP as the CDRs might/will not carry the customer X-Header by default and we'll have to extract it and insert it into the Asterisk CDRs to capture the origination IP. Brian, Yep got that from what David said. Like I said, I figured out how to do it, just didn't know in Asterisk how to extract a customer header in SIP. Thanks all \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 email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34
Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com
*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
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 email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34
Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com
*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
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 email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34
Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com
*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
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 email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34 Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com 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 email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34
Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com
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
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 email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34
Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com
*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 email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34
Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com
*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
_______________________________________________ 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
participants (3)
-
Brian West
-
David Ponzone
-
RR