Outbound calling not working

All installation and configuration problems and questions

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

Outbound calling not working

Postby shafqat » Tue Sep 26, 2006 2:39 pm

Hi,

I have configured VICIDIAL according to Scratch_Install document. I can loging to agc/astguiclient.php and agc/vicidial.php but i can't make calls manually from Vicidial.php, when i press dial llink nothing happens. There is no output on Asterisk CLI. screen -r output is

[root@trg-lhr-astsrv data]# screen -r
There are several suitable screens on:
2936.ASTupdate (Detached)
2922.ASTVDadapt (Detached)
632.ASTVDauto (Detached)
Type "screen [-d] -r [pid.]tty.host" to resume one of them.

when i receive call on softphone (SJPhone or Xten) i can see call in see incoming call on agc/astguiclient.php. While i am loged in at agc/vicidial.php i receive

"Noone is in your session: 8600051"

I have checked and found that only the following scripts are running

[root@trg-lhr-astsrv data]# ps -aux | grep AST
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.5/FAQ
root 2922 0.0 0.0 2488 996 ? Ss 11:18 0:00 /usr/bin/SCREEN -d -m -S ASTVDadapt /usr/share/astguiclient/
AST_VDadapt.pl --debug
root 2923 0.2 0.5 9576 5320 pts/6 Ss+ 11:18 0:12 /usr/bin/perl /usr/share/astguiclient/AST_VDadapt.pl --debug
root 2936 0.0 0.0 2488 996 ? Ss 11:18 0:00 /usr/bin/SCREEN -d -m -S ASTupdate /usr/share/astguiclient/A
ST_update.pl
root 2937 0.8 0.6 11108 6880 pts/8 Ss+ 11:18 0:40 /usr/bin/perl /usr/share/astguiclient/AST_update.pl
root 2766 0.0 0.1 3752 1448 ? SN 12:33 0:00 /usr/bin/perl /home/cron/ADMIN_keepalive_AST_send_listen.pl
root 2770 0.0 0.1 3752 1448 ? SN 12:33 0:00 /usr/bin/perl /home/cron/ADMIN_keepalive_AST_send_listen.pl

Please help to resolve this issue.

Regard,

Shamid
shafqat
 
Posts: 8
Joined: Tue Sep 26, 2006 2:29 pm

Postby mflorell » Tue Sep 26, 2006 8:57 pm

you have several screen processes that are not running. Check that your manager.conf file is set up properly.
mflorell
Site Admin
 
Posts: 18384
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Outbound calling not working

Postby shafqat » Wed Sep 27, 2006 9:00 am

Hi,

Thanks for your reply. Please find below configuration for manager.conf

[cron]
secret = 1234
read = system,call,log,verbose,command,agent,user
write = system,call,log,verbose,command,agent,user

[updatecron]
secret = 1234
read = command
write = command

[listencron]
secret = 1234
read = system,call,log,verbose,command,agent,user
write = command

[sendcron]
secret = 1234
read = command
write = system,call,log,verbose,command,agent,user

When i check who is connected to through manager API i found the following information

trg-lhr-astsrv*CLI> show manager connected
Username IP Address
updatecron 127.0.0.1

i tried to attach screen manually but found the following error

[root@trg-lhr-astsrv ~]# screen -r ASTVDauto

loop counter: |5759992|
TIME DEBUG: 5.00|5.00|0| GMT: 01:54
2006-09-27 06:54:26|LIVE AGENTS LOGGED IN: 0|
2006-09-27 06:54:26| : agents: 1 dial_level: 0|
2006-09-27 06:54:26| : Calls to place: 0 (0 - 0) |
2006-09-27 06:54:26|CAMPAIGN DIFFERENTIAL: 0 0 (0 - 0)|
2006-09-27 06:54:26| : CALLING|
TIME DEBUG: 5.00|5.00|0| GMT: 01:54
2006-09-27 06:54:26|| lagged call vla agent PAUSED 0E0|20060927065356|20060927065416|20060927065426||
2006-09-27 06:54:26|| lagged call vac agent DELETED 0E0|2006-09-27 06:52:26||

