After 1 ring from calling outside it hung up

hi there,

here’s my problem, when dialing outside number and after 1 ring it hung up. below is my cli msg.

Connected to Asterisk 1.4.19 currently running on elastix (pid = 4454)
Verbosity is at least 3
– Executing [99488888@from-internal:1] Macro(“SIP/104-090f59b0”, “dialout-trunk|2|9488888||”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“SIP/104-090f59b0”, “DIAL_TRUNK=2”) in new stack
– Executing [s@macro-dialout-trunk:2] Set(“SIP/104-090f59b0”, “DIAL_NUMBER=9488888”) in new stack
– Executing [s@macro-dialout-trunk:3] Set(“SIP/104-090f59b0”, “ROUTE_PASSWD=”) in new stack
– Executing [s@macro-dialout-trunk:4] GotoIf(“SIP/104-090f59b0”, “1?noauth”) in new stack
– Goto (macro-dialout-trunk,s,6)
– Executing [s@macro-dialout-trunk:6] GotoIf(“SIP/104-090f59b0”, “0?disabletrunk|1”) in new stack
– Executing [s@macro-dialout-trunk:7] Set(“SIP/104-090f59b0”, “_NODEST=”) in new stack
– Executing [s@macro-dialout-trunk:8] Set(“SIP/104-090f59b0”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing [s@macro-dialout-trunk:9] Set(“SIP/104-090f59b0”, “GROUP()=OUT_2”) in new stack
– Executing [s@macro-dialout-trunk:10] Macro(“SIP/104-090f59b0”, “user-callerid|SKIPTTL”) in new stack
– Executing [s@macro-user-callerid:1] NoOp(“SIP/104-090f59b0”, “user-callerid: device 104”) in new stack
– Executing [s@macro-user-callerid:2] Set(“SIP/104-090f59b0”, “AMPUSER=104”) in new stack
– Executing [s@macro-user-callerid:3] GotoIf(“SIP/104-090f59b0”, “0?report”) in new stack
– Executing [s@macro-user-callerid:4] GotoIf(“SIP/104-090f59b0”, “0?start”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/104-090f59b0”, “REALCALLERIDNUM=104”) in new stack
– Executing [s@macro-user-callerid:6] NoOp(“SIP/104-090f59b0”, “REALCALLERIDNUM is 104”) in new stack
– Executing [s@macro-user-callerid:7] Set(“SIP/104-090f59b0”, “AMPUSER=104”) in new stack
– Executing [s@macro-user-callerid:8] Set(“SIP/104-090f59b0”, “AMPUSERCIDNAME=NT ADMINISTRATOR”) in new stack
– Executing [s@macro-user-callerid:9] GotoIf(“SIP/104-090f59b0”, “0?report”) in new stack
– Executing [s@macro-user-callerid:10] Set(“SIP/104-090f59b0”, “AMPUSERCID=104”) in new stack
– Executing [s@macro-user-callerid:11] Set(“SIP/104-090f59b0”, “CALLERID(all)=“NT ADMINISTRATOR” <104>”) in new stack
– Executing [s@macro-user-callerid:12] Set(“SIP/104-090f59b0”, “REALCALLERIDNUM=104”) in new stack
– Executing [s@macro-user-callerid:13] NoOp(“SIP/104-090f59b0”, “TTL: ARG1: SKIPTTL”) in new stack
– Executing [s@macro-user-callerid:14] GotoIf(“SIP/104-090f59b0”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,23)
– Executing [s@macro-user-callerid:23] NoOp(“SIP/104-090f59b0”, “Using CallerID “NT ADMINISTRATOR” <104>”) in new stack
– Executing [s@macro-dialout-trunk:11] Macro(“SIP/104-090f59b0”, “record-enable|104|OUT”) in new stack
– Executing [s@macro-record-enable:1] GotoIf(“SIP/104-090f59b0”, “0?2:4”) in new stack
– Goto (macro-record-enable,s,4)
– Executing [s@macro-record-enable:4] AGI(“SIP/104-090f59b0”, “recordingcheck|20090304-204204|1236170524.121”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20090304-204204|1236170524.121: Outbound recording not enabled
– AGI Script recordingcheck completed, returning 0
– Executing [s@macro-record-enable:5] NoOp(“SIP/104-090f59b0”, “No recording needed”) in new stack
– Executing [s@macro-dialout-trunk:12] GotoIf(“SIP/104-090f59b0”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:13] Set(“SIP/104-090f59b0”, “DIAL_TRUNK_OPTIONS=”) in new stack
– Executing [s@macro-dialout-trunk:14] Macro(“SIP/104-090f59b0”, “outbound-callerid|2”) in new stack
– Executing [s@macro-outbound-callerid:1] GotoIf(“SIP/104-090f59b0”, “1?start”) in new stack
– Goto (macro-outbound-callerid,s,3)
– Executing [s@macro-outbound-callerid:3] NoOp(“SIP/104-090f59b0”, “REALCALLERIDNUM is 104”) in new stack
– Executing [s@macro-outbound-callerid:4] GotoIf(“SIP/104-090f59b0”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,9)
– Executing [s@macro-outbound-callerid:9] Set(“SIP/104-090f59b0”, “USEROUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:10] Set(“SIP/104-090f59b0”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:11] Set(“SIP/104-090f59b0”, “TRUNKOUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:12] GotoIf(“SIP/104-090f59b0”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,16)
– Executing [s@macro-outbound-callerid:16] GotoIf(“SIP/104-090f59b0”, “1?usercid”) in new stack
– Goto (macro-outbound-callerid,s,18)
– Executing [s@macro-outbound-callerid:18] GotoIf(“SIP/104-090f59b0”, “1?report”) in new stack
– Goto (macro-outbound-callerid,s,22)
– Executing [s@macro-outbound-callerid:22] NoOp(“SIP/104-090f59b0”, “CallerID set to “NT ADMINISTRATOR” <104>”) in new stack
– Executing [s@macro-dialout-trunk:15] GotoIf(“SIP/104-090f59b0”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,17)
– Executing [s@macro-dialout-trunk:17] AGI(“SIP/104-090f59b0”, “fixlocalprefix”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
– AGI Script fixlocalprefix completed, returning 0
– Executing [s@macro-dialout-trunk:18] Set(“SIP/104-090f59b0”, “OUTNUM=9488888”) in new stack
– Executing [s@macro-dialout-trunk:19] Set(“SIP/104-090f59b0”, “custom=ZAP/g1”) in new stack
– Executing [s@macro-dialout-trunk:20] GotoIf(“SIP/104-090f59b0”, “1?gocall”) in new stack
– Goto (macro-dialout-trunk,s,24)
– Executing [s@macro-dialout-trunk:24] GotoIf(“SIP/104-090f59b0”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:25] Dial(“SIP/104-090f59b0”, “ZAP/g1/9488888|300|”) in new stack
– Called g1/9488888
– Zap/12-1 answered SIP/104-090f59b0
– Hungup ‘Zap/12-1’
== Spawn extension (macro-dialout-trunk, s, 25) exited non-zero on ‘SIP/104-090f59b0’ in macro ‘dialout-trunk’
== Spawn extension (macro-dialout-trunk, s, 25) exited non-zero on ‘SIP/104-090f59b0’
– Executing [h@macro-dialout-trunk:1] Macro(“SIP/104-090f59b0”, “hangupcall”) in new stack
– Executing [s@macro-hangupcall:1] ResetCDR(“SIP/104-090f59b0”, “w”) in new stack
– Executing [s@macro-hangupcall:2] NoCDR(“SIP/104-090f59b0”, “”) in new stack
– Executing [s@macro-hangupcall:3] GotoIf(“SIP/104-090f59b0”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,6)
– Executing [s@macro-hangupcall:6] GotoIf(“SIP/104-090f59b0”, “1?skipblkvm”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing [s@macro-hangupcall:9] GotoIf(“SIP/104-090f59b0”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,11)
– Executing [s@macro-hangupcall:11] Hangup(“SIP/104-090f59b0”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on ‘SIP/104-090f59b0’ in macro ‘hangupcall’
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on ‘SIP/104-090f59b0’

So your calling your Zap channel. You don’t have any unknown context errors so I’m guessing you’ve set your default context for zap channels? Or is it just going to default?

In which case… what have you defined in your context?

If there’s nothing there then the channel is just going to hangup.

I don’t think you have an error as such, you just haven’t specified anything for it to do.

But i could be wrong… let me know.