delay with PAP2

All installation and configuration problems and questions

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

delay with PAP2

Postby noworldorder » Fri Mar 30, 2012 6:29 pm

For the longest time I was getting an audio delay of about 500 milliseconds. Finally I solved that by using a PAP2. But now I have a different problem....

There is about 1 1/2 sec delay from the time the customer picks up on their end and they are connected to an agent. So the customer hears dea air and often hangs up...

Again this happened with I started using a PAP2.

Thanks
http://www.scrubmydata.com Your First Scrub is FREE
Vicibox 4.0 | VERSION: 2.6-375a BUILD: 120831-1523
Realtek RTL8111/8168B PCI Dual Core 2 GB Ram
no other software read the manual
GRATEFUL FOR VICIDIAL!
noworldorder
 
Posts: 391
Joined: Sat Mar 06, 2010 3:56 pm

Postby fibres » Sat Mar 31, 2012 2:36 pm

That is certainly strange as the phone device should not make any difference to how long it takes for calls to come through.

Have you by any change enabled answering machine detection around the same time? This would case a few seconds delay when prospect answers phone while the system tries to detect if it is a real person or not.

Regards
Vicibox 4.0.3 ISO install.
VERSION: 2.6-393a
BUILD: 130124-1721
Astersik 1.4.44-vici
No Hardware
No other software installed
fibres
 
Posts: 313
Joined: Sun May 20, 2007 3:12 pm
Location: UK

Postby noworldorder » Sat Mar 31, 2012 3:47 pm

thanks fibres

no I have made no changes at all. If I use a softphone that delay is not present (although there is an audio delay that is not present with the PAP2)
http://www.scrubmydata.com Your First Scrub is FREE
Vicibox 4.0 | VERSION: 2.6-375a BUILD: 120831-1523
Realtek RTL8111/8168B PCI Dual Core 2 GB Ram
no other software read the manual
GRATEFUL FOR VICIDIAL!
noworldorder
 
Posts: 391
Joined: Sat Mar 06, 2010 3:56 pm

Postby noworldorder » Mon Apr 02, 2012 7:10 pm

I am baffled by this (but then again I don't know Linux, Asterisk, Perl... so not a surprise)

I am assuming this has nothing to do with the PAP2 settings as it already has a call has a call established with the server. Thus the delay must be coming from within Vicidial. Can anyone give me a hint as to hint as to how to trouble shoot this.

thanks
http://www.scrubmydata.com Your First Scrub is FREE
Vicibox 4.0 | VERSION: 2.6-375a BUILD: 120831-1523
Realtek RTL8111/8168B PCI Dual Core 2 GB Ram
no other software read the manual
GRATEFUL FOR VICIDIAL!
noworldorder
 
Posts: 391
Joined: Sat Mar 06, 2010 3:56 pm

Postby noworldorder » Tue Apr 03, 2012 1:02 am

UPDATE:

Sorry, I was wrong before, the hold delay is present with the softphone and the PAP2 also. I never used to have this issue and when I went to the PAP2 it began (probably a coincidence??)

Anyway, (to recap) the hold delay is 1 1/2 seconds before the customer who has picked up is heard by the agent; in other words there is 1 1/2 seconds of dead air heard by the customer (Yikes!)

Help - thanks
http://www.scrubmydata.com Your First Scrub is FREE
Vicibox 4.0 | VERSION: 2.6-375a BUILD: 120831-1523
Realtek RTL8111/8168B PCI Dual Core 2 GB Ram
no other software read the manual
GRATEFUL FOR VICIDIAL!
noworldorder
 
Posts: 391
Joined: Sat Mar 06, 2010 3:56 pm

Postby noworldorder » Fri Apr 06, 2012 9:01 pm

Anyone? Please???

Strange thing is this delay was present when I first got the PAP2 but it has increased significantly.

Another strange thing is it is present in 3 out of 4 of my carriers. 1 carrier has no delay (but I cannot use it as it has very low CPM)

So it is not an issue of band width, or processing speed (as it occurs with a single call).

I upgraded my server and it made no change. Should I just make a fresh install? (Not my first choice unless restoring campaigns etc is not too tricky)
http://www.scrubmydata.com Your First Scrub is FREE
Vicibox 4.0 | VERSION: 2.6-375a BUILD: 120831-1523
Realtek RTL8111/8168B PCI Dual Core 2 GB Ram
no other software read the manual
GRATEFUL FOR VICIDIAL!
noworldorder
 
Posts: 391
Joined: Sat Mar 06, 2010 3:56 pm

Postby rrb555 » Sat Apr 07, 2012 12:07 am

I upgraded my server and it made no change. Should I just make a fresh install? (Not my first choice unless restoring campaigns etc is not too tricky)


re-installing is not tricky it is easy as 1, 2, 3

i have done this a lot of times.

cheers +_+
One server that I am managing | Single Server | ViciBox Redux 6.0 | VERSION: 2.12-549a | BUILD: 160404-0940 | revision 2508| No other hardware
For help you can send me a direct email info@support.com.ph
rrb555
 
Posts: 585
Joined: Tue Feb 08, 2011 4:24 pm
Location: Quezon City, Philippines

Postby noworldorder » Sat Apr 07, 2012 2:56 am

so if I want to re-install and restore everything as it was I do the following (can you kindly tell me where I am wrong or missing information :) )

