[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
Re: axc-v0.7b Number Formatter1 how to?
Gregg Liming wrote:
> 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/
>
...oops... I didn't read closely enough. The option,
"number-formatter"
is used for handling inbound numbers--not outbound. Either adjust your
asterisk context handling or cause SB to dial the correct number to
begin with. If "38" is something peculiar to your asterisk
dial-out,
then (IMO), it makes sense to adjust things in asterisk.
Gregg
------------------------------------
xAP_Automation Main Index |
xAP_Automation Thread Index |
xAP_Automation Home |
Archives Home
|