[OpenSIPS-Users] Pre append area code to dialed phone number

Razvan Crainea razvancrainea at opensips.org
Thu Sep 1 11:57:43 CEST 2011


Hello Mike,

If you need to replace the To header, then you must use the 
"uac_replace_to" function [1].

[1] http://www.opensips.org/html/docs/modules/devel/uac.html#id250475

Regards,

--
Răzvan Crainea
OpenSIPS Developer


On 01.09.2011 12:51, Mike O'Connor wrote:
> 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