Hi,<br><br>I am trying to route SIP messages to a gateway. I am using SIP MESSAGE over UDP as well as the MSILO module for storing messages for users that aren&#39;t currently logged in. I have read through the Dynamic Routing module info but am not able to determine the best way to accomplish the routing I require. Our scenario is outlined below.<br>
<br>User A sends a message addressed to &quot;<a href="mailto:sip%3A12345678900@mydomain.com">sip:12345678900@mydomain.com</a>&quot;<br>Kamailio at <a href="http://mydomain.com">mydomain.com</a> checks if 12345678900 is a registered user in the system. <br>
If not, the message header is translated to &quot;sip:12345678900@gatewaydomain..com&quot; and forwarded.<br>Incoming messages need to be accepted from their IP as well.<br><br>It would also be useful if the address came as &quot;<a href="mailto:sip%3A2345678900@mydomain.com">sip:2345678900@mydomain.com</a>&quot; could be translated to &quot;sip:<u>1</u><a href="mailto:2345678900@gatewaydomain.com">2345678900@gatewaydomain.com</a>&quot;.<br>
<br><br>Is there any built in functionality I can configure for this, or will this need to be scripted?<br><br><br>Thanks,<br>Ed<br>