Page 1 of 1

Random Drop oubound call

PostPosted: Wed Nov 16, 2011 6:44 pm
by renzo.caso
For some reason I got random drop call.

My build:
VICIBOX 3.1.9
VERSION: 2.4-299
BUILD: 110214-0001
Asterisk 1.4.39.1-vici
dahdi-linux-complete-2.4.1.2+2.4.1
wanpipe-3.5.20
libpri-1.4.11.5

Hardware:
Sangoma Card A101
16 core AMD Server with 4GB of DDR3

My dial plan: (yes we route a few area codes to our SIP provider)

exten => _91NXXXXXXXXX,1,Answer
;exten => _91NXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91NXXXXXXXXX,2,GotoIf($["${EXTEN:0:5}" = "91800"]?20)
exten => _91NXXXXXXXXX,3,GotoIf($["${EXTEN:0:5}" = "91877"]?20)
exten => _91NXXXXXXXXX,4,GotoIf($["${EXTEN:0:5}" = "91866"]?20)
exten => _91NXXXXXXXXX,5,GotoIf($["${EXTEN:0:5}" = "91888"]?20)
exten => _91NXXXXXXXXX,6,GotoIf($["${EXTEN:0:5}" = "91602"]?20)
exten => _91NXXXXXXXXX,7,GotoIf($["${EXTEN:0:5}" = "91623"]?20)
exten => _91NXXXXXXXXX,8,GotoIf($["${EXTEN:0:12}" = "914809910691"]?13)
exten => _91NXXXXXXXXX,9,GotoIf($["${EXTEN:0:12}" = "914809483431"]?13)
exten => _91NXXXXXXXXX,10,GotoIf($["${EXTEN:0:5}" = "91480"]?20)
exten => _91NXXXXXXXXX,11,GotoIf($["${EXTEN:0:5}" = "91520"]?20)
exten => _91NXXXXXXXXX,12,GotoIf($["${EXTEN:0:5}" = "91928"]?20)
;exten => _91NXXXXXXXXX,10,Dial(SIP/voipcon/${EXTEN:1},,tTor)
exten => _91NXXXXXXXXX,13,Dial(Dahdi/g0/${EXTEN:1},3600,To)
exten => _91NXXXXXXXXX,14,GotoIf($["${DIALSTATUS}" = "BUSY"]?22)
exten => _91NXXXXXXXXX,15,GotoIf($["${DIALSTATUS}" = "CHANUNAVAIL"]?18)
exten => _91NXXXXXXXXX,16,GotoIf($["${DIALSTATUS}" = "CONGESTION"]?18)
exten => _91NXXXXXXXXX,17,Goto(24)
exten => _91NXXXXXXXXX,18,Playtones(congestion)
exten => _91NXXXXXXXXX,19,Goto(23)
exten => _91NXXXXXXXXX,20,Dial(SIP/103387/${EXTEN:1},,tTor)
exten => _91NXXXXXXXXX,21,Goto(25)
exten => _91NXXXXXXXXX,22,Playtones(busy)
exten => _91NXXXXXXXXX,23,Wait(16)
exten => _91NXXXXXXXXX,24,Hangup


this is my CLI from the call"

