[Serusers] Dont allow calls using Exec module
Carsten Bock
ser-list at qbiz.de
Thu Mar 23 11:20:19 CET 2006
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
>
More information about the sr-users
mailing list