1. back everything up I do this: /usr/share/astguiclient/ADMIN_backup.pl --debugX

2. put the back up files on another computer (but I don't know where they are...)

3. I assume I can re-install the current version given that I did an upgrade (yes?)

4. put the files back (I have no idea where they should go...)

5. \. /usr/src/astguiclient/trunk/extras/upgrade_2.4.sql
quit

6. cd /usr/src/astguiclient/trunk
perl ./install.pl

7. go to the Admin -> Servers -> Modify Server
page and set each one to "Rebuild conf files = Y" and click submit.

Thanks
http://www.scrubmydata.com Your First Scrub is FREE
Vicibox 4.0 | VERSION: 2.6-375a BUILD: 120831-1523
Realtek RTL8111/8168B PCI Dual Core 2 GB Ram
no other software read the manual
GRATEFUL FOR VICIDIAL!
noworldorder
 
Posts: 391
Joined: Sat Mar 06, 2010 3:56 pm

Postby rrb555 » Sat Apr 07, 2012 3:12 am

so if I want to re-install and restore everything as it was I do the following (can you kindly tell me where I am wrong or missing information )


sure! i love to help 8)

i have a different way in backing up my database. I am using mysqldump to backup asterisk database and restore (all of campaigns, phones, carriers, list, etc). and this always works like a charm. :D
One server that I am managing | Single Server | ViciBox Redux 6.0 | VERSION: 2.12-549a | BUILD: 160404-0940 | revision 2508| No other hardware
For help you can send me a direct email info@support.com.ph
rrb555
 
Posts: 585
Joined: Tue Feb 08, 2011 4:24 pm
Location: Quezon City, Philippines

Postby noworldorder » Sat Apr 07, 2012 3:19 am

sure! i love to help


I appreciate that!

Can you outline some steps for me to take?

Thanks
http://www.scrubmydata.com Your First Scrub is FREE
Vicibox 4.0 | VERSION: 2.6-375a BUILD: 120831-1523
Realtek RTL8111/8168B PCI Dual Core 2 GB Ram
no other software read the manual
GRATEFUL FOR VICIDIAL!
noworldorder
 
Posts: 391
Joined: Sat Mar 06, 2010 3:56 pm

Postby rrb555 » Sat Apr 07, 2012 3:19 am

