[asterisk-users] Problem with Hylafax
Dave Fullerton
dfullertasterisk at shorelinecontainer.com
Tue Jun 15 12:37:03 CDT 2010
On 06/15/2010 12:48 PM, Samantha wrote:
> Hey Guys
>
> I have hylafax working about 95%
>
> The problem is I have a DID for fax 0742244224
>
> When I receive a fax I see in the log file
> n 16 02:44:19] VERBOSE[3679] logger.c: -- Executing
> [0742244224 at from-sip-external:1] NoOp("SIP/5060-0a2f7308", "Received
> incoming SIP connection from unknown peer to 0742244224") in new stack
> [Jun 16 02:44:19] VERBOSE[3679] logger.c: -- Executing
> [0742244224 at from-sip-external:2] Set("SIP/5060-0a2f7308", "DID=0742244224")
> in new stack
> [Jun 16 02:44:19] VERBOSE[3679] logger.c: -- Executing
> [0742244224 at from-sip-external:3] Goto("SIP/5060-0a2f7308", "s,1") in new
> stack
> [Jun 16 02:44:19] VERBOSE[3679] logger.c: -- Goto
> (from-sip-external,s,1)
> [Jun 16 02:44:19] VERBOSE[3679] logger.c: -- Executing
> [s at from-sip-external:1] GotoIf("SIP/5060-0a2f7308",
> "1?from-trunk,0742244224,1") in new stack
> [Jun 16 02:44:19] VERBOSE[3679] logger.c: -- Goto
> (from-trunk,0742244224,1)
> [Jun 16 02:44:19] VERBOSE[3679] logger.c: -- Executing
> [0742244224 at from-trunk:1] Set("SIP/5060-0a2f7308", "__FROM_DID=0742244224")
> in new stack
> [Jun 16 02:44:19] VERBOSE[3679] logger.c: -- Executing
> [0742244224 at from-trunk:2] Gosub("SIP/5060-0a2f7308",
> "app-blacklist-check,s,1") in new stack
> [Jun 16 02:44:19] VERBOSE[3679] logger.c: -- Executing
> [s at app-blacklist-check:1] GotoIf("SIP/5060-0a2f7308", "0?blacklisted") in
> new stack
> [Jun 16 02:44:19] VERBOSE[3679] logger.c: -- Executing
> [s at app-blacklist-check:2] Return("SIP/5060-0a2f7308", "") in new stack
> [Jun 16 02:44:19] VERBOSE[3679] logger.c: -- Executing
> [0742244224 at from-trunk:3] ExecIf("SIP/5060-0a2f7308", "1
> ?Set(CALLERID(name)=0282086500)") in new stack
> [Jun 16 02:44:19] VERBOSE[3679] logger.c: -- Executing
> [0742244224 at from-trunk:4] Set("SIP/5060-0a2f7308", "FAX_RX=4111") in new
> stack
> [Jun 16 02:44:19] VERBOSE[3679] logger.c: -- Executing
> [0742244224 at from-trunk:5] Set("SIP/5060-0a2f7308",
> "FAX_RX_EMAIL=sbdc at smellyblackdog.com.au") in new stack
> [Jun 16 02:44:19] VERBOSE[3679] logger.c: -- Executing
> [0742244224 at from-trunk:6] Answer("SIP/5060-0a2f7308", "") in new stack
> [Jun 16 02:44:20] VERBOSE[3679] logger.c: -- Executing
> [0742244224 at from-trunk:7] PlayTones("SIP/5060-0a2f7308", "ring") in new
> stack
> [Jun 16 02:44:20] VERBOSE[3679] logger.c: -- Executing
> [0742244224 at from-trunk:8] NVFaxDetect("SIP/5060-0a2f7308", "0|t") in new
> stack
> [Jun 16 02:44:20] DEBUG[3679] app_nv_faxdetect-1.0.6_1.4.c: Preparing detect
> of fax (waitdur=4ms, sildur=1000ms, mindur=100ms, maxdur=-1ms)
> [Jun 16 02:44:24] DEBUG[3679] app_nv_faxdetect-1.0.6_1.4.c: Fax detected on
> SIP/5060-0a2f7308
> [Jun 16 02:44:24] NOTICE[3679] app_nv_faxdetect-1.0.6_1.4.c: Redirecting
> SIP/5060-0a2f7308 to fax extension
> [Jun 16 02:44:24] VERBOSE[3679] logger.c: -- Executing
> [fax at from-trunk:1] Goto("SIP/5060-0a2f7308", "ext-fax,in_fax,1") in new
> stack
> [Jun 16 02:44:24] VERBOSE[3679] logger.c: -- Goto (ext-fax,in_fax,1)
> [Jun 16 02:44:24] VERBOSE[3679] logger.c: -- Executing
> [in_fax at ext-fax:1] StopPlayTones("SIP/5060-0a2f7308", "") in new stack
> [Jun 16 02:44:24] VERBOSE[3679] logger.c: -- Executing
> [in_fax at ext-fax:2] GotoIf("SIP/5060-0a2f7308", "0?3:analog_fax,1") in new
> stack
> [Jun 16 02:44:24] VERBOSE[3679] logger.c: -- Goto (ext-fax,analog_fax,1)
> [Jun 16 02:44:24] VERBOSE[3679] logger.c: -- Executing
> [analog_fax at ext-fax:1] GotoIf("SIP/5060-0a2f7308", "0?4:2") in new stack
> [Jun 16 02:44:24] VERBOSE[3679] logger.c: -- Goto (ext-fax,analog_fax,2)
> [Jun 16 02:44:24] VERBOSE[3679] logger.c: -- Executing
> [analog_fax at ext-fax:2] Set("SIP/5060-0a2f7308", "DIAL=IAX2/4111") in new
> stack
> [Jun 16 02:44:24] VERBOSE[3679] logger.c: -- Executing
> [analog_fax at ext-fax:3] Dial("SIP/5060-0a2f7308",
> "IAX2/4111/0282086500,20,d") in new stack
> My FaxDispatch config is
> #!/bin/sh
> ##
> ## FaxDispatch
> ## (see `man faxrcvd` for moreyyy
>
> # The numbers before the paren correspond to asterisk extensions in
> # extensions.conf
> case "$CALLID4" in
> # customer DID routing:
> 0742242442) SENDTO=xxx at smellyblackdog.com.au; FILETYPE=pdf;;
>
> # everything else goes to default case:
> *) SENDTO=yyy at smellyblackdog.com.au; FILETYPE=pdf;;
> esac
>
>
> The problem is that it ignores the called number in the did and drops
> through to the default
>
> I have also done the relevant mod to the /etc/asterisk/extensions.conf file
> as well
>
>
> Any Ideas??
>
Not sure if the activity above was an instance where it was supposed to
go to 0742242442 but the DID being passed to iaxmodem wasn't 0742242442:
Dial("SIP/5060-0a2f7308", "IAX2/4111/0282086500,20,d") in new stack
In this case $CALLID4 is going to be 0282086500. Double check your
extensions.[conf|ael] and make sure the DID that was called is being
passed in your dial command, often like this: Dial(IAX2/4111/${EXTEN})
-Dave
More information about the asterisk-users
mailing list