Page 1 of 1

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

PostPosted: Tue Jan 30, 2007 12:39 pm
by omar
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:

PostPosted: Tue Jan 30, 2007 9:23 pm
by kornshell
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.

database, asterisk, and web servers are in one machine

PostPosted: Wed Jan 31, 2007 12:47 pm
by omar
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?

PostPosted: Wed Jan 31, 2007 5:13 pm
by mflorell
Do you see a Hangup entry in vicidial_manager table at the time you logout?

PostPosted: Wed Jan 31, 2007 9:03 pm
by omar
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

PostPosted: Wed Jan 31, 2007 9:26 pm
by mflorell
Asterisk version?

astGUIclient version?

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

screen -r output

PostPosted: Thu Feb 01, 2007 2:03 pm
by omar
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.

PostPosted: Thu Feb 01, 2007 10:25 pm
by mflorell
Post output of "show channels concise" from the Asterisk CLI

Asterisk CLI output

PostPosted: Fri Feb 02, 2007 11:01 am
by omar
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>


PostPosted: Sat Feb 03, 2007 5:37 pm
by mflorell
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?

SOLVED

PostPosted: Mon Feb 05, 2007 12:59 pm
by omar
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

PostPosted: Thu Jul 02, 2009 11:41 pm
by joylovebasu
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 ?

PostPosted: Fri Jul 03, 2009 7:33 am
by mflorell
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?