What we do: VOIP time wholesale. We buy at a rate from Terminating companies and sell at a rate to call originating companies.
What we want: Using Asterisk we would like to route our incoming voip calls to another gateway for termination. For example our Asterisk server is B. Call originating Box is A and the terminating gateway is C. Box A and C are remotely located and are not under our control. Box A originates the call, sends the traffic to us(B) and our job is to route the traffic to Box C for termination.
Originator is sending the traffic to us and only knows that the traffic is going to us. We bill him accordingly. On the other hand the terminator only knows that traffic is coming from us. He bills us accordingly. We match our bill with their CDR or bill. We should have a mechanism so that we can route only those traffics that are registered with us and have proper authorisation (either prepaid or post paid upto a certain amount)
We want prefix based routing and also routing based on gateways. We want both the option seperately or combined. For example, we may route Gateway to A to Gateway B for all calls. We may also route Gateway A to Gateway C for all calls with 97 country code only. Gateway F to Gateway D for all calls with 88 country code only. Later on we may find that Gateway C is full. It does not have any more ports to terminate. In that case we want to route Gateway to G (joined us later) to Gateway F for all calls with same 97 country code. The above rule may apply again. The above prefix may combine country code+citycode or any string written or selected. So it is basically a combination of Gateway and prefix.
We support both SIP and H323. We should have the facility to work with both the protocols.
Our software should support all standard codecs that works with SIP and H323
We should have an option so that we can choose to keep our server to stay in media path or allow media to flow between end points directly
We need a CDR for billing purpose. Each call originating gateway owners will be able to see how many minutes they have used or bought from us along with following
From_Date_Time to To_Date_time
Phone number wise
Called number wise
and others fields needed
Authenticate based on IP and Payment Status - Prepaid and Postpaid
5 freelancers are bidding on average $2975 for this job
Be careful. I had management duty for such project. It's called "proxing gateway". It took about 1 year of development for team of 5 developers only with H.323 protocol.