Fax Server

Discussion in 'General' started by haraujo, Feb 8, 2011.

  1. haraujo

    Joined:
    Sep 20, 2010
    Messages:
    17
    Likes Received:
    0
    Buenas Gente, vengo con un nuevo problema..

    Estoy tratando de implementar el Fax server que trae el elastix 2.0 con la siguiente topologia

    PSTNROUTERCISCOCALLMANAGERASTERISKHYLAFAX

    Cuando llamo desde un telefono-fax desde la PSTN al 4154804 donde el 804 es mi extension IAX en el elastix recibo tono de fax pero debo darle SEND apenas escuche el primer pitido del tono de FAX de lo contrario pasando 2 o 3 segunos despues de oir el tono de fax, no envia

    Esta es la salido de la CLI del asterisk cuando envia

    == Using SIP RTP TOS bits 184
    == Using SIP RTP CoS mark 5
    -- Executing [804@from-internal:1] Macro("SIP/trunkccm-0000000e", "exten-vm,novm,804") in new stack
    -- Executing [s@macro-exten-vm:1] Macro("SIP/trunkccm-0000000e", "user-callerid,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/trunkccm-0000000e", "AMPUSER=021451393") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("SIP/trunkccm-0000000e", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("SIP/trunkccm-0000000e", "1?Set(REALCALLERIDNUM=021451393)") in new stack
    -- Executing [s@macro-user-callerid:4] Set("SIP/trunkccm-0000000e", "AMPUSER=") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/trunkccm-0000000e", "AMPUSERCIDNAME=") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/trunkccm-0000000e", "1?report") in new stack
    -- Goto (macro-user-callerid,s,10)
    -- Executing [s@macro-user-callerid:10] GotoIf("SIP/trunkccm-0000000e", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:11] Set("SIP/trunkccm-0000000e", "__TTL=64") in new stack
    -- Executing [s@macro-user-callerid:12] GotoIf("SIP/trunkccm-0000000e", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s@macro-user-callerid:19] NoOp("SIP/trunkccm-0000000e", "Using CallerID "" ") in new stack
    -- Executing [s@macro-exten-vm:2] Set("SIP/trunkccm-0000000e", "RingGroupMethod=none") in new stack
    -- Executing [s@macro-exten-vm:3] Set("SIP/trunkccm-0000000e", "VMBOX=novm") in new stack
    -- Executing [s@macro-exten-vm:4] Set("SIP/trunkccm-0000000e", "EXTTOCALL=804") in new stack
    -- Executing [s@macro-exten-vm:5] Set("SIP/trunkccm-0000000e", "CFUEXT=") in new stack
    -- Executing [s@macro-exten-vm:6] Set("SIP/trunkccm-0000000e", "CFBEXT=") in new stack
    -- Executing [s@macro-exten-vm:7] Set("SIP/trunkccm-0000000e", "RT=""") in new stack
    -- Executing [s@macro-exten-vm:8] Macro("SIP/trunkccm-0000000e", "record-enable,804,IN") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/trunkccm-0000000e", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] ExecIf("SIP/trunkccm-0000000e", "0?MacroExit()") in new stack
    -- Executing [s@macro-record-enable:5] GotoIf("SIP/trunkccm-0000000e", "0?Group:OUT") in new stack
    -- Goto (macro-record-enable,s,15)
    -- Executing [s@macro-record-enable:15] GotoIf("SIP/trunkccm-0000000e", "1?IN") in new stack
    -- Goto (macro-record-enable,s,20)
    -- Executing [s@macro-record-enable:20] ExecIf("SIP/trunkccm-0000000e", "1?MacroExit()") in new stack
    -- Executing [s@macro-exten-vm:9] Macro("SIP/trunkccm-0000000e", "dial,,tr,804") in new stack
    -- Executing [s@macro-dial:1] GotoIf("SIP/trunkccm-0000000e", "1?dial") in new stack
    -- Goto (macro-dial,s,3)
    -- Executing [s@macro-dial:3] AGI("SIP/trunkccm-0000000e", "dialparties.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
    dialparties.agi: Starting New Dialparties.agi
    dialparties.agi: Caller ID name is 'unknown' number is '021451393'
    dialparties.agi: Methodology of ring is 'none'
    -- dialparties.agi: Added extension 804 to extension map
    -- dialparties.agi: Extension 804 cf is disabled
    -- dialparties.agi: Extension 804 do not disturb is disabled
    dialparties.agi: EXTENSION_STATE: 0 (NOT_INUSE)
    dialparties.agi: Extension 804 has ExtensionState: 0
    -- dialparties.agi: Checking CW and CFB status for extension 804
    -- dialparties.agi: dbset CALLTRACE/804 to 021451393
    -- dialparties.agi: Filtered ARG3: 804
    -- AGI Script dialparties.agi completed, returning 0
    -- Executing [s@macro-dial:7] Dial("SIP/trunkccm-0000000e", "IAX2/804,,tr") in new stack
    -- Called 804
    -- Call accepted by 127.0.0.1 (format ulaw)
    -- Format for call is ulaw
    -- IAX2/804-1084 is ringing
    -- IAX2/804-1084 answered SIP/trunkccm-0000000e
    -- Executing [h@macro-dial:1] Macro("SIP/trunkccm-0000000e", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("SIP/trunkccm-0000000e", "1?noautomon") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [s@macro-hangupcall:3] NoOp("SIP/trunkccm-0000000e", "TOUCH_MONITOR_OUTPUT=") in new stack
    -- Executing [s@macro-hangupcall:4] GotoIf("SIP/trunkccm-0000000e", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,7)
    -- Executing [s@macro-hangupcall:7] GotoIf("SIP/trunkccm-0000000e", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,10)
    -- Executing [s@macro-hangupcall:10] GotoIf("SIP/trunkccm-0000000e", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,12)
    -- Executing [s@macro-hangupcall:12] Hangup("SIP/trunkccm-0000000e", "") in new stack
    == Spawn extension (macro-hangupcall, s, 12) exited non-zero on 'SIP/trunkccm-0000000e' in macro 'hangupcall'
    == Spawn extension (macro-dial, h, 1) exited non-zero on 'SIP/trunkccm-0000000e'
    -- Hungup 'IAX2/804-1084'
    == Spawn extension (macro-dial, s, 7) exited non-zero on 'SIP/trunkccm-0000000e' in macro 'dial'
    == Spawn extension (macro-exten-vm, s, 9) exited non-zero on 'SIP/trunkccm-0000000e' in macro 'exten-vm'
    == Spawn extension (from-internal, 804, 1) exited non-zero on 'SIP/trunkccm-0000000e'
    -- Executing [h@from-internal:1] Macro("SIP/trunkccm-0000000e", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("SIP/trunkccm-0000000e", "1?noautomon") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [s@macro-hangupcall:3] NoOp("SIP/trunkccm-0000000e", "TOUCH_MONITOR_OUTPUT=") in new stack
    -- Executing [s@macro-hangupcall:4] GotoIf("SIP/trunkccm-0000000e", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,7)
    -- Executing [s@macro-hangupcall:7] GotoIf("SIP/trunkccm-0000000e", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,10)
    -- Executing [s@macro-hangupcall:10] GotoIf("SIP/trunkccm-0000000e", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,12)
    -- Executing [s@macro-hangupcall:12] Hangup("SIP/trunkccm-0000000e", "") in new stack
    == Spawn extension (macro-hangupcall, s, 12) exited non-zero on 'SIP/trunkccm-0000000e' in macro 'hangupcall'
    == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/trunkccm-0000000e'
    -- Remote UNIX connection


    y esta es la salida cuando no envia

    lastix*CLI>
    == Using SIP RTP TOS bits 184
    == Using SIP RTP CoS mark 5
    -- Executing [804@from-internal:1] Macro("SIP/trunkccm-0000000c", "exten-vm,novm,804") in new stack
    -- Executing [s@macro-exten-vm:1] Macro("SIP/trunkccm-0000000c", "user-callerid,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/trunkccm-0000000c", "AMPUSER=021451393") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("SIP/trunkccm-0000000c", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("SIP/trunkccm-0000000c", "1?Set(REALCALLERIDNUM=021451393)") in new stack
    -- Executing [s@macro-user-callerid:4] Set("SIP/trunkccm-0000000c", "AMPUSER=") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/trunkccm-0000000c", "AMPUSERCIDNAME=") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/trunkccm-0000000c", "1?report") in new stack
    -- Goto (macro-user-callerid,s,10)
    -- Executing [s@macro-user-callerid:10] GotoIf("SIP/trunkccm-0000000c", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:11] Set("SIP/trunkccm-0000000c", "__TTL=64") in new stack
    -- Executing [s@macro-user-callerid:12] GotoIf("SIP/trunkccm-0000000c", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s@macro-user-callerid:19] NoOp("SIP/trunkccm-0000000c", "Using CallerID "" ") in new stack
    -- Executing [s@macro-exten-vm:2] Set("SIP/trunkccm-0000000c", "RingGroupMethod=none") in new stack
    -- Executing [s@macro-exten-vm:3] Set("SIP/trunkccm-0000000c", "VMBOX=novm") in new stack
    -- Executing [s@macro-exten-vm:4] Set("SIP/trunkccm-0000000c", "EXTTOCALL=804") in new stack
    -- Executing [s@macro-exten-vm:5] Set("SIP/trunkccm-0000000c", "CFUEXT=") in new stack
    -- Executing [s@macro-exten-vm:6] Set("SIP/trunkccm-0000000c", "CFBEXT=") in new stack
    -- Executing [s@macro-exten-vm:7] Set("SIP/trunkccm-0000000c", "RT=""") in new stack
    -- Executing [s@macro-exten-vm:8] Macro("SIP/trunkccm-0000000c", "record-enable,804,IN") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/trunkccm-0000000c", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] ExecIf("SIP/trunkccm-0000000c", "0?MacroExit()") in new stack
    -- Executing [s@macro-record-enable:5] GotoIf("SIP/trunkccm-0000000c", "0?Group:OUT") in new stack
    -- Goto (macro-record-enable,s,15)
    -- Executing [s@macro-record-enable:15] GotoIf("SIP/trunkccm-0000000c", "1?IN") in new stack
    -- Goto (macro-record-enable,s,20)
    -- Executing [s@macro-record-enable:20] ExecIf("SIP/trunkccm-0000000c", "1?MacroExit()") in new stack
    -- Executing [s@macro-exten-vm:9] Macro("SIP/trunkccm-0000000c", "dial,,tr,804") in new stack
    -- Executing [s@macro-dial:1] GotoIf("SIP/trunkccm-0000000c", "1?dial") in new stack
    -- Goto (macro-dial,s,3)
    -- Executing [s@macro-dial:3] AGI("SIP/trunkccm-0000000c", "dialparties.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
    dialparties.agi: Starting New Dialparties.agi
    dialparties.agi: Caller ID name is 'unknown' number is '021451393'
    dialparties.agi: Methodology of ring is 'none'
    -- dialparties.agi: Added extension 804 to extension map
    -- dialparties.agi: Extension 804 cf is disabled
    -- dialparties.agi: Extension 804 do not disturb is disabled
    dialparties.agi: EXTENSION_STATE: 0 (NOT_INUSE)
    dialparties.agi: Extension 804 has ExtensionState: 0
    -- dialparties.agi: Checking CW and CFB status for extension 804
    -- dialparties.agi: dbset CALLTRACE/804 to 021451393
    -- dialparties.agi: Filtered ARG3: 804
    -- AGI Script dialparties.agi completed, returning 0
    -- Executing [s@macro-dial:7] Dial("SIP/trunkccm-0000000c", "IAX2/804,,tr") in new stack
    -- Called 804
    -- Call accepted by 127.0.0.1 (format ulaw)
    -- Format for call is ulaw
    -- IAX2/804-4718 is ringing
    -- IAX2/804-4718 answered SIP/trunkccm-0000000c
    == Redirecting 'SIP/trunkccm-0000000c' to fax extension due to CNG detection
    -- Executing [h@from-internal:1] Macro("SIP/trunkccm-0000000c", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("SIP/trunkccm-0000000c", "1?noautomon") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [s@macro-hangupcall:3] NoOp("SIP/trunkccm-0000000c", "TOUCH_MONITOR_OUTPUT=") in new stack
    -- Executing [s@macro-hangupcall:4] GotoIf("SIP/trunkccm-0000000c", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,7)
    -- Executing [s@macro-hangupcall:7] GotoIf("SIP/trunkccm-0000000c", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,10)
    -- Executing [s@macro-hangupcall:10] GotoIf("SIP/trunkccm-0000000c", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,12)
    -- Executing [s@macro-hangupcall:12] Hangup("SIP/trunkccm-0000000c", "") in new stack
    == Spawn extension (macro-hangupcall, s, 12) exited non-zero on 'SIP/trunkccm-0000000c' in macro 'hangupcall'
    -- Hungup 'IAX2/804-4718'
    == Spawn extension (from-internal, fax, 1) exited non-zero on 'SIP/trunkccm-0000000c' in macro 'dial'
    == Spawn extension (from-internal, fax, 1) exited non-zero on 'SIP/trunkccm-0000000c' in macro 'exten-vm'
    == Spawn extension (from-internal, fax, 1) exited non-zero on 'SIP/trunkccm-0000000c'
    -- Executing [fax@from-internal:1] Macro("SIP/trunkccm-0000000c", "user-callerid,SKIPTTL,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/trunkccm-0000000c", "AMPUSER=021451393") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("SIP/trunkccm-0000000c", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("SIP/trunkccm-0000000c", "0?Set(REALCALLERIDNUM=021451393)") in new stack
    -- Executing [s@macro-user-callerid:4] Set("SIP/trunkccm-0000000c", "AMPUSER=") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/trunkccm-0000000c", "AMPUSERCIDNAME=") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/trunkccm-0000000c", "1?report") in new stack
    -- Goto (macro-user-callerid,s,10)
    -- Executing [s@macro-user-callerid:10] GotoIf("SIP/trunkccm-0000000c", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s@macro-user-callerid:19] NoOp("SIP/trunkccm-0000000c", "Using CallerID "" ") in new stack
    -- Executing [fax@from-internal:2] Set("SIP/trunkccm-0000000c", "_NODEST=") in new stack
    -- Executing [fax@from-internal:3] Macro("SIP/trunkccm-0000000c", "record-enable,,OUT,") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/trunkccm-0000000c", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] ExecIf("SIP/trunkccm-0000000c", "1?MacroExit()") in new stack
    -- Executing [fax@from-internal:4] Macro("SIP/trunkccm-0000000c", "dialout-trunk,2,fax,,") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/trunkccm-0000000c", "DIAL_TRUNK=2") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/trunkccm-0000000c", "0?sub-pincheck,s,1") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/trunkccm-0000000c", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/trunkccm-0000000c", "DIAL_NUMBER=fax") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/trunkccm-0000000c", "DIAL_TRUNK_OPTIONS=tr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/trunkccm-0000000c", "OUTBOUND_GROUP=OUT_2") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/trunkccm-0000000c", "0?nomax") in new stack
    -- Executing [s@macro-dialout-trunk:8] GotoIf("SIP/trunkccm-0000000c", "0?chanfull") in new stack
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/trunkccm-0000000c", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/trunkccm-0000000c", "DIAL_TRUNK_OPTIONS=") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/trunkccm-0000000c", "outbound-callerid,2") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/trunkccm-0000000c", "0?Set(CALLERPRES()=)") in new stack
    -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/trunkccm-0000000c", "0?Set(REALCALLERIDNUM=021451393)") in new stack
    -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/trunkccm-0000000c", "0?normcid") in new stack
    -- Executing [s@macro-outbound-callerid:4] Set("SIP/trunkccm-0000000c", "USEROUTCID=021451393") in new stack
    -- Executing [s@macro-outbound-callerid:5] GotoIf("SIP/trunkccm-0000000c", "1?bypass") in new stack
    -- Goto (macro-outbound-callerid,s,7)
    -- Executing [s@macro-outbound-callerid:7] Set("SIP/trunkccm-0000000c", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("SIP/trunkccm-0000000c", "TRUNKOUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/trunkccm-0000000c", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,12)
    -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/trunkccm-0000000c", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/trunkccm-0000000c", "1?Set(CALLERID(all)=021451393)") in new stack
    -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/trunkccm-0000000c", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/trunkccm-0000000c", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
    -- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/trunkccm-0000000c", "1?AGI(fixlocalprefix)") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
    -- AGI Script fixlocalprefix completed, returning 0
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/trunkccm-0000000c", "OUTNUM=fax") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/trunkccm-0000000c", "custom=SIP/trunkccm") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/trunkccm-0000000c", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack
    -- Executing [s@macro-dialout-trunk:16] Macro("SIP/trunkccm-0000000c", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/trunkccm-0000000c", "") in new stack
    -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/trunkccm-0000000c", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/trunkccm-0000000c", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:19] Dial("SIP/trunkccm-0000000c", "SIP/trunkccm/fax,300,") in new stack
    == Using SIP RTP TOS bits 184
    == Using SIP RTP CoS mark 5
    -- Called trunkccm/fax
    -- SIP/trunkccm-0000000d is circuit-busy
    == Everyone is busy/congested at this time (1:0/1/0)
    -- Executing [s@macro-dialout-trunk:20] NoOp("SIP/trunkccm-0000000c", "Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 1") in new stack
    -- Executing [s@macro-dialout-trunk:21] Goto("SIP/trunkccm-0000000c", "s-CONGESTION,1") in new stack
    -- Goto (macro-dialout-trunk,s-CONGESTION,1)
    -- Executing [s-CONGESTION@macro-dialout-trunk:1] Set("SIP/trunkccm-0000000c", "RC=1") in new stack
    -- Executing [s-CONGESTION@macro-dialout-trunk:2] Goto("SIP/trunkccm-0000000c", "1,1") in new stack
    -- Goto (macro-dialout-trunk,1,1)
    -- Executing [1@macro-dialout-trunk:1] Goto("SIP/trunkccm-0000000c", "continue,1") in new stack
    -- Goto (macro-dialout-trunk,continue,1)
    -- Executing [continue@macro-dialout-trunk:1] GotoIf("SIP/trunkccm-0000000c", "1?noreport") in new stack
    -- Goto (macro-dialout-trunk,continue,3)
    -- Executing [continue@macro-dialout-trunk:3] NoOp("SIP/trunkccm-0000000c", "TRUNK Dial failed due to CONGESTION HANGUPCAUSE: 1 - failing through to other trunks") in new stack
    -- Executing [continue@macro-dialout-trunk:4] Set("SIP/trunkccm-0000000c", "CALLERID(number)=") in new stack
    -- Executing [fax@from-internal:5] Macro("SIP/trunkccm-0000000c", "outisbusy,") in new stack
    -- Executing [s@macro-outisbusy:1] Progress("SIP/trunkccm-0000000c", "") in new stack
    -- Executing [s@macro-outisbusy:2] GotoIf("SIP/trunkccm-0000000c", "0?emergency,1") in new stack
    -- Executing [s@macro-outisbusy:3] GotoIf("SIP/trunkccm-0000000c", "0?intracompany,1") in new stack
    -- Executing [s@macro-outisbusy:4] Playback("SIP/trunkccm-0000000c", "all-circuits-busy-now&pls-try-call-later, noanswer") in new stack
    -- Playing 'all-circuits-busy-now.gsm' (language 'en')
    -- Playing 'pls-try-call-later.gsm' (language 'en')
    -- Executing [s@macro-outisbusy:5] Congestion("SIP/trunkccm-0000000c", "20") in new stack
    -- Remote UNIX connection
    -- Remote UNIX connection disconnected
    == Spawn extension (macro-outisbusy, s, 5) exited non-zero on 'SIP/trunkccm-0000000c' in macro 'outisbusy'
    == Spawn extension (from-internal, fax, 5) exited non-zero on 'SIP/trunkccm-0000000c'

    http://forum.elastix.org/old_files/iax_trunk_sip.zip
     
  2. haraujo

    Joined:
    Sep 20, 2010
    Messages:
    17
    Likes Received:
    0
    Cualquier opinio al respecto es bienvenida!

    Mchas Gracias

    Hugo.
     
  3. fmvillares

    Joined:
    Sep 8, 2007
    Messages:
    1,785
    Likes Received:
    0
    Re: Re:Fax Server

    la doble conversion de e1 a mgcp y a sip del call manager probablemente te corte toda posibilidad de recibir faxes
     
  4. haraujo

    Joined:
    Sep 20, 2010
    Messages:
    17
    Likes Received:
    0
    Hola Fernando gracias por responder.. pense en lo que escribiste y cambie la topologia quitando al call manager del camino y quedo asi

    PSTN--E1--ROUTERCISCO--SIP--ASTERISK--IAX--HYLAFAX

    Pero sigo con el mismo problema
     
  5. haraujo

    Joined:
    Sep 20, 2010
    Messages:
    17
    Likes Received:
    0
    esta es mi configuracion en el router

    sip-ua
    retry invite 3
    retry response 3
    retry bye 3
    retry cancel 3
    timers trying 1000
    mwi-server ipv4:10.128.8.121 expires 3600 port 5060 transport udp
    registrar ipv4:10.128.8.121 expires 3600
    sip-server ipv4:10.128.8.121

    voice translation-rule 1
    rule 10 /^4804/ /804/

    dial-peer voice 10051982 voip
    translation-profile outgoing iptel
    preference 1
    destination-pattern 4804
    voice-class sip dtmf-relay force rtp-nte
    session protocol sipv2
    session target ipv4:10.128.8.121
    codec g711ulaw
    no vad

    y esta es la del trunk en el asterisk

    type=friend
    nat=auto
    qualify=yes
    insecure=very
    host=10.128.8.108
    disallow=all
    context=from-internal
    allow=ulaw&alaw
    dtmfmode=rfc2833


    alguna otra idea?

    muchas gracias

    Hugo.
     
  6. fmvillares

    Joined:
    Sep 8, 2007
    Messages:
    1,785
    Likes Received:
    0
    tenes el t38 del cisco desactivado?
     
  7. haraujo

    Joined:
    Sep 20, 2010
    Messages:
    17
    Likes Received:
    0
    ahora lo active en el dial-peer y esta asi


    dial-peer voice 10051982 voip
    translation-profile outgoing iptel
    preference 1
    destination-pattern 4804
    voice-class sip dtmf-relay force rtp-nte
    session protocol sipv2
    session target ipv4:10.128.8.121
    codec g711ulaw
    fax protocol pass-through g711alaw
    no vad
    !
     
  8. haraujo

    Joined:
    Sep 20, 2010
    Messages:
    17
    Likes Received:
    0
    voice service voip
    allow-connections h323 to h323
    allow-connections h323 to sip
    allow-connections sip to h323
    allow-connections sip to sip
    fax protocol t38 ls-redundancy 0 hs-redundancy 0 fallback none
    h323
    no call service stop
    modem passthrough nse codec g711ulaw
    sip
    bearer-capability clear-channel tones
     
  9. fmvillares

    Joined:
    Sep 8, 2007
    Messages:
    1,785
    Likes Received:
    0
    estas por internet o todo en lan? si monitoreas el sonido comienza a negociar el fax?
     
  10. haraujo

    Joined:
    Sep 20, 2010
    Messages:
    17
    Likes Received:
    0
    Si todo LAN

    buenisima pregunta

    como puedo monitorear el sonido para ver si negocian ??
     
  11. fmvillares

    Joined:
    Sep 8, 2007
    Messages:
    1,785
    Likes Received:
    0
    por ejemplo con la extension por default del chan spy 555 y cambias los canales a escuchar con *
     
  12. haraujo

    Joined:
    Sep 20, 2010
    Messages:
    17
    Likes Received:
    0
    puse esto en la CLI

    elastix*CLI> core set debug channel all

    y cuando hice una llamada al fax server desde la PSTN

    == Using SIP RTP TOS bits 184
    == Using SIP RTP CoS mark 5
    -- Executing [804@from-internal:1] Macro("SIP/trunk3845out-0000000c", "exten-vm,novm,804") in new stack
    -- Executing [s@macro-exten-vm:1] Macro("SIP/trunk3845out-0000000c", "user-callerid,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/trunk3845out-0000000c", "AMPUSER=0214154") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("SIP/trunk3845out-0000000c", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("SIP/trunk3845out-0000000c", "1?Set(REALCALLERIDNUM=0214154)") in new stack
    -- Executing [s@macro-user-callerid:4] Set("SIP/trunk3845out-0000000c", "AMPUSER=") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/trunk3845out-0000000c", "AMPUSERCIDNAME=") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/trunk3845out-0000000c", "1?report") in new stack
    -- Goto (macro-user-callerid,s,10)
    -- Executing [s@macro-user-callerid:10] GotoIf("SIP/trunk3845out-0000000c", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:11] Set("SIP/trunk3845out-0000000c", "__TTL=64") in new stack
    -- Executing [s@macro-user-callerid:12] GotoIf("SIP/trunk3845out-0000000c", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s@macro-user-callerid:19] NoOp("SIP/trunk3845out-0000000c", "Using CallerID "" <0214154>") in new stack
    -- Executing [s@macro-exten-vm:2] Set("SIP/trunk3845out-0000000c", "RingGroupMethod=none") in new stack
    -- Executing [s@macro-exten-vm:3] Set("SIP/trunk3845out-0000000c", "VMBOX=novm") in new stack
    -- Executing [s@macro-exten-vm:4] Set("SIP/trunk3845out-0000000c", "EXTTOCALL=804") in new stack
    -- Executing [s@macro-exten-vm:5] Set("SIP/trunk3845out-0000000c", "CFUEXT=") in new stack
    -- Executing [s@macro-exten-vm:6] Set("SIP/trunk3845out-0000000c", "CFBEXT=") in new stack
    -- Executing [s@macro-exten-vm:7] Set("SIP/trunk3845out-0000000c", "RT=""") in new stack
    -- Executing [s@macro-exten-vm:8] Macro("SIP/trunk3845out-0000000c", "record-enable,804,IN") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/trunk3845out-0000000c", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] ExecIf("SIP/trunk3845out-0000000c", "0?MacroExit()") in new stack
    -- Executing [s@macro-record-enable:5] GotoIf("SIP/trunk3845out-0000000c", "0?Group:OUT") in new stack
    -- Goto (macro-record-enable,s,15)
    -- Executing [s@macro-record-enable:15] GotoIf("SIP/trunk3845out-0000000c", "1?IN") in new stack
    -- Goto (macro-record-enable,s,20)
    -- Executing [s@macro-record-enable:20] ExecIf("SIP/trunk3845out-0000000c", "1?MacroExit()") in new stack
    -- Executing [s@macro-exten-vm:9] Macro("SIP/trunk3845out-0000000c", "dial,,tr,804") in new stack
    -- Executing [s@macro-dial:1] GotoIf("SIP/trunk3845out-0000000c", "1?dial") in new stack
    -- Goto (macro-dial,s,3)
    -- Executing [s@macro-dial:3] AGI("SIP/trunk3845out-0000000c", "dialparties.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
    dialparties.agi: Starting New Dialparties.agi
    dialparties.agi: Caller ID name is 'unknown' number is '0214154'
    dialparties.agi: Methodology of ring is 'none'
    -- dialparties.agi: Added extension 804 to extension map
    -- dialparties.agi: Extension 804 cf is disabled
    -- dialparties.agi: Extension 804 do not disturb is disabled
    dialparties.agi: EXTENSION_STATE: 0 (NOT_INUSE)
    dialparties.agi: Extension 804 has ExtensionState: 0
    -- dialparties.agi: Checking CW and CFB status for extension 804
    -- dialparties.agi: dbset CALLTRACE/804 to 0214154
    -- dialparties.agi: Filtered ARG3: 804
    -- <SIP/trunk3845out-0000000c>AGI Script dialparties.agi completed, returning 0
    -- Executing [s@macro-dial:7] Dial("SIP/trunk3845out-0000000c", "IAX2/804,,tr") in new stack
    -- Called 804
    -- Call accepted by 127.0.0.1 (format ulaw)
    -- Format for call is ulaw
    << [ TYPE: Control (4) SUBCLASS: Ringing (3) ] [IAX2/804-10223]
    -- IAX2/804-10223 is ringing
    << [ TYPE: Control (4) SUBCLASS: Answer (4) ] [IAX2/804-10223]
    -- IAX2/804-10223 answered SIP/trunk3845out-0000000c
    << [ TYPE: Null Frame (5) SUBCLASS: N/A (0) ] [SIP/trunk3845out-0000000c]
    << [ TYPE: Null Frame (5) SUBCLASS: N/A (0) ] [SIP/trunk3845out-0000000c]
    << [ TYPE: Null Frame (5) SUBCLASS: N/A (0) ] [SIP/trunk3845out-0000000c]
    << [ TYPE: Null Frame (5) SUBCLASS: N/A (0) ] [SIP/trunk3845out-0000000c]
    << [ TYPE: Null Frame (5) SUBCLASS: N/A (0) ] [SIP/trunk3845out-0000000c]
    << [ TYPE: Null Frame (5) SUBCLASS: N/A (0) ] [SIP/trunk3845out-0000000c]
    << [ TYPE: Null Frame (5) SUBCLASS: N/A (0) ] [SIP/trunk3845out-0000000c]


    Creo que esto explica el por que del problema cuando llamo desde la PSTN al faxserver tengo que darle SEND lo mas rapido posible para que envie el fax..

    Ahora lo que nose es por que empieza a dropear paquetes?

    HELP!
     
  13. fmvillares

    Joined:
    Sep 8, 2007
    Messages:
    1,785
    Likes Received:
    0
    porque el cisco trata de negociar t38 y no tenes t38....
     
  14. haraujo

    Joined:
    Sep 20, 2010
    Messages:
    17
    Likes Received:
    0
    Por fin, problema solucionado

    esta es la configuracion de los equipos

    Router Cisco
    ************

    dial-peer voice 800 voip
    destination-pattern 8..
    session protocol sipv2
    session target ipv4:10.128.8.121:5060
    session transport udp
    dtmf-relay rtp-nte
    codec g711ulaw
    no vad

    dial-peer voice 10051982 voip
    translation-profile outgoing iptel
    preference 1
    destination-pattern 4804
    session protocol sipv2
    session target ipv4:10.128.8.121
    dtmf-relay sip-notify rtp-nte
    codec g711ulaw
    no vad

    translation-profile outgoing iptel
    preference 1
    destination-pattern 4805
    redirect ip2ip
    session protocol sipv2
    session target ipv4:10.128.8.121
    dtmf-relay sip-notify rtp-nte
    codec g711ulaw
    fax rate 9600
    fax protocol t38 ls-redundancy 0 hs-redundancy 0 fallback pass-through g711alaw
    no vad

    sip-ua
    authentication username asterisk password 7 135445415F5952
    retry invite 5
    retry response 5
    --- Esto fue lo unico que cambie y funciono!!
    sip-server ipv4:10.128.8.121

    Asterisk TRUNK
    **************

    context=from-internal
    type=friend
    host=10.128.8.108
    dtmfmode=rfc2833
    disallow=all
    allow=ulaw
    qualify=yes
    canreinvite=yes
    insecure=very
    username=asterisk
    secret=654321

    Eso es todo.. Gracias por la ayuda brindada, saludos

    Hugo Araujo
     
  15. fmvillares

    Joined:
    Sep 8, 2007
    Messages:
    1,785
    Likes Received:
    0
    de nuevo karma up por tener la buena onda de postear toda una solucion de cisco que son un dolor de huevos para los no CCNA
     

Share This Page