I've set up an IncrediblePi 3.11.12 B+ box with multiple GV accounts. For each GV DID, I want to use FaxDispatch to deliver faxes as pdfs to an email address determined by the called number. Multiple searches all say that $(EXTEN) in the iaxmodem dial plan (forgive me if my terminology is off) should make the DID come into FaxDispatch as $CALLID4, but I've been going in circles for the last day and a half with no luck.
I have inbound routes for each GV DID number that go to custom destination "Fax" and faxes are being received and emailed - but they all drop down to the catchall case and go to [email protected]. In the email template $CALLID4 shows up blank, so it's not getting populated. I've tried every variable I could come up with, but I cannot seem to populate $CALLID4 with the DID number. Is there anything obvious that I'm missing?
This is /var/spool/hylafax/etc/FaxDispatch:
[email protected]
TEMPLATE=en/hylafax-html
FILETYPE=pdf
case "$CALLID4" in
631nnnnnnn)
SENDTO="[email protected]"
TOADDR="[email protected]"
;;
347nnnnnnn)
SENDTO="[email protected]"
TOADDR="[email protected]"
;;
*)
SENDTO="[email protected]"
TOADDR="[email protected]"
;;
esac
This is the relevant portion AFAIK of /etc/asterisk/extensions_custom.conf (unchanged from install):
[custom-fax-iaxmodem]
exten => s,1,Dial(IAX2/iax-fax0/${EXTEN})
exten => s,n,Dial(IAX2/iax-fax1/${EXTEN})
exten => s,n,Dial(IAX2/iax-fax2/${EXTEN})
exten => s,n,Dial(IAX2/iax-fax3/${EXTEN})
exten => s,n,Busy
exten => s,n,Hangup
I'll post other conf/log files if needed, just not sure which ones.
thanks,
Russ
I have inbound routes for each GV DID number that go to custom destination "Fax" and faxes are being received and emailed - but they all drop down to the catchall case and go to [email protected]. In the email template $CALLID4 shows up blank, so it's not getting populated. I've tried every variable I could come up with, but I cannot seem to populate $CALLID4 with the DID number. Is there anything obvious that I'm missing?
This is /var/spool/hylafax/etc/FaxDispatch:
[email protected]
TEMPLATE=en/hylafax-html
FILETYPE=pdf
case "$CALLID4" in
631nnnnnnn)
SENDTO="[email protected]"
TOADDR="[email protected]"
;;
347nnnnnnn)
SENDTO="[email protected]"
TOADDR="[email protected]"
;;
*)
SENDTO="[email protected]"
TOADDR="[email protected]"
;;
esac
This is the relevant portion AFAIK of /etc/asterisk/extensions_custom.conf (unchanged from install):
[custom-fax-iaxmodem]
exten => s,1,Dial(IAX2/iax-fax0/${EXTEN})
exten => s,n,Dial(IAX2/iax-fax1/${EXTEN})
exten => s,n,Dial(IAX2/iax-fax2/${EXTEN})
exten => s,n,Dial(IAX2/iax-fax3/${EXTEN})
exten => s,n,Busy
exten => s,n,Hangup
I'll post other conf/log files if needed, just not sure which ones.
thanks,
Russ
Last edited: