I am new to Opensips. I'd like to setup Opensips as wholesale sip trunking switch. Here is what I want to do:<br>1) For incoming calls from carrier. Check called number and determine which IP (customer PBX IP) to forward to. Which module should I use to do this? (carrier routing, droute or something else?). I need to have every customer DID in the database to determine which IP to send call to. Can I do this with Opensips? Example will be great.<br>2) For outgoing calls from customer PBX. Check the customer PBX IP. If&nbsp; it is in our database, forward the call our carrier gateway. If the IP is not in our database, reject it. Which module should I use for this ?<br>3) log all the CDR for billing purpose. Do I need to have RTP going through our to do the accurate accounting? I'd really like to not have RTP going through our server. This will save a lot of bandwidth.<br><br>If you&nbsp; can show me the real configuration file that will be great.<br><br>Thanks advance.<br><br>Gary<br><br>&nbsp;<br>