[Freeswitch-users] SIP Profile

Peter Olsson peter.olsson at visionutveckling.se
Wed Jun 29 12:03:59 MSD 2011

You need to escape the dots, ie 192\.168\.4\.10. That should make things work as expected.


Från: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] För sharad
Skickat: den 29 juni 2011 09:47
Till: freeswitch-users at lists.freeswitch.org
Ämne: [Freeswitch-users] SIP Profile


I want my FS to entertain only those calls which are coming from a specific IP address .

For this, I have defined a profile in vars.xml as

        <X-PRE-PROCESS cmd="set" data="profile_00="/>.

        & another line in public.xml as

        <extension name="transfer_to_context_01">

        <condition field="${sip_from_host}" expression="$${profile_00}">

        <action application="transfer" data="${destination_number} XML sharad"/>



As per my understanding, if call is coming from, that call should be processed as per the context `sharad'.....correct ?

Yes, it works like this. Upto here all is ok.

But if the call is coming from 192.168.100 -, these calls also are processed as per context `sharad'.

Means entire IP is not matched by condition field.

Is there any solution for this.

Requesting all of you to help me in this regard.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110629/2849fa78/attachment.html 

More information about the FreeSWITCH-users mailing list