loop counter: |5759991|
TIME DEBUG: 5.00|5.00|0| GMT: 01:54
2006-09-27 06:54:29|LIVE AGENTS LOGGED IN: 0|
2006-09-27 06:54:29| : agents: 1 dial_level: 0|
2006-09-27 06:54:29| : Calls to place: 0 (0 - 0) |
2006-09-27 06:54:29|CAMPAIGN DIFFERENTIAL: 0 0 (0 - 0)|
2006-09-27 06:54:29| : CALLING|
TIME DEBUG: 5.00|5.00|0| GMT: 01:54
2006-09-27 06:54:29|| lagged call vla agent PAUSED 0E0|20060927065359|20060927065419|20060927065429||
2006-09-27 06:54:29|| lagged call vac agent DELETED 0E0|2006-09-27 06:52:29||

loop counter: |5759990|
2006-09-27 06:54:29|| lagged call vac agent DELETED 0E0|2006-09-27 06:44:29|LIVE||
006-09-27 06:54:29|| updating server parameters 20|8365|5.00|default||
TIME DEBUG: 5.00|5.00|0| GMT: 01:54

PROCESS KILLED NO LISTENER RUNNING... EXITING

checking to see if listener is dead |0|
DONE... Exiting... Goodbye... See you later... Not really, initiating next loop...
2006-09-27 06:54:31|HANGING UP||
2006-09-27 06:54:31|CLOSING DB CONNECTION||
DONE... Exiting... Goodbye... See you later... Really I mean it this time

Please let me know if you require any further information. Really appreciating your help

Regards,

Shamid
shafqat
 
Posts: 8
Joined: Tue Sep 26, 2006 2:29 pm

Postby mflorell » Wed Sep 27, 2006 9:16 am

your listen process is not running.

Have you checked you mail on this server to check for errors being reported?
mflorell
Site Admin
 
Posts: 18384
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Outbound calling not working

Postby shafqat » Wed Sep 27, 2006 10:51 am

How can i make it running. I have check all the posts and didn't find any solution. I will be really thankful if you can send me series of test to verify that everything required is working properly. I can't dial to local extension through agc/astguiclient.php.

Shamid
shafqat
 
Posts: 8
Joined: Tue Sep 26, 2006 2:29 pm

Outbound calling not working

Postby shafqat » Wed Sep 27, 2006 12:39 pm

Hi,

Here is an other problem which i am facing while running

[root@trg-lhr-astsrv ~]# /home/cron/AST_update.pl --debug
LOOKING FOR Zap clients assigned to this server:
|SELECT extension FROM phones where protocol = 'Zap' and server_ip='10.10.10.15'|
LOOKING FOR IAX2 clients assigned to this server:
|SELECT extension FROM phones where protocol = 'IAX2' and server_ip='10.10.10.15'|
LOOKING FOR SIP clients assigned to this server:
|SELECT extension FROM phones where protocol = 'SIP' and server_ip='10.10.10.15'|
Zap Clients: |
IAX2 Clients: |
SIP Clients: |
unknown remote host: at /home/cron/AST_update.pl line 275

My server ip is not which is appearing in this query. I have only one server in the database with IP 197.7.75.199 and i am not sure from where its getting this error. Please advise to correct this problem.

Shamid
shafqat
 
Posts: 8
Joined: Tue Sep 26, 2006 2:29 pm

Postby mflorell » Wed Sep 27, 2006 4:56 pm

looks like you didn't configure your astguiclient.conf file or your servers table properly.
mflorell
Site Admin
 
Posts: 18384
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Outbound calling not working

Postby shafqat » Thu Sep 28, 2006 7:16 am

Hi,

Please find below the configuration of astguiclient.conf

PATHhome => /usr/share/astguiclient
PATHlogs => /var/log/astguiclient
PATHagi => /var/lib/asterisk/agi-bin
PATHweb => /usr/local/apache2/htdocs
PATHsounds => /var/lib/asterisk/sounds
PATHmonitor => /data/monitor

