[OpenSIPS-Users] using dialplan to prefix dialed number for specific accounts

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Apr 5 21:36:46 CEST 2011


Hi Andrew,

On 04/05/2011 02:28 PM, Andrew Pogrebennyk wrote:
> Hi,
> for some accounts identified by ANI I need to add a prefix e.g. 001234 
> before the dialed number. Initially I've been using the dialplan 
> module with ANI being used as a key for lookup by dpid in dialplan 
> table. But dpid is declared int so I cannot accommodate account 
> numbers greater than 2147483647. And it doesn't look like I can ALTER 
> dpid to bigint or something like that, without having to hack with the 
> source code.
> Still I'd like to use the dialplan module for that. Any hints?
>

But why using the ANI as dpid and not using it as regexp part in the 
rule ? See:
     http://www.opensips.org/html/docs/modules/1.6.x/dialplan.html#id249000
section 1.4.1.2 or 1.4.1.4

Regards,
Bogdan

-- 
Bogdan-Andrei Iancu
OpenSIPS eBootcamp - 2nd of May 2011
OpenSIPS solutions and "know-how"




More information about the Users mailing list