[Freeswitch-users] Restrict SIP registration

Peter Steinbach lists at telefaks.de
Thu Dec 5 20:59:49 MSK 2013


xml_curl looks a server URL with the registration params.

So you will need to set up a web server (e.g. with apache/php, Ruby,
Perl, Python or anything else), manage these parameters and return an
XML to Freeswitch based on the parameters.
Some programming skills will be needed for that.

Best regards
Peter

On 12/05/13 17:47, Mehroz Ashraf wrote:
>
> Thats great . Thanks guys.
> Well looking into xml_curl , i cant see where am i getting that param.
> It says that the xml file is posted on the binding url. Do i have to
> write a script that can handle that xml file and retrieve my
> interested parameters? Correct? And do we have any such script on wiki?
>
> On Dec 4, 2013 10:40 PM, "Steven Ayre" <steveayre at gmail.com
> <mailto:steveayre at gmail.com>> wrote:
>
>     Remember that the User-Agent can be changed by the caller, they
>     can send anything they choose. Don't authenticate on it alone.
>
>
>     On 4 December 2013 11:46, Peter Steinbach <lists at telefaks.de
>     <mailto:lists at telefaks.de>> wrote:
>
>         Hello Andrew,
>
>         if you manage your SIP registrations via xml_curl instead of a
>         static dialplan, you have the variable "sip_user_agent" (e.g.
>         sip_user_agent=Aastra%206739i/3.2.2.2044) available in the
>         params, and then you can restrict the registrations based on
>         the content in this variable.
>
>
>         Best regards
>         Peter
>
>
>
>         On 12/04/13 10:33, Andrew Cassidy wrote:
>>         IPtables string matching is probably the easiest way
>>         (assuming no tls on these clients)
>>
>>         http://www.netfilter.org/documentation/HOWTO/netfilter-extensions-HOWTO-3.html#ss3.18
>>
>>
>>         On 4 December 2013 07:52, mehroz <mehroz.ashraf85 at gmail.com
>>         <mailto:mehroz.ashraf85 at gmail.com>> wrote:
>>
>>             Hi All,
>>
>>             We already know that we can allow/deny a SIP end point to
>>             get registered to
>>             FreeSWITCH on the basis of IP , but what about if we want
>>             it to filter
>>             "User-Agent" field in REGISTER packets to be the key for
>>             registration.
>>
>>             Since , we can also use TLS based registration but some
>>             soft phones does not
>>             have that capability. In that case , is there any way of
>>             passing only
>>             specified USER AGENT SIP client?
>>
>>             Thanks
>>
>>
>>
>>             --
>>             View this message in context:
>>             http://freeswitch-users.2379917.n2.nabble.com/Restrict-SIP-registration-tp7596017.html
>>             Sent from the freeswitch-users mailing list archive at
>>             Nabble.com.
>>
>>             _________________________________________________________________________
>>             Professional FreeSWITCH Consulting Services:
>>             consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>>             http://www.freeswitchsolutions.com
>>
>>             
>>             
>>
>>             Official FreeSWITCH Sites
>>             http://www.freeswitch.org
>>             http://wiki.freeswitch.org
>>             http://www.cluecon.com
>>
>>             FreeSWITCH-users mailing list
>>             FreeSWITCH-users at lists.freeswitch.org
>>             <mailto:FreeSWITCH-users at lists.freeswitch.org>
>>             http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>             UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>             http://www.freeswitch.org
>>
>>
>>
>>
>>         -- 
>>         *Andrew Cassidy BSc (Hons) MBCS SSCA*
>>         Managing Director
>>
>>
>>         *T <mailto:info at cassidywebservices.co.uk> *03300 100 960  *F
>>         <mailto:info at cassidywebservices.co.uk> *03300 100 961
>>         *E
>>         <mailto:info at cassidywebservices.co.uk> *andrew at cassidywebservices.co.uk
>>         <mailto:andrew at cassidywebservices.co.uk>
>>         *W
>>         <mailto:info at cassidywebservices.co.uk> *www.cassidywebservices.co.uk
>>         <http://www.cassidywebservices.co.uk>
>>
>>
>>         _________________________________________________________________________
>>         Professional FreeSWITCH Consulting Services:
>>         consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>>         http://www.freeswitchsolutions.com
>>
>>         
>>         
>>
>>         Official FreeSWITCH Sites
>>         http://www.freeswitch.org
>>         http://wiki.freeswitch.org
>>         http://www.cluecon.com
>>
>>         FreeSWITCH-users mailing list
>>         FreeSWITCH-users at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org>
>>         http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>         UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>         http://www.freeswitch.org
>
>
>         -- 
>         With kind regards
>         Peter Steinbach 
>
>         Telefaks Services GmbH
>         mailto:lists (att) telefaks.de <http://telefaks.de>
>         Internet: www.telefaks.de <http://www.telefaks.de>
>
>
>         _________________________________________________________________________
>         Professional FreeSWITCH Consulting Services:
>         consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>         http://www.freeswitchsolutions.com
>
>         
>         
>
>         Official FreeSWITCH Sites
>         http://www.freeswitch.org
>         http://wiki.freeswitch.org
>         http://www.cluecon.com
>
>         FreeSWITCH-users mailing list
>         FreeSWITCH-users at lists.freeswitch.org
>         <mailto:FreeSWITCH-users at lists.freeswitch.org>
>         http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>         UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>         http://www.freeswitch.org
>
>
>
>     _________________________________________________________________________
>     Professional FreeSWITCH Consulting Services:
>     consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>     http://www.freeswitchsolutions.com
>
>     
>     
>
>     Official FreeSWITCH Sites
>     http://www.freeswitch.org
>     http://wiki.freeswitch.org
>     http://www.cluecon.com
>
>     FreeSWITCH-users mailing list
>     FreeSWITCH-users at lists.freeswitch.org
>     <mailto:FreeSWITCH-users at lists.freeswitch.org>
>     http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>     UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>     http://www.freeswitch.org
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org


-- 
With kind regards
Peter Steinbach 

Telefaks Services GmbH
mailto:lists (att) telefaks.de
Internet: www.telefaks.de

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20131205/307ec38e/attachment.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list