[OpenSER-Users] crash when checking empty destination uri

Papadopoulos Georgios geop at altectelecoms.gr
Fri Jul 6 16:09:33 CEST 2007


Hello,
 
I have the following line in my script which causes OpenSER (1.2) to
crash when the execution gets there for an ACK.
if ($du=~"[@:](192\.168\.|10\.|172\.(1[6-9]|2[0-9]|3[0-1])\.)")
It gets at this line when an ACK is received and after loose_route()
returns true. So I am guessing the destination uri is null at that point
and the check causes OpenSER to crash.
 
If I add the following check then everything works fine.
if (isdsturiset() &&
$du=~"[@:](192\.168\.|10\.|172\.(1[6-9]|2[0-9]|3[0-1])\.)")
 
thank you
 
George
 

Disclaimer
The information in this e-mail and any attachments is confidential. It is intended solely for the attention and use of the named addressee(s). If you are not the intended recipient, or person responsible for delivering this information to the intended recipient, please notify the sender immediately. Unless you are the intended recipient or his/her representative you are not authorized to, and must not, read, copy, distribute, use or retain this message or any part of it. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20070706/b3fb9ce2/attachment.htm 


More information about the Users mailing list