Trying to get my asterisk system to detect and transfer inbound fax calls.
System is supposed to detect the fax, and then ring my fax machine which is
connected to a Sipura device.

Here's my extensions.conf:

exten => 1000,1,Goto(s,1)
exten => 630446,1,Goto(s,3)

exten => s,1,AGI(callerid.agi|${CALLERIDNUM})
exten => s,2,SetCallerId,"${googlename} <${CALLERIDNUM}>"
exten => s,3,Answer
exten => s,4,Wait(3)
exten => s,5,Dial(${PHONES},30)
exten => s,6,Wait(2)
exten => s,7,Voicemail(u3001)
exten => s,8,Hangup

exten => fax,1,Dial(SIP/meehan-fax,30)
exten => fax,2,Congestion

exten => 2001,1,Dial(SIP/meehan-home,30)
exten => 2002,1,Dial(SIP/meehan-mobile,30)
exten => 2003,1,Dial(SIP/meehan-fax,30)


Detection seems to be working okay.  If I call in with a voice call, my two
voice SIP phones ring as normal, etc.  If I call in with a fax call, it seems
like Asterisk is detecting the fax correctly, but the fax never rings, and
the call is just dropped.  Fax rings fine and is answered if I call ext. 2003
though.  Here's the event log:

    -- Executing AGI("SIP/1095-6694", "callerid.agi|7753594712") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/callerid.agi
    -- AGI Script callerid.agi completed, returning 0
    -- Executing SetCallerID("SIP/1095-6694", "Haws Corporation <7753594712>") 
in new stack                                                                    
 
    -- Executing Answer("SIP/1095-6694", "") in new stack
    -- Executing Wait("SIP/1095-6694", "3") in new stack
  == Spawn extension (meehan, s, 4) exited non-zero on 'SIP/1095-6694'

Any ideas here?

Thanks,

Jim
_______________________________________________
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to