[Asterisk-Users] Fax detected, but no fax extension

Ronald Wiplinger ronald at elmit.com
Wed Apr 20 03:16:32 MST 2005


Vladyslav wrote:

>In your incoming context add 
> exten => fax,1,Goto(fax,2202,1)
>
>  
>
It did not work ;-(

[incoming_88097680]
exten => s,1,NoOp(${CALLERIDNUM})
exten => s,2,Wait(1)
exten => s,3,SetCallerId(9${CALLERIDNUM})
exten => s,4,GotoIfTime(08:00-21:20|sun-sat|*|*?house-day,s,1)
exten => s,5,Goto(house-night,s,1)
exten => fax,1,Goto(fax,2201,1)

[fax]
exten => 2201,1,Macro(faxreceive)
;exten => 2202,1,Macro(faxreceive)
;exten => 2203,1,Macro(faxreceive)

exten => h,1,system(/usr/local/sbin/mailfax ${FAXFILE} \
        ${EMAILADDR} "${CALLERIDNUM} ${CALLERIDNAME}")

[macro-faxreceive]
exten => s,1,SetVar(FAXFILE=/var/spool/asterisk-fax/${UNIQUEID}.tif)
exten => s,2,DBGet(EMAILADDR=extensionemail/${MACRO_EXTEN})
exten => s,3,rxfax(${FAXFILE})
exten => s,103,SetVar(EMAILADDR=ronald at elmit.com)
exten => s,104,Goto(3)


>On Wed, 2005-04-20 at 12:26, Ronald Wiplinger wrote:
>  
>
>>    -- Starting simple switch on 'Zap/3-1'
>>    -- Executing NoOp("Zap/3-1", "9229443944-") in new stack
>>    -- Executing Answer("Zap/3-1", "") in new stack
>>    -- Executing Zapateller("Zap/3-1", "") in new stack
>>    -- Executing BackGround("Zap/3-1", "custom/Welcome") in new stack
>>    -- Playing 'custom/Welcome' (language 'default')
>>Apr 20 16:49:29 NOTICE[29109]: chan_zap.c:4300 zt_read: Fax detected, 
>>but no fax extension
>>    -- Executing BackGround("Zap/3-1", "if-u-know-ext-dial") in new stack
>>    -- Playing 'if-u-know-ext-dial' (language 'default')
>>    -- Executing Dial("Zap/3-1", 
>>"SIP/601&SIP/621&ZAP/1r1&SIP/610|30|tr") in new stack
>>    -- Called 601
>>Apr 20 16:49:43 NOTICE[29109]: app_dial.c:973 dial_exec_full: Unable to 
>>create channel of type 'SIP' (cause 3)
>>    -- Called 1r1
>>Apr 20 16:49:43 NOTICE[29109]: app_dial.c:973 dial_exec_full: Unable to 
>>create channel of type 'SIP' (cause 3)
>>    -- Zap/1-1 is ringing
>>    -- SIP/601-49e2 is ringing
>>    -- Zap/1-1 is ringing
>>    -- Zap/1-1 is ringing
>>    -- SIP/601-49e2 answered Zap/3-1
>>    -- Hungup 'Zap/1-1'
>>
>>
>>I tried to use the exension 2201, but it did not work, so I have changed 
>>it to "s", but it does not work either.
>>
>>[fax]
>>exten => s,1,Macro(faxreceive)
>>;exten => 2202,1,Macro(faxreceive)
>>;exten => 2203,1,Macro(faxreceive)
>>
>>exten => h,1,system(/usr/local/sbin/mailfax ${FAXFILE} \
>>        ${EMAILADDR} "${CALLERIDNUM} ${CALLERIDNAME}")
>>
>>    
>>

bye

Ronald





More information about the asterisk-users mailing list