Page 1 of 1

problems multiserver

PostPosted: Thu Nov 13, 2008 6:30 am
by gina3002
Situation:

1 Asterisk (old) 1.2.16 working without vicidial "192.168.6.60"
1 Vicidial (new) latest release "192.168.6.80"

i configured as in the load_balancing.txt is written. i think they try to talk the other one.

this is from the old asterisk cli:

-- Accepting AUTHENTICATED call from 192.168.6.80:
> requested format = slin,
> requested prefs = (gsm),
> actual format = gsm,
> host prefs = (gsm),
> priority = mine
-- Executing AGI("IAX2/ASTtest1-8", "agi://127.0.0.1:4577/call_log") in new stack
== Spawn extension (default, 004907021504932, 1) exited non-zero on 'IAX2/ASTtest1-8'
-- Hungup 'IAX2/ASTtest1-8'



after the execute AGi there must be a DIAL...... or not??????
the problem ist i have only one T1, this one is connected with the old asterisk and is working. i have configured two groups, zap g1 and zag g2. so i want to test vicidial powerdialing, so db base and web server and vicidial is on the new server, the telco connection is on the old server. zap g1 is for daily work (15 lines) andf zap g2 (15 lines) fpr testing. in admin center of vicidial i think i everything ok, old server 15 lines new server o lines.

plz help me

extconf Server (Vicidial):


[general]
static=yes
writeprotect=no

[globals]
CONSOLE=Console/dsp ; Console interface for demo
TRUNK=Zap/g1 ; Trunk interface
TRUNKX=Zap/g2 ; 2nd trunk interface
TRUNKIAX=IAX2/ASTtest1:test@192.168.6.60:4569 ; IAX trunk interface
TRUNKBINFONE=IAX2/1112223333:PASSWORD@iax.binfone.com ; IAX trunk interface
SIPtrunk=SIP/1234:PASSWORD@sip.provider.net ; SIP trunk
TRUNKloop = IAX2/ASTloop:test@127.0.0.1:40569 ; used for blind monitoring
TRUNKblind = IAX2/ASTblind:test@127.0.0.1:41569 ; used for testing


[default]
; VICI-GROUP DIRECT SUPPORT LINE (VICIHELP[84244357])
exten => _84244XXX,1,Dial(IAX2/vicihelp/${EXTEN:5})

; BE SURE TO CHANGE THIS LINE FOR YOUR IP ADDRESS!
exten => _192*168*006*080*.,1,Goto(default,${EXTEN:16},1)
exten => _192*168*006*060*.,1,Dial(${TRUNKIAX}/${EXTEN:16},55,o)

exten => _X*.,1,AGI(agi-VDADfixCXFER.agi)
;exten => _X*.,1,AGI(agi-VDADfixCXFER.agi)

; Local blind monitoring
exten => _08600XXX,1,Dial(${TRUNKblind}/6${EXTEN:1},55,T)


; extensions for other SIP and IAX call center phones
; cc100-cc150 SIP Phones
exten => _1[0-5]X,1,Dial(sip/cc${EXTEN},20,to)
; cc300-cc350 IAX Phones
exten => _3[0-5]X,1,Dial(IAX2/cc${EXTEN},20,to)

; extensions if using a T1 channelbank
;exten => _19XX,1,Dial(Zap/${EXTEN:2},30,o)
;exten => _19XX,2,Hangup

