Hi <br>I try to check the username in the URI, this is, if the username do not have ten digits then send a message, I made:<br><br>avp_write("^[0-9]{10}","$avp(s:fm_avp)");<br>if(avp_check("$fU","fm/$avp(s:fm_avp)/g")) {<br> insert_hf("To-username: -$fU- \r\n", "Call-ID");<br> } else {<br> sl_send_reply("400", "Bad Request");<br> exit;<br>};<br><br>but I ever obtain 400 message.<br><br>I try too with:<br>if(avp_check("$fU","re/[0-9]{10}$/g")) {<br> insert_hf("To-username: -$fU- \r\n", "Call-ID");<br>else{<br>
sl_send_reply("400", "Bad request");<br> exit;<br> }<br><br>But I obtain the same message. Any idea?<br><br><p> __________________________________________________<br>Correo Yahoo!<br>Espacio para todos tus mensajes, antivirus y antispam ¡gratis! <br>Regístrate ya - http://correo.yahoo.com.mx/