[Serusers] Dont allow calls using Exec module

Ryan Pagquil rpagquil at philonline.com
Wed Mar 22 17:24:39 CET 2006


Hi Carsten,
         Thanks for the reply. Just want to know how slow does your 
prototype is? I want to make this in production would you suggest 
doing this? or there is something that is faster solution that this?

Thanks,
Ryan

At 02:20 AM 3/23/2006, Carsten Bock wrote:
>Hi Ryan,
>
>You can simply use return-codes: In a PHP-Skript i used for 
>Fast-Prototyping and a Feasability Study, i did simply add a 
>"exit(1);" in my Skript for Failure and a "return 0;" for success.. 
>In the routing logic i then could do the following:
>
>if (!exec_message("Skript-Name")) {
>    sl_send_reply("403", "Destination not allowed");
>}
>
>Worked fine for me.... (the Prototype was terribly slow, but it was 
>just a Prototype and Feasability Study: who cares?)
>
>Carsten
>
>Ryan Pagquil schrieb:
>>Hi,
>>     Is there a way to block calls using exec module? I'm wondering 
>> if I can make SER to check if the dialcode prefix of a certain 
>> call exist in a database. If not the call will be dropped. Is this 
>> possible for exec module? Any hint?
>>
>>Thanks in advance,
>>Ryan
>>
>>_______________________________________________
>>Serusers mailing list
>>serusers at lists.iptel.org
>>http://lists.iptel.org/mailman/listinfo/serusers
>
>_______________________________________________
>Serusers mailing list
>serusers at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers





More information about the sr-users mailing list