[asterisk-users] t38 iax trunk

David Backeberg dbackeberg at gmail.com
Mon Mar 16 10:29:44 CDT 2009


On Mon, Mar 16, 2009 at 6:05 AM, dubravko caric
<dubravko_caric at yahoo.com> wrote:
> fax -> SIP ATA (T38 enabled) -> Asterisk #1 -> IAX TRUNK -> Asterisk #2 ->
> SIP ATA (T38 enabled) -> fax
>
> My question is, how can I know if I'm really using T38? is T38 information
> coming to the other side (because of SIP to IAX conversion) or just plain
> g711a data?

You don't give dialplan samples, but if you're using Asterisk SendFax
and ReceiveFax from app_fax...

You can answer this directly in your dialplan:

exten => s,1,Answer
exten => s,n,Set(LOCALSTATIONID=faxmodem01)
exten => s,n,Set(LOCALPATH=/var/spool/fax/recvq/${LOCALSTATIONID}/)
exten => s,n,Set(MYLOCALDATE=${STRFTIME(${EPOCH},,%C%y-%m-%d-%H%M)})
exten => s,n,Set(MYFILENAME=${LOCALSTATIONID}-${MYLOCALDATE}-${CDR(uniqueid)})
exten => s,n,Set(MYFULLPATH=${LOCALPATH}${MYFILENAME})
exten => s,n,ReceiveFax(${MYFULLPATH}.tif)

exten => h,1,System(/bin/echo
${MYFULLPATH},${CALLERID(num)},${CALLERID(name)},${FAXSTATUS},${FAXERROR},${FAXMODE},${FAXPAGES},${REMOTESTATIONID}
>> ${LOCALPATH}fax.log)
exten => h,n,Hangup



More information about the asterisk-users mailing list