VARserver_ip => 197.7.75.199
VARDB_server => localhost
VARDB_database => asterisk
VARDB_user => cron
VARDB_pass => 1234
VARDB_port => 3306

DIAL LEVEL: 1 FILTER: NONE TIME: 2006-09-28 05:09:15
DIALABLE LEADS: 2 CALLS TODAY: 0 AVG AGENTS: 1 DIAL METHOD: RATIO
HOPPER LEVEL: 1 CALLS DROPPED: 0 DL DIFF: 1 STATUSES: NEW, , , ,
LEADS IN HOPPER: 1 DROPPED PERCENT: 0% DIFF: 100.00% ORDER: DOWN
+ VIEW MORE SETTINGS

1 calls being placed 1 calls ringing 0 calls waiting for agents
1 agents logged in 0 agents in calls 1 agents waiting 0 paused agents
VICIDIAL: Agents Time On Calls Campaign: test 2006-09-28 05:09:15

+------------|--------+-----------+--------+-----------------+-----------------+---------+------------+
| STATION | USER | SESSIONID | STATUS | SERVER IP | CALL SERVER IP | MM:SS | CAMPAIGN |
+------------|--------+-----------+--------+-----------------+-----------------+---------+------------+
| SIP/9501 | 9501 | 8600051 | PAUSED | 197.7.75.199 | | 1:46 | TEST |
+------------|--------+-----------+--------+-----------------+-----------------+---------+------------+
1 agents logged in on all servers
System Load Average: 0.20

I can see that VICIDial dialing number but there is no. ring on soft phone i have tried both SJPhone and Xten. There is no output on Asterisk CLI.

Shamid
shafqat
 
Posts: 8
Joined: Tue Sep 26, 2006 2:29 pm

Outbound calling not working

Postby shafqat » Thu Sep 28, 2006 7:35 am

Sorry forgot to post my server table output

---------------------+-----------------------+-------------+--------------+----------------+------------+
| server_id | server_description | server_ip | active | asterisk_version | max_vicidial_trunks | telnet_host
| telnet_port | ASTmgrUSERNAME | ASTmgrSECRET | ASTmgrUSERNAMEupdate | ASTmgrUSERNAMElisten | ASTmgrUSERNAMEsend | local_gmt
| voicemail_dump_exten | answer_transfer_agent | ext_context | sys_perf_log | vd_server_logs | agi_output |
+-----------+---------------------------------+--------------+--------+------------------+---------------------+-------------
+-------------+----------------+--------------+----------------------+----------------------+--------------------+-----------
+----------------------+-----------------------+-------------+--------------+----------------+------------+
| Asterisk | Test install of Asterisk server | 197.7.75.199 | Y | 1.2.12 | 20 | localhost
| 5038 | cron | 1234 | updatecron | listencron | sendcron | 5.00
| 85026666666666 | 8365 | default | Y | Y | FILE |

I have resolved the previouse issue by manualing entering IP into the AST_update.pl.

root@trg-lhr-astsrv ~]# /home/cron/AST_update.pl --debug
LOOKING FOR Zap clients assigned to this server:
|SELECT extension FROM phones where protocol = 'Zap' and server_ip='10.10.10.15'|
LOOKING FOR IAX2 clients assigned to this server:
|SELECT extension FROM phones where protocol = 'IAX2' and server_ip='10.10.10.15'|
LOOKING FOR SIP clients assigned to this server:
|SELECT extension FROM phones where protocol = 'SIP' and server_ip='10.10.10.15'|
Zap Clients: |
IAX2 Clients: |
SIP Clients: |
unknown remote host: at /home/cron/AST_update.pl line 275



shamid
shafqat
 
Posts: 8
Joined: Tue Sep 26, 2006 2:29 pm


Return to Support

Who is online

Users browsing this forum: Majestic-12 [Bot] and 111 guests