Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] testing caller IP address in dialplan


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
botelist at gmail.com
Guest





PostPosted: Mon Feb 07, 2022 10:51 pm    Post subject: [Freeswitch-users] testing caller IP address in dialplan Reply with quote

Test the “Caller-Network-Addr” channel variable, although I am not certain if you should use hyphen - or underscore _ as they have different meanings in FS.

You can test any FreeSWITCH channel variable as a condition in the dialplan, not only the destination_number.

To find the proper variable, create a dialplan record that executes the “info” dialplan app and then call that extension:
<action application="info"/>

This will display all channel variables associated with that call on the fs_cli console.

Here is the link to the wiki article about the info app:

https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools%3A+info


Bote Man
Bote Communications



From: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> On Behalf Of Adiseshu Channasamudhram
Sent: Monday, 7 February, 2022 17:21
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] FreeSWITCH-users Digest, Vol 188, Issue 12



Hello Henning



how can i include a condition so that it applies these exports only if the From is from a particular IP?



Thanks a for your input by the way - helped a lot



Regards



Adi


From: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)> on behalf of freeswitch-users-request@lists.freeswitch.org (freeswitch-users-request@lists.freeswitch.org) <freeswitch-users-request@lists.freeswitch.org (freeswitch-users-request@lists.freeswitch.org)>
Sent: Monday, February 7, 2022 3:20 PM
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org) <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Subject: FreeSWITCH-users Digest, Vol 188, Issue 12



Send FreeSWITCH-users mailing list submissions to
freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
or, via email, send a message with subject or body 'help' to
freeswitch-users-request@lists.freeswitch.org (freeswitch-users-request@lists.freeswitch.org)

You can reach the person managing the list at
freeswitch-users-owner@lists.freeswitch.org (freeswitch-users-owner@lists.freeswitch.org)

When replying, please edit your Subject line so it is more specific
than "Re: Contents of FreeSWITCH-users digest..."
Back to top
csadi at hotmail.com
Guest





PostPosted: Mon Feb 07, 2022 11:04 pm    Post subject: [Freeswitch-users] testing caller IP address in dialplan Reply with quote

I got it working thank you It is network_addr


Regards


Adi

Sent from my iPhone

Quote:
On Feb 7, 2022, at 10:09 PM, Bote Man <botelist@gmail.com> wrote:

 v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} <![endif]--> <![endif]--> <![endif]-->
Test the “Caller-Network-Addr” channel variable, although I am not certain if you should use hyphen - or underscore _ as they have different meanings in FS.

You can test any FreeSWITCH channel variable as a condition in the dialplan, not only the destination_number.

To find the proper variable, create a dialplan record that executes the “info” dialplan app and then call that extension:
<action application="info"/>

This will display all channel variables associated with that call on the fs_cli console.

Here is the link to the wiki article about the info app:

https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools%3A+info


Bote Man
Bote Communications



From: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> On Behalf Of Adiseshu Channasamudhram
Sent: Monday, 7 February, 2022 17:21
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] FreeSWITCH-users Digest, Vol 188, Issue 12



Hello Henning



how can i include a condition so that it applies these exports only if the From is from a particular IP?



Thanks a for your input by the way - helped a lot



Regards



Adi


From: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)> on behalf of freeswitch-users-request@lists.freeswitch.org (freeswitch-users-request@lists.freeswitch.org) <freeswitch-users-request@lists.freeswitch.org (freeswitch-users-request@lists.freeswitch.org)>
Sent: Monday, February 7, 2022 3:20 PM
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org) <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Subject: FreeSWITCH-users Digest, Vol 188, Issue 12



Send FreeSWITCH-users mailing list submissions to
freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
or, via email, send a message with subject or body 'help' to
freeswitch-users-request@lists.freeswitch.org (freeswitch-users-request@lists.freeswitch.org)

You can reach the person managing the list at
freeswitch-users-owner@lists.freeswitch.org (freeswitch-users-owner@lists.freeswitch.org)

When replying, please edit your Subject line so it is more specific
than "Re: Contents of FreeSWITCH-users digest..."



Back to top
csadi at hotmail.com
Guest





PostPosted: Wed Feb 09, 2022 6:15 pm    Post subject: [Freeswitch-users] testing caller IP address in dialplan Reply with quote

Hello FS team

Is there any way to prepend a text tag to p-asserted-identity? Outside the <


Thanks


Adi

Sent from my iPhone

Quote:
On Feb 7, 2022, at 10:29 PM, Adiseshu Channasamudhram <csadi@hotmail.com> wrote:

 I got it working thank you It is network_addr


Regards


Adi

Sent from my iPhone

Quote:
On Feb 7, 2022, at 10:09 PM, Bote Man <botelist@gmail.com> wrote:

 v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} <![endif]--> <![endif]--> <![endif]-->
Test the “Caller-Network-Addr” channel variable, although I am not certain if you should use hyphen - or underscore _ as they have different meanings in FS.

You can test any FreeSWITCH channel variable as a condition in the dialplan, not only the destination_number.

To find the proper variable, create a dialplan record that executes the “info” dialplan app and then call that extension:
<action application="info"/>

This will display all channel variables associated with that call on the fs_cli console.

Here is the link to the wiki article about the info app:

https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools%3A+info


Bote Man
Bote Communications



From: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> On Behalf Of Adiseshu Channasamudhram
Sent: Monday, 7 February, 2022 17:21
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] FreeSWITCH-users Digest, Vol 188, Issue 12



Hello Henning



how can i include a condition so that it applies these exports only if the From is from a particular IP?



Thanks a for your input by the way - helped a lot



Regards



Adi


From: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)> on behalf of freeswitch-users-request@lists.freeswitch.org (freeswitch-users-request@lists.freeswitch.org) <freeswitch-users-request@lists.freeswitch.org (freeswitch-users-request@lists.freeswitch.org)>
Sent: Monday, February 7, 2022 3:20 PM
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org) <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Subject: FreeSWITCH-users Digest, Vol 188, Issue 12



Send FreeSWITCH-users mailing list submissions to
freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
or, via email, send a message with subject or body 'help' to
freeswitch-users-request@lists.freeswitch.org (freeswitch-users-request@lists.freeswitch.org)

You can reach the person managing the list at
freeswitch-users-owner@lists.freeswitch.org (freeswitch-users-owner@lists.freeswitch.org)

When replying, please edit your Subject line so it is more specific
than "Re: Contents of FreeSWITCH-users digest..."





Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services