<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;">Hello, I have set up call forwarding in Kamailio using user_preference table. When I make a call from a local extension the callfwd funcition works. The call gets forwarded to an external did number. The problem happens when and external call ( from a DID) comes to this extension the call does not get forwarded. I had to comment out the following lines in the config file to make it work:</div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"><br></div><div style="background-color: transparent;"><font face="arial, helvetica, sans-serif"># only local users allowed to call</font></div><div style="background-color: transparent;"><font face="arial, helvetica, sans-serif">#  if((from_uri!=myself)) {</font></div><div style="background-color:
 transparent;"><font face="arial, helvetica, sans-serif">#  sl_send_reply("403", "Not Allowed");</font></div><div style="background-color: transparent;"><font face="arial, helvetica, sans-serif">#  exit;</font></div><div style="background-color: transparent;"><font face="arial, helvetica, sans-serif"># }</font></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: arial, helvetica, sans-serif; font-style: normal;"><font face="arial, helvetica, sans-serif"><br></font></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: arial, helvetica, sans-serif; font-style: normal;"><font face="arial, helvetica, sans-serif">My question is if it is a risky think to comment out these lines? If so, what are my options.</font></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: arial, helvetica, sans-serif; font-style:
 normal;"><font face="arial, helvetica, sans-serif"><br></font></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: arial, helvetica, sans-serif; font-style: normal;"><font face="arial, helvetica, sans-serif">Thank you,</font></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: arial, helvetica, sans-serif; font-style: normal;"><font face="arial, helvetica, sans-serif">Arun</font></div></div></body></html>