The softphone doesn't hangup when an agent logouts----SOLVED

All installation and configuration problems and questions

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

The softphone doesn't hangup when an agent logouts----SOLVED

Postby omar » Tue Jan 30, 2007 12:39 pm

Hi,
In the Vicidial agent screen when an agent logouts. Why doesn't the softphone hangup :?: . The softphone still has an open channel with information like S0701301324158600051 in its screen
:shock:
Last edited by omar on Mon Feb 05, 2007 1:00 pm, edited 1 time in total.
omar
 
Posts: 77
Joined: Wed Dec 13, 2006 2:05 pm

Postby kornshell » Tue Jan 30, 2007 9:23 pm

That happened to me before as well. There must be a timing difference between your database server, Web Server and Asterisk box(es). Please check if the time is syncronized between the servers.
kornshell
 
Posts: 3
Joined: Mon Jul 03, 2006 12:36 pm

database, asterisk, and web servers are in one machine

Postby omar » Wed Jan 31, 2007 12:47 pm

kornshell wrote:That happened to me before as well. There must be a timing difference between your database server, Web Server and Asterisk box(es). Please check if the time is syncronized between the servers.


But my database server, web server and asterisk server are all in one machine (like in the scratch_install).
Or maybe each service has its own clock?
omar
 
Posts: 77
Joined: Wed Dec 13, 2006 2:05 pm

Postby mflorell » Wed Jan 31, 2007 5:13 pm

Do you see a Hangup entry in vicidial_manager table at the time you logout?
mflorell
Site Admin
 
Posts: 18406
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby omar » Wed Jan 31, 2007 9:03 pm

mflorell wrote:Do you see a Hangup entry in vicidial_manager table at the time you logout?


This is what I have in the vicidial_manager table

1. FIRST: When no one is logged, the table is empty
2. SECOND: When some agent login, the table has:
Code: Select all
mysql> select * from vicidial_manager;
+--------+--------------------+---------------------+---------+----------+-------------+------------------------+-----------+----------------------+------------------------+------------------+----------------+-------------+--------------------------------+------------+------------+------------+------------+------------+
| man_id | uniqueid           | entry_date          | status  | response | server_ip   | channel                | action    | callerid             | cmd_line_b             | cmd_line_c       | cmd_line_d     | cmd_line_e  | cmd_line_f                     | cmd_line_g | cmd_line_h | cmd_line_i | cmd_line_j | cmd_line_k |
+--------+--------------------+---------------------+---------+----------+-------------+------------------------+-----------+----------------------+------------------------+------------------+----------------+-------------+--------------------------------+------------+------------+------------+------------+------------+
|    402 | 1170294640.0000000 | 2007-01-31 21:50:40 | UPDATED | N        | 192.168.2.5 | SIP/agt00-lpz-09917b68 | Originate | S0701312150408600051 | Channel: SIP/agt00-lpz | Context: default | Exten: 8600051 | Priority: 1 | Callerid: S0701312150408600051 |            |            |            |            |            |
+--------+--------------------+---------------------+---------+----------+-------------+------------------------+-----------+----------------------+------------------------+------------------+----------------+-------------+--------------------------------+------------+------------+------------+------------+------------+
1 row in set (0.00 sec)


3. THIRD: When the agent logouts, the table has:
Code: Select all
mysql>  select * from vicidial_manager;
+--------+--------------------+---------------------+---------+----------+-------------+------------------------+-----------+----------------------+------------------------+------------------+----------------+-------------+--------------------------------+------------+------------+------------+------------+------------+
| man_id | uniqueid           | entry_date          | status  | response | server_ip   | channel                | action    | callerid             | cmd_line_b             | cmd_line_c       | cmd_line_d     | cmd_line_e  | cmd_line_f                     | cmd_line_g | cmd_line_h | cmd_line_i | cmd_line_j | cmd_line_k |
+--------+--------------------+---------------------+---------+----------+-------------+------------------------+-----------+----------------------+------------------------+------------------+----------------+-------------+--------------------------------+------------+------------+------------+------------+------------+
|    402 | 1170294640.0000000 | 2007-01-31 21:50:40 | UPDATED | N        | 192.168.2.5 | SIP/agt00-lpz-09917b68 | Originate | S0701312150408600051 | Channel: SIP/agt00-lpz | Context: default | Exten: 8600051 | Priority: 1 | Callerid: S0701312150408600051 |            |            |            |            |            |
|    403 |          0.0000000 | 2007-01-31 21:57:23 | SENT    | N        | 192.168.2.5 |                        | Hangup    | RH1234591170295043   | Channel:               |                  |                |             |                                |            |            |            |            |            |
+--------+--------------------+---------------------+---------+----------+-------------+------------------------+-----------+----------------------+------------------------+------------------+----------------+-------------+--------------------------------+------------+------------+------------+------------+------------+
2 rows in set (0.00 sec)


Where there is a HANGUP value in the ACTION COLUMN and the softphone doesn't hangup
omar
 
Posts: 77
Joined: Wed Dec 13, 2006 2:05 pm

Postby mflorell » Wed Jan 31, 2007 9:26 pm

Asterisk version?

astGUIclient version?

Can you post the output of "screen -r" when this happens?
mflorell
Site Admin
 
