[Freeswitch-users] testing caller IP address in dialplan

Adiseshu Channasamudhram csadi at hotmail.com
Tue Feb 8 03:29:39 UTC 2022


I got it working thank you
It is network_addr

Regards

Adi

Sent from my iPhone

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


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 at lists.freeswitch.org> On Behalf Of Adiseshu Channasamudhram
Sent: Monday, 7 February, 2022 17:21
To: freeswitch-users at 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 at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org>> on behalf of freeswitch-users-request at lists.freeswitch.org<mailto:freeswitch-users-request at lists.freeswitch.org> <freeswitch-users-request at lists.freeswitch.org<mailto:freeswitch-users-request at lists.freeswitch.org>>
Sent: Monday, February 7, 2022 3:20 PM
To: freeswitch-users at lists.freeswitch.org<mailto:freeswitch-users at lists.freeswitch.org> <freeswitch-users at lists.freeswitch.org<mailto:freeswitch-users at lists.freeswitch.org>>
Subject: FreeSWITCH-users Digest, Vol 188, Issue 12

Send FreeSWITCH-users mailing list submissions to
        freeswitch-users at lists.freeswitch.org<mailto:freeswitch-users at 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 at lists.freeswitch.org<mailto:freeswitch-users-request at lists.freeswitch.org>

You can reach the person managing the list at
        freeswitch-users-owner at lists.freeswitch.org<mailto:freeswitch-users-owner at lists.freeswitch.org>

When replying, please edit your Subject line so it is more specific
than "Re: Contents of FreeSWITCH-users digest..."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20220208/f5d2d33a/attachment.html>


More information about the FreeSWITCH-users mailing list