[OpenSIPS-Users] Pre append area code to dialed phone number
Mike O'Connor
mike at oeg.com.au
Thu Sep 1 11:51:56 CEST 2011
Hi Răzvan
The issue is that the rules are different for each state of Australia,
so I need to select the correct rule bases on the state the customer is
calling from.
I've been reading the dialplan doc page and I do not see a method of
selecting the rules bases on an external non number rules.
So I need another method of rewriting the phone number, the $tU does not
allow R/W so I need another function which will allow me to edit the $tU
field.
Mike
On 1/09/11 4:57 PM, Razvan Crainea wrote:
> Hi Mike,
>
> I think that the dialplan module [1] fits in your scenario.
> You can use regular expressions to match each state code and append
> the corresponding area code.
> These rules can be added in your database using OpenSIPS CP.
>
> [1] http://www.opensips.org/html/docs/modules/devel/dialplan.html
>
> Regards,
> --
> Răzvan Crainea
> OpenSIPS Developer
>
> On 31.08.2011 05:39, Mike O'Connor wrote:
>> Hi All
>>
>> I need to pre append an area code to phone numbers as configuring the
>> clients dial plans is driving me mad.
>>
>> How do I update just the phone number in an invite. The match is
>> complicated as each state in Australia has a different set of
>> prefixes which would require the addition of a different area code.
>>
>> Thanks
>> Mike
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
More information about the Users
mailing list