<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt>Hello,<br>
<br>
I am using the permission module to validate the IP:PORT of an
incoming request. When executing the "check_address" function, I
am not getting a return from the function call and after 4 tries
opensips crashes. I am running version 1.8.2 on solaris sparc 64.
I have included the code that is being executed and part of the
output from the log file when trying to debug.<br>
<br>
</tt><small><font face="Courier New">xlog("checking if the request
is from a valid IP source
..............................................................");<br>
<br>
if(check_address("1","$si","$sp","$proto")) {<br>
xlog("L_INFO", "INFO:callerid:$ci|log|call originated
from external pstn gateway sources");<br>
setflag(26);<br>
<br>
} else {<br>
<br>
xlog("checking if the request is from a valid internal IP
source
=========================================..........................");<br>
<br>
if (ds_is_in_list("$si", "$sp", "1", "1")) {<br>
xlog("L_INFO", "INFO:callerid:$ci|log|call
originated from internal sources");<br>
setflag(27);<br>
setbflag(27);<br>
} else {<br>
xlog("L_WARN", "WARN:callerid:$ci|end|SIP messages
is not from a valid IP address and port: $si:$sp");<br>
sl_send_reply("503", "Rawr!!");<br>
exit;<br>
}<br>
}</font></small><tt><br>
<br>
Thanks<br>
<br>
Nathaniel</tt>
</body>
</html>