[Freeswitch-users] testing caller IP address in dialplan

Adiseshu Channasamudhram csadi at hotmail.com
Wed Feb 9 23:04:45 UTC 2022


Hello FS team

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

Thanks

Adi

Sent from my iPhone

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

 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/20220209/7a205c1e/attachment-0001.html>


More information about the FreeSWITCH-users mailing list