The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: axc-v0.7b Number Formatter1 how to?



hometecky wrote:
> Question How do I format a number dialed by SB to add 38 to prefix all
> numbers dialed by a perticular Trunk?
>
> currently have the following:
>
> [greyhawk]
> incoming_channel = IAX2/greyhawk
> outgoing_channel = IAX/interoffice
> country_code     = 1
> network-type     = VPSTN
> dialer           = VPSTN
> dial_context     = from-internal
> number-formatter = s/1?(\d{10})/$1/

If *any* number preceded by '38', then:

number-formatter = s/(\d+)/38$1/


------------------------------------


xAP_Automation Main Index | xAP_Automation Thread Index | xAP_Automation Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.