Posts: 18406
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

screen -r output

Postby omar » Thu Feb 01, 2007 2:03 pm

mflorell wrote:Asterisk version?

astGUIclient version?

Can you post the output of "screen -r" when this happens?


Asterisk version 1.2.14
astGUIclient version 2.0.2

This is the screen -r output when the agent logouts
Code: Select all
There are several suitable screens on:
        3446.ASTfastlog (Dead ???)
        3444.ASTVDadapt (Dead ???)
        3469.ASTVDremote        (Detached)
        4345.ASTsend    (Dead ???)
        3472.ASTVDadapt (Detached)
        3414.asterisk   (Detached)
        3457.ASTupdate  (Detached)
        3463.ASTlisten  (Detached)
        4351.ASTVDauto  (Dead ???)
        3486.asterisk   (Dead ???)
        3420.asterisk   (Dead ???)
        4354.ASTVDremote        (Dead ???)
        3477.ASTlisten  (Dead ???)
        4348.ASTlisten  (Dead ???)
        4342.ASTupdate  (Dead ???)
        3485.ASTfastlog (Dead ???)
        3475.ASTfastlog (Detached)
        4289.ASTfastlog (Dead ???)
        3423.asterisk   (Dead ???)
        3466.ASTVDauto  (Detached)
        3460.ASTsend    (Detached)
        3481.ASTVDremote        (Dead ???)
        4277.ASTlisten  (Dead ???)
Remove dead screens with 'screen -wipe'.
Type "screen [-d] -r [pid.]tty.host" to resume one of them.
omar
 
Posts: 77
Joined: Wed Dec 13, 2006 2:05 pm

Postby mflorell » Thu Feb 01, 2007 10:25 pm

Post output of "show channels concise" from the Asterisk CLI
mflorell
Site Admin
 
Posts: 18406
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Asterisk CLI output

Postby omar » Fri Feb 02, 2007 11:01 am

mflorell wrote:Post output of "show channels concise" from the Asterisk CLI


When an agent click on the logout link, this what I have in the Asterisk CLI

Code: Select all
localhost*CLI>
  == Parsing '/etc/asterisk/manager.conf': Found
  == Manager 'sendcron' logged on from 127.0.0.1
  == Manager 'sendcron' logged off from 127.0.0.1
localhost*CLI> show channels concise
Zap/pseudo-307317722!unused!s!1!Rsrvd!(None)!!!!3!!(None)
SIP/agt00-lpz-09605298!default!8600051!1!Up!MeetMe!8600051!!!3!15!(None)
localhost*CLI>

omar
 
Posts: 77
Joined: Wed Dec 13, 2006 2:05 pm

Postby mflorell » Sat Feb 03, 2007 5:37 pm

Is there a reason you have a dash '-' in the sip device name?

Not sure what exactly the problem could be, what is the extension and protocol of this phone's phone table entry?
mflorell
Site Admin
 
Posts: 18406
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

SOLVED

Postby omar » Mon Feb 05, 2007 12:59 pm

mflorell wrote:Is there a reason you have a dash '-' in the sip device name?

Not sure what exactly the problem could be, what is the extension and protocol of this phone's phone table entry?


Good tip
The problem was in the sip.conf. I was using:
Code: Select all
[inside]
type=friend
host=dynamic
canreinvite=no
dtmfmode=auto
qualify=1000
callgroup=1
pickupgroup=1
nat=yes

[agt00-lpz](inside)
context=agents
username=agt00-lpz
secret=somepassword
callerid=300 <300>


Now I am using:
Code: Select all
[inside]
disallow=all
allow=ulaw
type=friend
host=dynamic
dtmfmode=inband
qualify=1000

[ag300](internos)
username=ag300
secret=somepassword
context=agents
mailbox=300


And now when some agent click on the logout botton, the softphone hangup

Thank you very match mflorell
omar
 
Posts: 77
Joined: Wed Dec 13, 2006 2:05 pm

Postby joylovebasu » Thu Jul 02, 2009 11:41 pm

Even I am facing the same Problem :


vicidialnow*CLI> show channels concise
Zap/pseudo-1297312731:default:s:1:Rsrvd:(None)::::3::(None)
SIP/cc101-08d22200:default:8600051:1:Up:MeetMe:8600051|F:::3:122:(None)
Jul 3 00:40:01 WARNING[4333]: file.c:592 ast_readaudio_callback: Failed to write frame
-- Playing 'conf-kicked' (language 'en')
-- Hungup 'Zap/pseudo-1297312731'
-- Executing DeadAGI("SIP/cc101-08d22200", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16---------------") in new stack
-- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
== Manager 'sendcron' logged off from 127.0.0.1
== Manager 'sendcron' logged off from 127.0.0.1

Can you help me ?
------------------------------
VERSION: 2.0.5-173
BUILD: 90320-0424
joylovebasu
 
Posts: 127
Joined: Tue Jun 09, 2009 11:13 am

Postby mflorell » Fri Jul 03, 2009 7:33 am

That's nice. how about you post ALL of the answers to ALL of the questions that we asked in this thread so we can actually help you?
mflorell
Site Admin
 
Posts: 18406
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida


Return to Support

Who is online

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