Problem with priview in autodialing??

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Problem with priview in autodialing??

Postby Aspia » Mon Apr 23, 2007 8:49 am

We run 2 asterisk boxes. One with complete Vici,asterisk,apache and mysql. This server connects through IAX with our other server with one E1 line.

Dialing in manual mode works fine, but when we run autodialing we get preview. When vici starts dialing, it gives customer information in the gui, and u will hear the dialtone before it connects with the customer. It seems to me that vici sets "Answered" when our other asterisk server connects the call.

CLI:
Apr 19 15:37:34 VERBOSE[21386] logger.c: -- Executing AGI("Local/012121212@ventelo-fbfb,2", "agi://127.0.0.1:4577/call_log") in new stack
Apr 19 15:37:34 VERBOSE[21386] logger.c: -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
Apr 19 15:37:34 VERBOSE[21386] logger.c: -- Executing Dial("Local/012121212@ventelo-fbfb,2", "IAX2/user:passwd@xxxx.xxxx.no/012121212|55|o"$
Apr 19 15:37:34 DEBUG[20902] channel.c: Avoiding initial deadlock for 'IAX2/eugene-4'
Apr 19 15:37:34 VERBOSE[21386] logger.c: -- Called user:passwd@xxxx.xxxx.no/012121212
Apr 19 15:37:34 VERBOSE[20911] logger.c: -- Call accepted by 11.11.111.1 (format alaw)
Apr 19 15:37:34 VERBOSE[20911] logger.c: -- Format for call is alaw
Apr 19 15:37:34 VERBOSE[21386] logger.c: -- IAX2/eugene-4 answered Local/012121212@ventelo-fbfb,2
Apr 19 15:37:34 VERBOSE[21384] logger.c: > Channel Local/012121212@ventelo-fbfb,1 was answered.
Apr 19 15:37:34 VERBOSE[21387] logger.c: -- Executing Playback("Local/012121212@ventelo-fbfb,1", "sip-silence") in new stack
Apr 19 15:37:34 DEBUG[21387] channel.c: Scheduling timer at 160 sample intervals
Apr 19 15:37:34 VERBOSE[21387] logger.c: -- Playing 'sip-silence' (language 'en')
Apr 19 15:37:34 DEBUG[21387] channel.c: Scheduling timer at 0 sample intervals
Apr 19 15:37:34 DEBUG[21387] channel.c: Scheduling timer at 0 sample intervals
Apr 19 15:37:34 VERBOSE[21387] logger.c: -- Executing AGI("Local/012121212@ventelo-fbfb,1", "agi://127.0.0.1:4577/call_log") in new stack
Apr 19 15:37:34 DEBUG[20911] chan_iax2.c: Ooh, voice format changed to 8
Apr 19 15:37:34 DEBUG[21386] channel.c: Planning to masquerade channel IAX2/eugene-4 into the structure of Local/012121212@ventelo-fbfb,1
Apr 19 15:37:34 DEBUG[21386] channel.c: Done planning to masquerade channel IAX2/eugene-4 into the structure of Local/012121212@ventelo-fbfb,1
Apr 19 15:37:34 DEBUG[21386] chan_local.c: Not posting to queue since already masked on 'Local/012121212@ventelo-fbfb,2'
Apr 19 15:37:34 DEBUG[21387] channel.c: Got clone lock for masquerade on 'IAX2/eugene-4' at 0x81633e4
Apr 19 15:37:34 DEBUG[21387] channel.c: Putting channel IAX2/eugene-4 in 64/64 formats
Apr 19 15:37:34 DEBUG[21387] channel.c: Released clone lock on 'Local/012121212@ventelo-fbfb,1<ZOMBIE>'
Apr 19 15:37:34 DEBUG[21387] channel.c: Done Masquerading IAX2/eugene-4 (6)
Apr 19 15:37:34 DEBUG[21386] channel.c: Didn't get a frame from channel: Local/012121212@ventelo-fbfb,2
Apr 19 15:37:34 DEBUG[21386] channel.c: Bridge stops bridging channels Local/012121212@ventelo-fbfb,2 and Local/012121212@ventelo-fbfb,1<ZOMBIE>
Apr 19 15:37:34 DEBUG[21386] app_dial.c: Exiting with DIALSTATUS=ANSWER.
Apr 19 15:37:34 VERBOSE[21386] logger.c: == Spawn extension (ventelo, 012121212, 2) exited non-zero on 'Local/012121212@ventelo-fbfb,2'
Apr 19 15:37:34 VERBOSE[21386] logger.c: -- Executing DeadAGI("Local/012121212@ventelo-fbfb,2", "agi://127.0.0.1:4577/call_log") in new stack
Apr 19 15:37:34 VERBOSE[21387] logger.c: -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
Apr 19 15:37:34 VERBOSE[21387] logger.c: -- Executing AGI("IAX2/eugene-4", "agi-VDADtransfer.agi|8365") in new stack
Apr 19 15:37:34 VERBOSE[21386] logger.c: -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
Apr 19 15:37:34 VERBOSE[21387] logger.c: -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDADtransfer.agi
Apr 19 15:37:34 VERBOSE[21386] logger.c: -- Executing DeadAGI("Local/012121212@ventelo-fbfb,2", "agi://127.0.0.1:4577/VD_hangup--HVcauses--PRI-----NOD$
Apr 19 15:37:34 VERBOSE[21386] logger.c: -- AGI Script agi://127.0.0.1:4577/VD_hangup--HVcause ... ---0-----0) comple$
Apr 19 15:37:34 DEBUG[21386] pbx.c: Function result is 'V0419153734000000334'
Apr 19 15:37:34 DEBUG[21386] pbx.c: Function result is '(null)'
Apr 19 15:37:34 DEBUG[21386] pbx.c: Function result is '012121212'
Apr 19 15:37:34 DEBUG[21386] pbx.c: Function result is 'ventelo'
Apr 19 15:37:34 DEBUG[21386] pbx.c: Function result is 'Local/012121212@ventelo-fbfb,2'
Apr 19 15:37:34 DEBUG[21386] pbx.c: Function result is 'IAX2/eugene-4'
Apr 19 15:37:34 DEBUG[21386] pbx.c: Function result is 'DeadAGI'
Apr 19 15:37:34 DEBUG[21386] pbx.c: Function result is 'agi://127.0.0.1:4577/VD_hangup--HVcauses--PRI-----NODEBUG-----16-----ANSWER----'
Apr 19 15:37:34 DEBUG[21386] pbx.c: Function result is '2007-04-19 15:37:34'
Apr 19 15:37:34 DEBUG[21386] pbx.c: Function result is '2007-04-19 15:37:34'
Apr 19 15:37:34 DEBUG[21386] pbx.c: Function result is '2007-04-19 15:37:34'
Apr 19 15:37:34 DEBUG[21386] pbx.c: Function result is '0'
Apr 19 15:37:34 DEBUG[21386] pbx.c: Function result is '0'
Apr 19 15:37:34 DEBUG[21386] pbx.c: Function result is 'ANSWERED'
pr 19 15:37:34 DEBUG[21386] pbx.c: Function result is 'DOCUMENTATION'
Apr 19 15:37:34 DEBUG[21386] pbx.c: Function result is '(null)'
Apr 19 15:37:34 DEBUG[21386] pbx.c: Function result is '1176989854.5'
Apr 19 15:37:34 DEBUG[21386] pbx.c: Function result is '(null)'
Apr 19 15:37:34 DEBUG[20973] manager.c: Manager received command 'Command'
Apr 19 15:37:34 VERBOSE[21387] logger.c: -- AGI Script agi-VDADtransfer.agi completed, returning 0
Apr 19 15:37:34 VERBOSE[21387] logger.c: -- Executing MeetMe("IAX2/eugene-4", "8600121") in new stack
Apr 19 15:37:34 DEBUG[21387] app_meetme.c: Placed channel IAX2/eugene-4 in ZAP conf 1023
Apr 19 15:37:35 DEBUG[20973] manager.c: Manager received command 'Command'
Apr 19 15:38:20 DEBUG[21528] manager.c: Manager received command 'Hangup'
Apr 19 15:38:20 VERBOSE[21387] logger.c: == Spawn extension (ventelo, 8600121, 1) exited non-zero on 'IAX2/eugene-4'
Apr 19 15:38:20 VERBOSE[21387] logger.c: -- Executing DeadAGI("IAX2/eugene-4", "agi://127.0.0.1:4577/call_log") in new stack
Apr 19 15:38:20 VERBOSE[21387] logger.c: -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
Apr 19 15:38:20 VERBOSE[21387] logger.c: -- Executing DeadAGI("IAX2/eugene-4", "agi://127.0.0.1:4577/VD_hangup--HVcauses--PRI-----NODEBUG-----0-------$
Apr 19 15:38:20 VERBOSE[21387] logger.c: -- AGI Script agi://127.0.0.1:4577/VD_hangup--HVcause ... ----------) completed, retu$
Apr 19 15:38:20 DEBUG[21387] pbx.c: Function result is 'V0419153734000000334'
Apr 19 15:38:20 DEBUG[21387] pbx.c: Function result is '(null)'
Apr 19 15:38:20 DEBUG[21387] pbx.c: Function result is '8600121'
Apr 19 15:38:20 DEBUG[21387] pbx.c: Function result is 'ventelo'
Apr 19 15:38:20 DEBUG[21387] pbx.c: Function result is 'Local/012121212@ventelo-fbfb,1'
Apr 19 15:38:20 DEBUG[21387] pbx.c: Function result is '(null)'
Apr 19 15:38:20 DEBUG[21387] pbx.c: Function result is 'DeadAGI'
Apr 19 15:38:20 DEBUG[21387] pbx.c: Function result is 'agi://127.0.0.1:4577/VD_hangup--HVcauses--PRI-----NODEBUG-----0---------------)'
Apr 19 15:38:20 DEBUG[21387] pbx.c: Function result is '2007-04-19 15:37:34'
Apr 19 15:38:20 DEBUG[21387] pbx.c: Function result is '(null)'
Apr 19 15:38:20 DEBUG[21387] pbx.c: Function result is '2007-04-19 15:38:20'
Apr 19 15:38:20 DEBUG[21387] pbx.c: Function result is '46'
Apr 19 15:38:20 DEBUG[21387] pbx.c: Function result is '0'
Apr 19 15:38:20 DEBUG[21387] pbx.c: Function result is 'ANSWERED'
Apr 19 15:38:20 DEBUG[21387] pbx.c: Function result is 'DOCUMENTATION'
Apr 19 15:38:20 DEBUG[21387] pbx.c: Function result is '(null)'
Apr 19 15:38:20 DEBUG[21387] pbx.c: Function result is '1176989854.4'
Apr 19 15:38:20 DEBUG[21387] pbx.c: Function result is '(null)'
Apr 19 15:38:20 DEBUG[21387] chan_iax2.c: We're hanging up IAX2/eugene-4 now...
Apr 19 15:38:20 VERBOSE[21387] logger.c: -- Hungup 'IAX2/eugene-4'

extensions.conf:
[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
priorityjumping=no

[globals]
CONSOLE=Console/dsp
IW=IAX2/user:passwd@xxxx.xxxx.no

[ventelo]
exten => h,1,DeadAGI(agi://127.0.0.1:4577/call_log)
exten => h,2,DeadAGI(agi://127.0.0.1:4577/VD_hangup--HVcause ... EBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME}))

exten => _X48600XXX,1,MeetMeAdmin(${EXTEN:2},T,${EXTEN:0:1})
exten => _X48600XXX,2,Hangup

exten => _X38600XXX,1,MeetMeAdmin(${EXTEN:2},t,${EXTEN:0:1})
exten => _X38600XXX,2,Hangup

exten => 8300,1,Hangup
; park channel for client GUI parking, hangup after 30 minutes
; create a GSM formatted audio file named "park.gsm" that is 30 minutes long
; and put it in /var/lib/asterisk/sounds
exten => 8301,1,Answer
exten => 8301,2,AGI(park_CID.agi)
exten => 8301,3,Playback(park)
exten => 8301,4,Hangup

exten => 8303,1,Answer
exten => 8303,2,AGI(park_CID.agi)
exten => 8303,3,Playback(conf)
exten => 8303,4,Hangup

; park channel for client GUI conferencing, hangup after 30 minutes
; create a GSM formatted audio file named "conf.gsm" that is 30 minutes long
; and put it in /var/lib/asterisk/sounds
exten => 8302,1,Answer
exten => 8302,2,Playback(conf)
exten => 8302,3,Hangup

; default audio for safe harbor 2-second-after-hello message then hangup
; create a GSM formatted audio file complies with safe harbor rules
; and put it in /var/lib/asterisk/sounds then change filename below
exten => 8307,1,Answer
exten => 8307,2,Playback(vm-goodbye)
exten => 8307,3,Hangup

; this is used for recording conference calls, the client app sends the filename
; value as a callerID recordings go to /var/spool/asterisk/monitor (WAV)
exten => 8309,1,Answer
exten => 8309,2,Monitor(wav,${CALLERIDNAME})
exten => 8309,3,Wait,3600
exten => 8309,4,Hangup

; this is used for recording conference calls, the client app sends the filename
; value as a callerID recordings go to /var/spool/asterisk/monitor (GSM)
exten => 8310,1,Answer
exten => 8310,2,Monitor(gsm,${CALLERIDNAME})
exten => 8310,3,Wait,3600
exten => 8310,4,Hangup

; this is used for playing a message to an answering machine forwarded from AMD in VICIDIAL
; replace conf with the message file you want to leave
exten => 8320,1,WaitForSilence(2000,2) ; AMD got machine. leave message after recording
exten => 8320,2,Playback(conf)
exten => 8320,3,AGI(VD_amd_post.agi,${EXTEN})
exten => 8320,4,Hangup

; this is used to allow the GUI to send you directly into voicemail
; don't forget to set GUI variable $voicemail_exten to this extension
exten => 8501,1,VoicemailMain(s${CALLERIDNUM})
exten => 8501,2,Hangup

; this is used to allow the GUI to send live calls directly into voicemail
; don't forget to set GUI variable $voicemail_dump_exten to this extension
exten => _85026666666666.,1,Wait(2)
exten => _85026666666666.,2,Voicemail(${EXTEN:14})
exten => _85026666666666.,3,Hangup

; this is used for sending DTMF signals within conference calls, the client app
; sends the digits to be played in the callerID field
; sound files must be placed in /var/lib/asterisk/sounds
exten => 8500998,1,Answer
exten => 8500998,2,Playback(silence)
exten => 8500998,3,AGI(agi-dtmf.agi)
exten => 8500998,4,Hangup

; prompt recording AGI script, ID is 4321
exten => 8168,1,Answer
exten => 8168,2,AGI(agi-record_prompts.agi)
exten => 8168,3,Hangup

; playback of recorded prompts
exten => _851XXXXX,1,Answer
exten => _851XXXXX,2,Playback(${EXTEN})
exten => _851XXXXX,3,Hangup

; VICIDIAL_auto_dialer transfer script for no-agent campaigns:
exten => 8364,1,Playback(sip-silence)
exten => 8364,2,AGI(agi://127.0.0.1:4577/call_log)
exten => 8364,3,AGI(agi-VDADtransferBROADCAST.agi,${EXTEN})
exten => 8364,4,AGI(agi-VDADtransferBROADCAST.agi,${EXTEN})
exten => 8364,5,Hangup

; VICIDIAL_auto_dialer transfer script:
exten => 8365,1,Playback(sip-silence)
exten => 8365,n,AGI(agi://127.0.0.1:4577/call_log)
exten => 8365,n,AGI(agi-VDADtransfer.agi,${EXTEN})
exten => 8365,n,AGI(agi-VDADtransfer.agi,${EXTEN})
exten => 8365,n,Hangup

; VICIDIAL_auto_dialer transfer script SURVEY at beginning:
exten => 8366,1,Playback(sip-silence)
exten => 8366,2,AGI(agi://127.0.0.1:4577/call_log)
exten => 8366,3,AGI(agi-VDADtransferSURVEY.agi,${EXTEN})
exten => 8366,4,AGI(agi-VDADtransferSURVEY.agi,${EXTEN})
exten => 8366,5,Hangup

; VICIDIAL_auto_dialer transfer script Load Balance Overflow:
exten => 8367,1,Playback(sip-silence)
exten => 8367,2,AGI(agi://127.0.0.1:4577/call_log)
exten => 8367,3,AGI(agi-VDAD_LO_transfer.agi,${EXTEN})
exten => 8367,4,AGI(agi-VDAD_LO_transfer.agi,${EXTEN})
exten => 8367,5,Hangup

; VICIDIAL_auto_dialer transfer script Load Balanced:
exten => 8368,1,Playback(sip-silence)
exten => 8368,2,AGI(agi://127.0.0.1:4577/call_log)
exten => 8368,3,AGI(agi-VDAD_LB_transfer.agi,${EXTEN})

xten => 8368,4,AGI(agi-VDAD_LB_transfer.agi,${EXTEN})
exten => 8368,5,Hangup

; VICIDIAL_auto_dialer transfer script AMD with Load Balanced:
exten => 8369,1,Playback(sip-silence)
exten => 8369,2,AGI(agi://127.0.0.1:4577/call_log)
exten => 8369,3,AMD(3500|1500|300|5000|120|50|5|256)
exten => 8369,4,AGI(VD_amd.agi,${EXTEN})
exten => 8369,5,AGI(agi-VDAD_LB_transfer.agi,${EXTEN})
exten => 8369,6,AGI(agi-VDAD_LB_transfer.agi,${EXTEN})
exten => 8369,7,Hangup

; VICIDIAL auto-dial reminder script
exten => 8372,1,Playback(sip-silence)
exten => 8372,2,AGI(agi://127.0.0.1:4577/call_log)
exten => 8372,3,AGI(agi-VDADautoREMINDER.agi,${EXTEN})
exten => 8372,4,AGI(agi-VDADautoREMINDER.agi,${EXTEN})
exten => 8372,5,Hangup

; parameters for agi-VDADcloser.agi (2 fields separated by five dashes "-----"):
; 1. the full extension formatted by VICIDIAL for internal transfers * separated
; 2. the word START to denote the beginning of the acceptance of the transfer
; inbound VICIDIAL transfer calls [can arrive through PRI T1 crossover or IAX channel]
exten => _90009.,1,Answer ; Answer the line
exten => _90009.,2,AGI(agi-VDADcloser.agi,${EXTEN}-----START)
exten => _90009.,3,Hangup

#include </etc/asterisk/Conference.conf>


exten => _X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _X.,n,Dial(${IW}/${EXTEN},55,otT)
exten => _X.,n,Hangup

[default]
include = ventelo

exten = 1001,1,Dial(SIP/1001,300,tw)
exten = 1001,2,Congestion

[iw]
;exten => _X.,1,Macro(outbound,${EXTEN:1})
exten=>_X.,1,Dial(IAX2/user:passwd@11.11.111.1/0${EXTEN}@from-sip,300,r)
exten => _X.,2,Hangup

[macro-outbound]
exten => s,1,Set(CALLERID(name)="")
exten => s,2,Set(CALLERID(number)=${CALLERID(number)})
exten => s,3,Answer
exten => s,4,Dial(${IW}/0${ARG1}@from-sip,300)
exten => s,5,Busy
Aspia
 
Posts: 5
Joined: Wed Feb 21, 2007 5:30 pm
Location: Norway

Postby mflorell » Tue Apr 24, 2007 11:10 am

Asterisk version?

astGUIclient version?

You need to remove the "Answer" line from your gateway server, or create a new dial path that does not have Answer in it.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby Aspia » Sat Apr 28, 2007 5:23 am

Tnx , removed answer from gateway and then it worked fine. :P
Aspia
 
Posts: 5
Joined: Wed Feb 21, 2007 5:30 pm
Location: Norway


Return to Support

Who is online

Users browsing this forum: No registered users and 99 guests