On Mon, May 12, 2008 at 06:04:12PM -0400, Andreas van dem Helge wrote:
> [...]
> The "Channel" is ALWAYS dialed first.
More importantly the below contains a fairly fundamental
misunderstanding. That extensions.conf fragment is always running
against the channel that was created either by an incoming call or by
the "Channel" statement in the call file. Or, another way of saying it
is that the "Channel" statement in a call file creates the connection
given and then drops it into the dialplan as if it were an incoming call
to be answered etc.
So the TxFax here is always running against this "incoming" channel. It
is _never_ running against the channel dialled above it. The dial just
creates a _new_ channel, bridges it to the local channel and waits for
hang up. The only time a Dial returns to the dialplan (in the absence of
options) is if it fails to establish the new connection - in which case
it returns after setting ${DIALSTATUS}.
Mike
> On Mon, May 12, 2008 at 10:55 AM, Gerald Cox <[EMAIL PROTECTED]> wrote:
> > How come whenever I invoke the outgoing fax part of callweaver, it dials
> > without invoking Dial(), or anything else, in the extensions.conf?
> >
> > If there's no answer on the other end, it doesn't do anything that's in
> > the extensions.conf.
> >
> > The file passed into the 'outgoing' folder is as follows:
> > "Channel: SIP/VoIPout/15755237824
> > MaxRetries: 0
> > WaitTime: 30
> >
> > Set: LOCALSTATIONID=8005555555
> > Set: LOCALHEADERINFO=8005555555
> > Set: FAXFILE=/tmp/uploadTest.tif
> > Set: NUMBER=15755237824
> > CallerID: <8005555555>
> >
> > Context: faxTest
> > Extension: s
> > priority: 1"
> >
> >
> > The faxTest part of extensions.conf is as follows:
> >
> > "[faxTest]
> > exten => s,1,Answer()
> > exten => s,2,NoOp(NUMBER:${NUMBER})
> > exten => s,3,Dial(SIP/[EMAIL PROTECTED])
> > exten => s,4,NoOp(Fax Testing*****)
> > exten => s,5,TxFAX(${FAXFILE},caller,ecm)
> > exten => s,6,NoOp(NUMBER:${NUMBER})
> > exten => h,1,NoOp(TX: REMOTESTATIONID is ${REMOTESTATIONID})
> > exten => h,n,NoOp(TX: PHASEESTATUS is ${PHASEESTATUS})"
> >
> > If I comment out everything but 'TxFAX', it still dials and tries to
> > send a fax.
> >
> > Anyone know how to make the outgoing fax use the stuff in
> > extensions.conf?
> >
> > _______________________________________________
> > Callweaver-users mailing list
> > [email protected]
> > http://lists.callweaver.org/mailman/listinfo/callweaver-users
> >
> _______________________________________________
> Callweaver-users mailing list
> [email protected]
> http://lists.callweaver.org/mailman/listinfo/callweaver-users
>
--
--
Mike Jagdis Web: http://www.eris-associates.co.uk
Eris Associates Limited Tel: +44 7780 608 368
Reading, England Fax: +44 118 926 6974
_______________________________________________
Callweaver-users mailing list
[email protected]
http://lists.callweaver.org/mailman/listinfo/callweaver-users