2. put the back up files on another computer (but I don't know where they are...)


/var/log/astguiclient/archive

you may want to try both restore techniques using mysqldump and the one you know. since it doesn't hurt having two options right?
One server that I am managing | Single Server | ViciBox Redux 6.0 | VERSION: 2.12-549a | BUILD: 160404-0940 | revision 2508| No other hardware
For help you can send me a direct email info@support.com.ph
rrb555
 
Posts: 585
Joined: Tue Feb 08, 2011 4:24 pm
Location: Quezon City, Philippines

Postby noworldorder » Sat Apr 07, 2012 3:24 am

so I grab the backup from /var/log/astguiclient/archive


and then after making a fresh install return them to /var/log/astguiclient/archive


Yes?
http://www.scrubmydata.com Your First Scrub is FREE
Vicibox 4.0 | VERSION: 2.6-375a BUILD: 120831-1523
Realtek RTL8111/8168B PCI Dual Core 2 GB Ram
no other software read the manual
GRATEFUL FOR VICIDIAL!
noworldorder
 
Posts: 391
Joined: Sat Mar 06, 2010 3:56 pm

Postby rrb555 » Sat Apr 07, 2012 3:26 am

Here's what I do

Backup

Code: Select all
1. cd /home
2. mysqldump -u [uname] -p[pass] asterisk | gzip -9 > [backupfile.sql.gz]
Note: file will be save to the current folder you are on which now /home


remove backup from /home

Restore
put your backup to /home

Code: Select all
3. cd /home
4. gunzip < [backupfile.sql.gz] | mysql -u [uname] -p[pass] asterisk
One server that I am managing | Single Server | ViciBox Redux 6.0 | VERSION: 2.12-549a | BUILD: 160404-0940 | revision 2508| No other hardware
For help you can send me a direct email info@support.com.ph
rrb555
 
Posts: 585
Joined: Tue Feb 08, 2011 4:24 pm
Location: Quezon City, Philippines

Postby noworldorder » Sat Apr 07, 2012 1:06 pm

in this bit:

-u [uname] -p[pass]

is the 'uname' and 'pass' the uname and pass for the server?

Do I keep the [brackets]?

I am getting this error:


mysqldump: Got error: 1045: Access denied for user 'root'@'localhost' (using password: YES) when trying to connect


Remember... I am a linux/mysql/computer noobie.

Thanks
http://www.scrubmydata.com Your First Scrub is FREE
Vicibox 4.0 | VERSION: 2.6-375a BUILD: 120831-1523
Realtek RTL8111/8168B PCI Dual Core 2 GB Ram
no other software read the manual
GRATEFUL FOR VICIDIAL!
noworldorder
 
Posts: 391
Joined: Sat Mar 06, 2010 3:56 pm

Postby rrb555 » Sat Apr 07, 2012 5:55 pm

sample

if your mysql username is "root" and password is "rootpassword"

Code: Select all
mysqldump -u root -prootpassword asterisk | gzip -9 > backupfileapril7.sql.gz


if you only have username and no password

Code: Select all
mysqldump -u root asterisk | gzip -9 > backupfileapril7.sql.gz
One server that I am managing | Single Server | ViciBox Redux 6.0 | VERSION: 2.12-549a | BUILD: 160404-0940 | revision 2508| No other hardware
For help you can send me a direct email info@support.com.ph
rrb555
 
Posts: 585
Joined: Tue Feb 08, 2011 4:24 pm
Location: Quezon City, Philippines

Postby noworldorder » Sat Apr 07, 2012 9:45 pm

I did this:


mysqldump -u cron -p1234 asterisk | gzip -9 > backupfile.sql.gz


and nothing appeared in my home directory... wondervwhat I am doing wrong.

Question. Does this really backup everything? campaigns, lists, users, etc? And do I really just have to do this: "mysqldump -u [uname] -p[pass] asterisk | gzip -9 > [backupfile.sql.gz]
Note: file will be save to the current folder you are on which now /home" to restore everything?

Thanks
http://www.scrubmydata.com Your First Scrub is FREE
Vicibox 4.0 | VERSION: 2.6-375a BUILD: 120831-1523
Realtek RTL8111/8168B PCI Dual Core 2 GB Ram
no other software read the manual
GRATEFUL FOR VICIDIAL!
noworldorder
 
Posts: 391
Joined: Sat Mar 06, 2010 3:56 pm

Postby rrb555 » Sat Apr 07, 2012 9:54 pm

and nothing appeared in my home directory... wondervwhat I am doing wrong.


have you double check?

use this
Code: Select all
ls


see if there will be a file named backupfile.sql.gz

or try doing this to enter mysql

Code: Select all
mysql


if u have successfully entered mysql it means u do not have any password for root

then use this instead

Code: Select all
mysqldump -u root asterisk | gzip -9 > backupfile.sql.gz
One server that I am managing | Single Server | ViciBox Redux 6.0 | VERSION: 2.12-549a | BUILD: 160404-0940 | revision 2508| No other hardware
For help you can send me a direct email info@support.com.ph
rrb555
 
Posts: 585
Joined: Tue Feb 08, 2011 4:24 pm
Location: Quezon City, Philippines

Postby noworldorder » Sun Apr 08, 2012 1:16 pm

thanks! Turns out there was no password. The backup file is 32.6 MB and I moved it to my laptop.

So now (thanks to your help) that this is done can you tell me:

Does this really backup everything? campaigns, lists, users, etc? And do I really just have to do this: "mysqldump -u [uname] -p[pass] asterisk | gzip -9 > [backupfile.sql.gz]
http://www.scrubmydata.com Your First Scrub is FREE
Vicibox 4.0 | VERSION: 2.6-375a BUILD: 120831-1523
Realtek RTL8111/8168B PCI Dual Core 2 GB Ram
no other software read the manual
GRATEFUL FOR VICIDIAL!
noworldorder
 
Posts: 391
Joined: Sat Mar 06, 2010 3:56 pm

Postby noworldorder » Mon Apr 09, 2012 2:18 pm

Anyone?

I have successfully backed up via mysql dump but before I do a new install of Vicidial I need to know:


Does this really backup everything? campaigns, lists, users, etc? And do I really just have to do this: "mysqldump -u [uname] -p[pass] asterisk | gzip -9 > [backupfile.sql.gz]


Thanks
http://www.scrubmydata.com Your First Scrub is FREE
Vicibox 4.0 | VERSION: 2.6-375a BUILD: 120831-1523
Realtek RTL8111/8168B PCI Dual Core 2 GB Ram
no other software read the manual
GRATEFUL FOR VICIDIAL!
noworldorder
 
Posts: 391
Joined: Sat Mar 06, 2010 3:56 pm

Postby fibres » Tue Apr 10, 2012 6:31 am

Hi

Yes if you have a backup of the asterisk databse then you have everything.

Unless you have made any customisations to any scripts which as a noobie I am guessing you have not.

Regards
Vicibox 4.0.3 ISO install.
VERSION: 2.6-393a
BUILD: 130124-1721
Astersik 1.4.44-vici
No Hardware
No other software installed
fibres
 
Posts: 313
Joined: Sun May 20, 2007 3:12 pm
Location: UK

Postby noworldorder » Tue Apr 10, 2012 12:00 pm

thanks fibres but if I have the backup obtained via the script that matt offers then I need to know where to put everything back - and I have no clue about that.

rrb555 suggested the mysql dump, which I did, and I am wondering if the restore of that will put everything exacly back where it should be.
http://www.scrubmydata.com Your First Scrub is FREE
Vicibox 4.0 | VERSION: 2.6-375a BUILD: 120831-1523
Realtek RTL8111/8168B PCI Dual Core 2 GB Ram
no other software read the manual
GRATEFUL FOR VICIDIAL!
noworldorder
 
Posts: 391
Joined: Sat Mar 06, 2010 3:56 pm

Postby rrb555 » Tue Apr 10, 2012 12:40 pm

yes it will put everything back, campaigns, phones, users,carriers,etc..

please note that it will not backup the recordings. you should move it to your archive server
One server that I am managing | Single Server | ViciBox Redux 6.0 | VERSION: 2.12-549a | BUILD: 160404-0940 | revision 2508| No other hardware
For help you can send me a direct email info@support.com.ph
rrb555
 
Posts: 585
Joined: Tue Feb 08, 2011 4:24 pm
Location: Quezon City, Philippines

Re: delay with PAP2

Postby noworldorder » Tue Apr 17, 2012 7:29 pm

is this the syntax for restoring if I have no user and pass:

gunzip < [backupfile.sql.gz] | mysql asterisk
http://www.scrubmydata.com Your First Scrub is FREE
Vicibox 4.0 | VERSION: 2.6-375a BUILD: 120831-1523
Realtek RTL8111/8168B PCI Dual Core 2 GB Ram
no other software read the manual
GRATEFUL FOR VICIDIAL!
noworldorder
 
Posts: 391
Joined: Sat Mar 06, 2010 3:56 pm

Re: delay with PAP2

Postby rrb555 » Wed Apr 18, 2012 10:26 am

use this

Code: Select all
gunzip < backupfile.sql.gz | mysql -u root asterisk


you always want to enter mysql as root even though u do not have username and password
One server that I am managing | Single Server | ViciBox Redux 6.0 | VERSION: 2.12-549a | BUILD: 160404-0940 | revision 2508| No other hardware
For help you can send me a direct email info@support.com.ph
rrb555
 
Posts: 585
Joined: Tue Feb 08, 2011 4:24 pm
Location: Quezon City, Philippines


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 122 guests