[Nov 16 13:23:48] VERBOSE[4223] logger.c: [Nov 16 13:23:48] -- Executing [919543308619@default:1] Answer("Local/8600078@default-475a,1", "") in new stack
[Nov 16 13:23:48] VERBOSE[4223] logger.c: [Nov 16 13:23:48] -- Executing [919543308619@default:2] GotoIf("Local/8600078@default-475a,1", "0?20") in new stack
[Nov 16 13:23:48] VERBOSE[4223] logger.c: [Nov 16 13:23:48] -- Executing [919543308619@default:3] GotoIf("Local/8600078@default-475a,1", "0?20") in new stack
[Nov 16 13:23:48] VERBOSE[4223] logger.c: [Nov 16 13:23:48] -- Executing [919543308619@default:4] GotoIf("Local/8600078@default-475a,1", "0?20") in new stack
[Nov 16 13:23:48] VERBOSE[4223] logger.c: [Nov 16 13:23:48] -- Executing [919543308619@default:5] GotoIf("Local/8600078@default-475a,1", "0?20") in new stack
[Nov 16 13:23:48] VERBOSE[4223] logger.c: [Nov 16 13:23:48] -- Executing [919543308619@default:6] GotoIf("Local/8600078@default-475a,1", "0?20") in new stack
[Nov 16 13:23:48] VERBOSE[4223] logger.c: [Nov 16 13:23:48] -- Executing [919543308619@default:7] GotoIf("Local/8600078@default-475a,1", "0?20") in new stack
[Nov 16 13:23:48] VERBOSE[4223] logger.c: [Nov 16 13:23:48] -- Executing [919543308619@default:8] GotoIf("Local/8600078@default-475a,1", "0?13") in new stack
[Nov 16 13:23:48] VERBOSE[4223] logger.c: [Nov 16 13:23:48] -- Executing [919543308619@default:9] GotoIf("Local/8600078@default-475a,1", "0?13") in new stack
[Nov 16 13:23:48] VERBOSE[4223] logger.c: [Nov 16 13:23:48] -- Executing [919543308619@default:10] GotoIf("Local/8600078@default-475a,1", "0?20") in new stack
[Nov 16 13:23:48] VERBOSE[4223] logger.c: [Nov 16 13:23:48] -- Executing [919543308619@default:11] GotoIf("Local/8600078@default-475a,1", "0?20") in new stack
[Nov 16 13:23:48] VERBOSE[4223] logger.c: [Nov 16 13:23:48] -- Executing [919543308619@default:12] GotoIf("Local/8600078@default-475a,1", "0?20") in new stack
[Nov 16 13:23:48] VERBOSE[4223] logger.c: [Nov 16 13:23:48] -- Executing [919543308619@default:13] Dial("Local/8600078@default-475a,1", "Dahdi/g0/19543308619|3600|To") in new stack
[Nov 16 13:23:48] VERBOSE[4223] logger.c: [Nov 16 13:23:48] -- Requested transfer capability: 0x00 - SPEECH
[Nov 16 13:23:48] VERBOSE[4223] logger.c: [Nov 16 13:23:48] -- Called g0/19543308619
[Nov 16 13:23:48] VERBOSE[4223] logger.c: [Nov 16 13:23:48] -- DAHDI/7-1 is proceeding passing it to Local/8600078@default-475a,1
[Nov 16 13:23:48] VERBOSE[4223] logger.c: [Nov 16 13:23:48] -- DAHDI/7-1 is making progress passing it to Local/8600078@default-475a,1
[Nov 16 13:23:48] VERBOSE[4223] logger.c: [Nov 16 13:23:48] -- DAHDI/7-1 is making progress passing it to Local/8600078@default-475a,1
[Nov 16 13:23:50] VERBOSE[4223] logger.c: [Nov 16 13:23:50] -- DAHDI/7-1 is ringing
[Nov 16 13:23:56] DEBUG[4223] chan_dahdi.c: Set option AUDIO MODE, value: ON(1) on DAHDI/7-1
[Nov 16 13:23:56] DEBUG[4223] chan_dahdi.c: Not yet hungup... Calling hangup once with icause, and clearing call
[Nov 16 13:23:56] DEBUG[4223] chan_dahdi.c: Set option AUDIO MODE, value: OFF(0) on DAHDI/7-1
[Nov 16 13:23:56] VERBOSE[4223] logger.c: [Nov 16 13:23:56] -- Hungup 'DAHDI/7-1'
[Nov 16 13:23:56] VERBOSE[4223] logger.c: [Nov 16 13:23:56] == Spawn extension (default, 919543308619, 13) exited non-zero on 'Local/8600078@default-475a,1'
[Nov 16 13:23:56] VERBOSE[4223] logger.c: [Nov 16 13:23:56] -- Executing [h@default:1] DeadAGI("Local/8600078@default-475a,1", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0-----CANCEL----------") in new stack
[Nov 16 13:23:56] VERBOSE[4223] logger.c: [Nov 16 13:23:56] -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0


Please Help :(

Thank you

PostPosted: Wed Nov 16, 2011 7:56 pm
by williamconley
Code: Select all
exten => _91NXXXXXXXXX,1,Answer
;exten => _91NXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
? why are you answering the call before dialing it? and why are not not executing the vicidial agi script?

PostPosted: Wed Nov 16, 2011 8:03 pm
by renzo.caso
We always need to use the "exten => _91NXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)" ?

PostPosted: Wed Nov 16, 2011 8:23 pm
by williamconley
yep. that IS vicidial being attached to the channel. without it .. vicidial has no knowledge of the call.

PostPosted: Wed Nov 16, 2011 9:22 pm
by renzo.caso
ok so the correct dial plan is"

;exten => _91NXXXXXXXXX,1,Answer
exten => _91NXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91NXXXXXXXXX,2,GotoIf($["${EXTEN:0:5}" = "91800"]?20)
exten => _91NXXXXXXXXX,3,GotoIf($["${EXTEN:0:5}" = "91877"]?20)
exten => _91NXXXXXXXXX,4,GotoIf($["${EXTEN:0:5}" = "91866"]?20)
exten => _91NXXXXXXXXX,5,GotoIf($["${EXTEN:0:5}" = "91888"]?20)
exten => _91NXXXXXXXXX,6,GotoIf($["${EXTEN:0:5}" = "91602"]?20)
exten => _91NXXXXXXXXX,7,GotoIf($["${EXTEN:0:5}" = "91623"]?20)
exten => _91NXXXXXXXXX,8,GotoIf($["${EXTEN:0:12}" = "914809910691"]?13)
exten => _91NXXXXXXXXX,9,GotoIf($["${EXTEN:0:12}" = "914809483431"]?13)
exten => _91NXXXXXXXXX,10,GotoIf($["${EXTEN:0:5}" = "91480"]?20)
exten => _91NXXXXXXXXX,11,GotoIf($["${EXTEN:0:5}" = "91520"]?20)
exten => _91NXXXXXXXXX,12,GotoIf($["${EXTEN:0:5}" = "91928"]?20)
;exten => _91NXXXXXXXXX,10,Dial(SIP/voipcon/${EXTEN:1},,tTor)
exten => _91NXXXXXXXXX,13,Dial(Dahdi/g0/${EXTEN:1},3600,To)
exten => _91NXXXXXXXXX,14,GotoIf($["${DIALSTATUS}" = "BUSY"]?22)
exten => _91NXXXXXXXXX,15,GotoIf($["${DIALSTATUS}" = "CHANUNAVAIL"]?1
exten => _91NXXXXXXXXX,16,GotoIf($["${DIALSTATUS}" = "CONGESTION"]?1
exten => _91NXXXXXXXXX,17,Goto(24)
exten => _91NXXXXXXXXX,18,Playtones(congestion)
exten => _91NXXXXXXXXX,19,Goto(23)
exten => _91NXXXXXXXXX,20,Dial(SIP/103387/${EXTEN:1},,tTor)
exten => _91NXXXXXXXXX,21,Goto(25)
exten => _91NXXXXXXXXX,22,Playtones(busy)
exten => _91NXXXXXXXXX,23,Wait(16)
exten => _91NXXXXXXXXX,24,Hangup

PostPosted: Wed Nov 16, 2011 9:34 pm
by renzo.caso
sorry I copy and paste wrong this one is the correct:

;exten => _91NXXXXXXXXX,1,Answer
exten => _91NXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91NXXXXXXXXX,2,GotoIf($["${EXTEN:0:5}" = "91800"]?20)
exten => _91NXXXXXXXXX,3,GotoIf($["${EXTEN:0:5}" = "91877"]?20)
exten => _91NXXXXXXXXX,4,GotoIf($["${EXTEN:0:5}" = "91866"]?20)
exten => _91NXXXXXXXXX,5,GotoIf($["${EXTEN:0:5}" = "91888"]?20)
exten => _91NXXXXXXXXX,6,GotoIf($["${EXTEN:0:5}" = "91602"]?20)
exten => _91NXXXXXXXXX,7,GotoIf($["${EXTEN:0:5}" = "91623"]?20)
exten => _91NXXXXXXXXX,8,GotoIf($["${EXTEN:0:12}" = "914809910691"]?13)
exten => _91NXXXXXXXXX,9,GotoIf($["${EXTEN:0:12}" = "914809483431"]?13)
exten => _91NXXXXXXXXX,10,GotoIf($["${EXTEN:0:5}" = "91480"]?20)
exten => _91NXXXXXXXXX,11,GotoIf($["${EXTEN:0:5}" = "91520"]?20)
exten => _91NXXXXXXXXX,12,GotoIf($["${EXTEN:0:5}" = "91928"]?20)
;exten => _91NXXXXXXXXX,10,Dial(SIP/voipcon/${EXTEN:1},,tTor)
exten => _91NXXXXXXXXX,13,Dial(Dahdi/g0/${EXTEN:1},3600,To)
exten => _91NXXXXXXXXX,14,GotoIf($["${DIALSTATUS}" = "BUSY"]?22)
exten => _91NXXXXXXXXX,15,GotoIf($["${DIALSTATUS}" = "CHANUNAVAIL"]?18 )
exten => _91NXXXXXXXXX,16,GotoIf($["${DIALSTATUS}" = "CONGESTION"]?18 )
exten => _91NXXXXXXXXX,17,Goto(24)
exten => _91NXXXXXXXXX,18,Playtones(congestion)
exten => _91NXXXXXXXXX,19,Goto(23)
exten => _91NXXXXXXXXX,20,Dial(SIP/103387/${EXTEN:1},,tTor)
exten => _91NXXXXXXXXX,21,Goto(25)
exten => _91NXXXXXXXXX,22,Playtones(busy)
exten => _91NXXXXXXXXX,23,Wait(16)
exten => _91NXXXXXXXXX,24,Hangup

PostPosted: Thu Nov 17, 2011 10:44 am
by renzo.caso
Thank you William for your help.

The problem was when we added "exten => _91NXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)" our agent started getting a double hangup.
let me explain. when the agents dial a number the dialer drop the call , then they try to dial again hangup again. always 2 times

PostPosted: Fri Mar 09, 2012 2:16 pm
by renzo.caso
the problem was database stress. is solved now
thank you for help