; # timeout invalid rules
exten => #,1,Playback(invalid) ; "Thanks for trying the demo"
exten => #,2,Hangup ; Hang them up.
exten => t,1,Goto(#,1) ; If they take too long, give up
exten => i,1,Playback(invalid) ; "That's not valid, try again"

; Give voicemail at extension 8500
exten => 8500,1,VoicemailMain
exten => 8500,2,Goto(s,6)

; FastAGI for VICIDIAL/astGUIclient call logging
exten => h,1,DeadAGI(agi://127.0.0.1:4577/call_log--HVcauses ... EBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME})

; Outbound Germany
; This 'o' Dial flag is VERY important for VICIDIAL on outbound calls
exten => _X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _X.,2,Dial(${TRUNKIAX}/${EXTEN:1},to)
exten => _X.,3,Hangup



extconf Server old "working Asterisk":

[general]
static=yes
writeprotect=no
clearglobalvars=no

[globals]
;keine Vorwahl
VORWAHLEN=
CONSOLE=Console/dsp ; Console interface for demo
IAXINFO=guest ; IAXtel username/password
TRUNK=Zap/g1 ; Trunk interface
TRUNK2=Zap/g2 ; Zweite Gruppe fuer Vicidial
TRUNKIAX1=IAX2/ASTtest2:test@192.168.6.80 ; Verbindung Vicidial
TRUNKMSD=1 ; MSD digits to strip (usually 1 or 0)
MONITOR_EXEC=/usr/local/bin/2wav2mp3
CONFMAX=5

[default]

exten => _192*168*006*080*.,1,Dial(${TRUNKIAX1}/${EXTEN:16},55,o)
exten => _192*168*006*060*.,1,Goto(default,${EXTEN:16},1)
exten => _X*.,1,AGI(agi-VDADfixCXFER.agi)
;exten => _X*.,1,AGI(agi-VDADfixCXFER.agi)

; VICIDIAL_auto_dialer transfer script Load Balance Overflow:

exten => 8367,1,AGI(call_log.agi,${EXTEN})
exten => 8367,2,AGI(agi-VDAD_LO_transfer.agi,${EXTEN})
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,AGI(call_log.agi,${EXTEN})
exten => 8368,2,AGI(agi-VDAD_LB_transfer.agi,${EXTEN})
exten => 8368,3,AGI(agi-VDAD_LB_transfer.agi,${EXTEN})
exten => 8368,4,AGI(agi-VDAD_LB_transfer.agi,${EXTEN})
exten => 8368,5,Hangup

; FastAGI for VICIDIAL/astGUIclient call logging
exten => h,1,DeadAGI(agi://127.0.0.1:4577/call_log--HVcauses ... EBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME})

; Outbound Germany
; This 'o' Dial flag is VERY important for VICIDIAL on outbound calls
exten => _X,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _X,2,Dial(${TRUNK2}/${EXTEN:1},,To)
exten => _X,3,Hangup



screen -r Vicidial:

[root@vici ~]# screen -r
There are several suitable screens on:
2464.ASTlisten (Detached)
2467.ASTVDauto (Detached)
2479.ASTVDautoFILL (Detached)
2461.ASTsend (Detached)
2473.ASTVDadapt (Detached)
2470.ASTVDremote (Detached)
2407.asterisk (Detached)
2476.ASTfastlog (Detached)
2458.ASTupdate (Detached)
Type "screen [-d] -r [pid.]tty.host" to resume one of them.



screen -r old asterisk :

[root@asterisk-rt ~]# screen -r
There are several suitable screens on:
1105.ASTlisten (Detached)
1102.ASTsend (Detached)
1099.ASTupdate (Detached)
1107.ASTVDauto (Detached)
16555.ASTfastlog (Detached)
1111.ASTVDremote (Detached)
Type "screen [-d] -r [pid.]tty.host" to resume one of them.

PostPosted: Thu Nov 13, 2008 6:53 am
by gina3002
the conference have to be on both servers or only on the vicidial?
and the agents log in in the vicidial and only the telco line is on the second server?

PostPosted: Fri Nov 14, 2008 7:23 am
by gina3002
push :-)

PostPosted: Fri Nov 14, 2008 9:42 pm
by mflorell
Do you want to put agents on both servers?

PostPosted: Mon Nov 17, 2008 6:01 am
by gina3002
is this necessary?

first step is to test vicidial, but the problem ist only one t1 line for the old asterisk. so the idea was connect the old asterisk to the vicidial only for dialing....

PostPosted: Mon Nov 17, 2008 5:49 pm
by mflorell
Not at all, it would be much easier to only have agents on one server at first, then after that is working you could try different configurations.

PostPosted: Tue Nov 18, 2008 12:51 pm
by gina3002
ok so what is the problem?
on the vicidial cli ist everything ok i think but on the old asterisk i miss Dial.... and so on or not?

PostPosted: Wed Nov 19, 2008 4:22 am
by mflorell
I would really need to see more Asterisk CLI output to diagnose the problem