Page 1 of 1

Reclassifying congestion as disconnected

PostPosted: Wed Dec 02, 2009 10:34 am
by kwatson
Hi, our carrier passes any invalid number back as congestion which isnt ideal for dialling.....


Is it possible via a macro to reclassify all congested calls as DC?

there is a script from correcting the hangup cause here (http://www.voip-info.org/wiki/view/Aste ... angupcause)

Which variables should I alter to get vicidial to disposition the call as a DC rather than just timing out as a NA?


Thanks

Kenny

PostPosted: Wed Dec 02, 2009 10:57 am
by Michael_N
ask this a asterisk forum.. like forums.digium.com

PostPosted: Wed Dec 02, 2009 11:08 am
by kwatson
Hi, I have got the script working just unsure exaclty what vicidial is wanting to see for a DC.

I have tried setting the PRI_CAUSE/HANGUP/RC but vici just picks it up as a NA.

Just looking for a little help

Thanks
Kenny

PostPosted: Wed Dec 02, 2009 2:05 pm
by gardo
Putting a dial status on your dialplan might help. Something like:

exten => _1NXXNXXXXXX,1,Dial(${Trunk}/${EXTEN},30,o)
exten => _1NXXNXXXXXX,n,Goto(s-${DIALSTATUS},1)

exten => s-CONGESTION,1,Congestion
exten => s-CONGESTION,2,Hangup

I'm just not sure what kind of STATUS Asterisk needs to send to Vici in order for it to be tagged as DC.

PostPosted: Wed Dec 02, 2009 11:26 pm
by mflorell
For ViciDial you would need to alter the FastAGI_log script to have it classify these calls differently. The problem is that real network congestion happens as well, meaning that the call can come back as CONGESTION and then 5 minutes later you could make the same call without issues.

PostPosted: Thu Dec 03, 2009 4:58 am
by kwatson
Hi,

Thank you all for your responses

ok will look at the fastAGI for this as I will retry the DC's I would just like to split out the real ring outs from the bad numbers.

I believe that being able to retry real NA far more than the bad numbers out weights the negative of real congestion being lumped in as a bad number. And from a analysis a DC would only be a real DC after say 3 separate attempts.


Thanks
Kenny
Kenny