[OpenSIPS-Users] OpenSIPS Summit Amsterdam 2015 - Heads UP !
Heads up, there are 2 weeks to the OpenSIPS Summit in Amsterdam, 12th-13th of May. The schedule is fully set: http://www.opensips.org/Community/Summit-2015Amsterdam-Schedule and we have a 50+ registrations received. We have a limit of 70, so do not wait for the last days to register !! Looking at the schedule, topics and number of participants, I can definitely say it will be an awesome event ! Not to mention the Social Event (read beer here) on the 12th evening ;) Everything was done with the help of our sponsors: VoiPro Netherlands Motto Communications Looking forward to see you in Amsterdam !! Best regards, -- Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] ANIs check for source number
You can use the dialplan module to check against valid ANIs and reply with a 403. On Thu, Apr 30, 2015 at 12:09 PM, Satish Patel satish@gmail.com wrote: Question: what happen if client send call using random string in RPID/PAI/From header (non-standard ANIs) How to verify ANIs for those headers? is there a blacklist or any method which scan ANIs for source and block them? ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- Aron Podrigal - //Be happy :-) ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] ANIs check for source number
Do you think instead of using dialplan i can just use Regex like ^(011|\+)[1-9][0-9]{10,14} to match Source string? Dialplan is advance method which use transformation etc.. we we don't need. We just want to make sure Source address is compliant with ANIs or E.164 standard because out SIP provide doesn't allow random 4 or 5 digit string in RPID or FROM. What do you suggest? On Thu, Apr 30, 2015 at 12:56 PM, Podrigal, Aron ar...@guaranteedplus.com wrote: Have a look here http://www.opensips.org/html/docs/modules/1.11.x/dialplan.html#id294016 On Thu, Apr 30, 2015 at 12:49 PM, Satish Patel satish@gmail.com wrote: I believe dialplan only check destination number, doesn't it? How it will work with Source number which is coming inside RPID/PAI/From: header? On Thu, Apr 30, 2015 at 12:30 PM, Podrigal, Aron ar...@guaranteedplus.com wrote: You can use the dialplan module to check against valid ANIs and reply with a 403. On Thu, Apr 30, 2015 at 12:09 PM, Satish Patel satish@gmail.com wrote: Question: what happen if client send call using random string in RPID/PAI/From header (non-standard ANIs) How to verify ANIs for those headers? is there a blacklist or any method which scan ANIs for source and block them? ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- Aron Podrigal - //Be happy :-) ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- Aron Podrigal - //Be happy :-) ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] ANIs check for source number
I believe dialplan only check destination number, doesn't it? How it will work with Source number which is coming inside RPID/PAI/From: header? On Thu, Apr 30, 2015 at 12:30 PM, Podrigal, Aron ar...@guaranteedplus.com wrote: You can use the dialplan module to check against valid ANIs and reply with a 403. On Thu, Apr 30, 2015 at 12:09 PM, Satish Patel satish@gmail.com wrote: Question: what happen if client send call using random string in RPID/PAI/From header (non-standard ANIs) How to verify ANIs for those headers? is there a blacklist or any method which scan ANIs for source and block them? ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- Aron Podrigal - //Be happy :-) ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] ANIs check for source number
Have a look here http://www.opensips.org/html/docs/modules/1.11.x/dialplan.html#id294016 On Thu, Apr 30, 2015 at 12:49 PM, Satish Patel satish@gmail.com wrote: I believe dialplan only check destination number, doesn't it? How it will work with Source number which is coming inside RPID/PAI/From: header? On Thu, Apr 30, 2015 at 12:30 PM, Podrigal, Aron ar...@guaranteedplus.com wrote: You can use the dialplan module to check against valid ANIs and reply with a 403. On Thu, Apr 30, 2015 at 12:09 PM, Satish Patel satish@gmail.com wrote: Question: what happen if client send call using random string in RPID/PAI/From header (non-standard ANIs) How to verify ANIs for those headers? is there a blacklist or any method which scan ANIs for source and block them? ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- Aron Podrigal - //Be happy :-) ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- Aron Podrigal - //Be happy :-) ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] ANIs check for source number
yes of course you can use just a regex. That would need to match any standard ^\+?[1-9]\d{1,14}$ BTW, 011 (as countrycode plus number) I think is invalid form, the stranded allows ANI to be up to 15 digit and does not have a min length. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] userblacklist strange behavior
mysql select * from userblacklist; ++--+++---+ | id | username | domain | prefix | whitelist | ++--+++---+ | 1 | 1001 ||| 0 | | 2 | 9198362323 ||| 0 | ++--+++---+ If i set $avp(user) = 1001; then it works! but if i set $avp(user) = 9198362323; doesn't work what is the problem ? route[user_blacklist] { $avp(user) = 9198362323; if (!check_user_blacklist($avp(user), $avp(i:82))) { sl_send_reply(403, User Blocked); exit; }; } ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] ANIs check for source number
Thanks Ben, didn't know that. On Thu, Apr 30, 2015 at 4:38 PM, Newlin, Ben ben.new...@inin.com wrote: There is also a function in the URI module for checking if the user portion of a URI is an E.164 number. http://www.opensips.org/html/docs/modules/1.11.x/uri.html#id294513 From: Podrigal, Aron Reply-To: OpenSIPS users mailling list Date: Thursday, April 30, 2015 at 1:20 PM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] ANIs check for source number yes of course you can use just a regex. That would need to match any standard ^\+?[1-9]\d{1,14}$ BTW, 011 (as countrycode plus number) I think is invalid form, the stranded allows ANI to be up to 15 digit and does not have a min length. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- Aron Podrigal - //Be happy :-) ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] ANIs check for source number
There is also a function in the URI module for checking if the user portion of a URI is an E.164 number. http://www.opensips.org/html/docs/modules/1.11.x/uri.html#id294513 From: Podrigal, Aron Reply-To: OpenSIPS users mailling list Date: Thursday, April 30, 2015 at 1:20 PM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] ANIs check for source number yes of course you can use just a regex. That would need to match any standard ^\+?[1-9]\d{1,14}$ BTW, 011 (as countrycode plus number) I think is invalid form, the stranded allows ANI to be up to 15 digit and does not have a min length. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] ANIs check for source number
i tried to using is_uri_user_e164 () but it will allow anything with '+' sign, like if i set +1001 its allowing... I want to match E.164 or ANI string match logic so it should be something like 16463272823 44635364894 like those number.. i don't want send random string to my SIP provide so they can block me.. On Thu, Apr 30, 2015 at 4:38 PM, Newlin, Ben ben.new...@inin.com wrote: There is also a function in the URI module for checking if the user portion of a URI is an E.164 number. http://www.opensips.org/html/docs/modules/1.11.x/uri.html#id294513 From: Podrigal, Aron Reply-To: OpenSIPS users mailling list Date: Thursday, April 30, 2015 at 1:20 PM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] ANIs check for source number yes of course you can use just a regex. That would need to match any standard ^\+?[1-9]\d{1,14}$ BTW, 011 (as countrycode plus number) I think is invalid form, the stranded allows ANI to be up to 15 digit and does not have a min length. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Dynamic routing based on a shell variable with Opensips
Dear all, I would like to consult to you if it is possible to make SIP routing( for my case to different IMS nodes) according to a shell variable . For example is the variable is 1 make the routing to IMS node1 , if 2 make the routing to IMS node2 What is the correct way to implement this scenario? Which module need to be used? Dispatcher module? Load Balancer Module or Dynamic Routing Module? Thanks for your kind support BR,Kaan___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] userblacklist strange behavior
nevermind, i found issue it was double quote string so use *$(fn{s.select,1,\}) to get rid on it* On Thu, Apr 30, 2015 at 4:34 PM, Satish Patel satish@gmail.com wrote: mysql select * from userblacklist; ++--+++---+ | id | username | domain | prefix | whitelist | ++--+++---+ | 1 | 1001 ||| 0 | | 2 | 9198362323 ||| 0 | ++--+++---+ If i set $avp(user) = 1001; then it works! but if i set $avp(user) = 9198362323; doesn't work what is the problem ? route[user_blacklist] { $avp(user) = 9198362323; if (!check_user_blacklist($avp(user), $avp(i:82))) { sl_send_reply(403, User Blocked); exit; }; } ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] ANIs check for source number
Question: what happen if client send call using random string in RPID/PAI/From header (non-standard ANIs) How to verify ANIs for those headers? is there a blacklist or any method which scan ANIs for source and block them? ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users