Henry,
If I understand you correctly, then what you're trying to do is pretty
straight forward.
As you suggest, just route incoming faxes to the FXS port and let your fax
machine take care of it.
On the outgoing side, I would create a context for each dial-around then
include those contexts in the starting context of your fax line.
For this example, we will assume that:
- have an analog line (or group of lines) connected on Zap/g1
- you want to send calls to the Montreal area (area codes 514 and 450) with
a prefix of 1010-220
- you want to send UK calls (intl code 011, country code 44) out with prefix
1010-330
- you have a deviant in your office who dials sex chat lines and you need to
prevent it
; Sample portion of extensions.conf
[Montreal_Dial_Around]
; This context inserts dial-around digits for cheaper PSTN calling to
Montreal
exten => _1514.,1,NoOp(Using 1010-220 Dial Around for Montreal Area)
exten => _1514.,2,Dial(Zap/g1/1010220${EXTEN})
exten => _1514.,3,HangUp
[UK_Dial_Around]
; This context inserts dial-around digits for cheaper PSTN calling to the UK
exten => _01144.,1,Noop(Dialing 1010-330 Dial Around for UK)
exten => _01144.,2,Dial(Zap/g1/1010330${EXTEN})
exten => _01144.,3,HangUp
[Outbound_Calling_Direct]
; This context allows for dialing PSTN calls without dialing 9
; Do not include this context for regular stations, it will interfere with
internal dialing
exten => _X.,1,Dial(Zap/g1/${EXTEN})
[Outbound_Calling_Prohibited]
; This context prohibits dialing 1-9XX numbers since high toll charges may
apply
exten => _1976.,1,Noop(A Naughty user tried to dial a 1-976 number. Call
will be prevented.)
exten => _1976.,2,Playback(feature-not-avail-line) ; "That Feature is not
available on this line"
exten => _1976.,3,Hangup
exten => _1900.,1,Noop(A Naughty user tried to dial a 1-900 number. Call
will be prevented.)
exten => _1900.,2,Playback(feature-not-avail-line) ; "That Feature is not
available on this line"
exten => _1900.,3,Hangup
[FAX_Machines]
include => Outbound_Calling_Prohibited ; Prevent dialing 976 on the fax
line
include => Montreal_Dial_Around ; Apply our cheap dial around code for
Montreal
include => UK_Dial_Around ; Apply our cheap dial around code for
the UK
include => Outbound_Calling_Direct ; Send everything else out the analog
line just as dialed
; End of Example
Notes:
- The order of the includes is important. If you include the
Outbound_Calling_Direct context first, then you'll never hit any of your
dial-around contexts.
- Set context=FAX_Machines in your zapata.conf for the fax machine's line.
- I put [FAX_Machines] last but it could have been the first context in the
file. The order in which contexts appear in the file is not relevant
- Include statements cause asterisk to respect order. Just jamming all
those extens in one context would not have the same effect at all.
- You could obviously control lots of things in the prohibit context, IE 411
and other pay services.
- My example isn't complete. You still have to handle built-in extensions
like h, i, etc.
- Thanks to Mike Fletcher for reminding me at the last meeting that this is
the preferred structure for including contexts.
Caveats:
- There's a decent chance that the dial around service you're using converts
calls to VOIP or some other compressed form. If that's the case, you're
going to run into the same problem as if you have VOIPed it yourself. This
used to be the case with London Telecom and Fax or Modem calls on their
network. The compression they used made it impossible.
- This may not be the best solution. You may be able to use a Fax over IP
protocol to relay the fax to an overseas provider who would then terminate
it for you cheaply. Hit the wiki.
On 2/2/06, Henry Coleman [VoIP-PBX.ca] <[EMAIL PROTECTED]> wrote:
>
> Another mind bender ?
> I have a prospective *Asterisk client who spends over $1100 per month on
> LD/International Fax calls
>
> We have tried everything to get the fax machine to work over VoIP but to
> no avail.
> As a plan "B" we could install FXO and FXS ports .
> Incoming faxes would simply be transfered straight from FXO to FXS
> Outgoing faxes would go the other way FXS to FXO but can I intercept
> the call capture the digits and based on the number dialed
> select a dial-around, dial out via the FXO port followed by the original
> number dialed. and if I can do this will the completed circuit be an
> analog
> bridge between the two ?
>
> Hope you can help
> --
>
> Henry L. Coleman
>
>
--
David Donovan
Consultant
Fulcrum Solutions