Peter Verhoeven wrote:
> Thanks, I have tried to set the context in iax.conf as follows:
>
> [general]
> bindport=4569                   ; bindport and bindaddr may be specified
> bindaddr=0.0.0.0
> disallow=all
> allow=ulaw
> allow=alaw
>
> [iaxmodem]
> type=friend
> secret=password
> bindport=4570
> host=dynamic
> context=faxout  ; also tried "outgoing"
> disallow=all
> allow=alaw
>
> And in extensions.conf I have:
>
> [faxout]
> exten => s,1,Set(LOCALSTATIONID=CallWeaver FAX)
> exten => s,n,Set(LOCALHEADERINFO=Callweaver fax termination)
> exten => s,n,Set(FAXFILE=/tmp/${UNIQUEID}.tif)
> exten => s,n,Set(SIP_CODEC=alaw)
> exten => s,n,SipDTMFMode(inband)
> exten => s,n,TxFAX(${FAXFILE},caller,debug,ecm)
> exten => s,n,Hangup()
> exten => h,1,NoOp(TX: REMOTESTATIONID is ${REMOTESTATIONID})
> exten => h,n,NoOp(TX: FAXPAGES is ${FAXPAGES})
> exten => h,n,NoOp(TX: FAXRESOLUTION  is ${FAXRESOLUTION})
> exten => h,n,NoOp(TX: FAXBITRATE is ${FAXBITRATE})
> exten => h,n,NoOp(TX: PHASEESTATUS is ${PHASEESTATUS})
> exten => h,n,NoOp(TX: PHASEESTRING is ${PHASEESTRING})
>
> [outgoing]
> exten => _X.,1,Dial(SIP/${ext...@wdp)
>
>
> With using the "faxout" context it tries to look for the faxnumber I'm 
> sending to as an extension which it can't find and fails.
> With the "outgoing" context it makes a call but it drops audio packets and 
> fails. It appears to not even be treating it as a fax, nor T.38.
>
>
> I somehow need it to use the "faxout" context, like the spoolfile test does.
>   
[faxout] is setup to send a fax that is present in /tmp. [outgoing] is 
dialing as expected. Update [outgoing] to this:

|[outgoing]
exten => _X.,1,Wait(1)
exten => _X.,n,SipT38SwitchOver()
exten => _X.,n,Dial(SIP/${ext...@wdp)
|


This may or may not work. And, keep in mind, I'm not entirely sure if 
Callweaver can do channel conversion from SIP/T.38 to IAX/aLaw. I'd done 
some testing of this a few months ago and I recall the fax/channel 
failing completely or T.38 simply not switching. I certainly hope this 
has changed in recent months. :-)

--Tim
_______________________________________________
Callweaver-users mailing list
Callweaver-users@callweaver.org
http://lists.callweaver.org/mailman/listinfo/callweaver-users

Reply via email to