I’ve been able to configure asterisk for OUTbound calls (using freepbx), and used it to make all types of outbound calls using PSTN line terminating in FXO port 1 of digium TDM400 card. The called party hears fine. The caller hears his voice repeat.
The bigger problem, however, is that my incoming calls on same PSTN line are answered by extension ‘s’ as shown by freepbx reporting tool. I’ve defined 1 inbound route defined with DID/CID set to blank, zap channel set to 1, and core-destination set to <101> which is Xlite SIP extension capable of making outbound calls using ZAP channel 1.
The caller hears ‘goodbye’ after about 1 second and call disconnects.
Some of the log during that inbound call is:
Dec 5 13:33:15 VERBOSE[5852] logger.c: – Starting simple switch on ‘Zap/1-1’
Dec 5 13:33:15 NOTICE[5852] chan_zap.c: Got event 18 (Ring Begin)…
Dec 5 13:33:16 NOTICE[5852] chan_zap.c: Got event 2 (Ring/Answered)…
Dec 5 13:33:20 NOTICE[5852] chan_zap.c: Got event 18 (Ring Begin)…
Dec 5 13:33:20 VERBOSE[5852] logger.c: – Executing Playback(“Zap/1-1”, “vm-goodbye”) in new stack
Dec 5 13:33:20 DEBUG[5852] chan_zap.c: Took Zap/1-1 off hook
Dec 5 13:33:20 DEBUG[5852] chan_zap.c: Enabled echo cancellation on channel 1
ec 5 13:33:20 DEBUG[5852] cdr_addon_mysql.c: cdr_mysql: inserting a CDR record.
Dec 5 13:33:20 DEBUG[5852] cdr_addon_mysql.c: cdr_mysql: SQL command as follows: INSERT INTO cdr (calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode,uniqueid) VALUES (‘2006-12-05 13:33:20’,’’,’’,‘s’,‘default’, ‘Zap/1-1’,’’,‘ResetCDR’,‘w’,0,0,‘ANSWERED’,3,’’,‘1165307595.27’)
Dec 5 13:33:20 VERBOSE[5852] logger.c: – Executing NoCDR(“Zap/1-1”, “”) in new stack
Dec 5 13:33:20 WARNING[5852] cdr.c: CDR on channel ‘Zap/1-1’ not posted
Dec 5 13:33:20 WARNING[5852] cdr.c: CDR on channel ‘Zap/1-1’ lacks end
Dec 5 13:33:20 VERBOSE[5852] logger.c: – Executing Wait(“Zap/1-1”, “5”) in new stack
Dec 5 13:33:26 VERBOSE[5852] logger.c: – Executing Hangup(“Zap/1-1”, “”) in new stack
Dec 5 13:33:26 VERBOSE[5852] logger.c: == Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘Zap/1-1’ in macro 'hangupcall’
Dec 5 13:33:26 VERBOSE[5852] logger.c: == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'Zap/1-1’
Dec 5 13:33:26 DEBUG[5852] chan_zap.c: Hangup: channel: 1 index = 0, normal = 16, callwait = -1, thirdcall = -1
Dec 5 13:33:26 DEBUG[5852] chan_zap.c: disabled echo cancellation on channel 1
Dec 5 13:33:26 DEBUG[5852] chan_zap.c: Set option TDD MODE, value: OFF(0) on Zap/1-1
Dec 5 13:33:26 DEBUG[5852] chan_zap.c: Updated conferencing on 1, with 0 conference users
Dec 5 13:33:26 VERBOSE[5852] logger.c: – Hungup ‘Zap/1-1’