[OpenSIPS-Users] Trunking Calls Onward

Bogdan-Andrei Iancu bogdan at voice-system.ro
Mon May 3 11:13:24 CEST 2010


Hi Mike,

I see several solutions already posted, but I may suggest one ever 
simpler and much faster :
    - the ENUM have the provisioning overhead  (to set each DID ) and 
the penalty on lookup (dns lookup for the calls)
    - the alias_db_lookup suffers from the same issues (provisioning 
each DID and DB query for each call)

So, I suggest using the dialplan module for this purpose 
(http://www.opensips.org/html/docs/modules/1.6.x/dialplan.html). The 
module allows you do the translation based on regexp, so you can define 
blocks of DID (regexp based matching) to lead to a specific domain / ip 
(where the forward the call).

See 
http://www.opensips.org/html/docs/modules/1.6.x/dialplan.html#id227206 , 
case 1.4.1.2 where you can use a regxep to match the input (the DID) and 
return a fix string, a replacement (the target domain).

So, you can provision blocks of DIDs (via regexps), use opensips Control 
Panel to provision the rule (see .http://opensips-cp.sourceforge.net/)  
Also the module is doing caching, so the lookup is really fast.

Regards,
Bogdan

Mike O'Connor wrote:
> Hi All
>
> I have a need to forward calls onward for a range of DID's, but the
> other end is not going to Register. I think this is called trunking.
>
> I need to be able to configure the DID's and the ip/port there being on
> forwarded too.
> What methods should I use to do this ?
>
> I've look at a number of options but the issue is that for the functions
> like 'seturi' do not allow variables only static strings.
>
> Thanks
> Mike
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>   


-- 
Bogdan-Andrei Iancu
www.voice-system.ro




More information about the Users mailing list