Agent Login Dials EXT then hangs up

For subjects not covered elsewhere

Agent Login Dials EXT then hangs up

Postby scrizo » Thu Sep 10, 2015 3:22 pm

When I login to the agent website it dials my extension and as soon as I answer it the phone hangs up.

[2015-09-10 14:20:53] PRI Span: 2 > Message Type: CONNECT ACKNOWLEDGE (15)
[2015-09-10 14:20:53] > Channel DAHDI/i2/9116-564 was answered
[2015-09-10 14:20:53] == Manager 'sendcron' logged off from 127.0.0.1
[2015-09-10 14:20:53] -- Executing [28601000@osdial:1] AGI("DAHDI/i2/9116-56 4", "agi-OSDagent_conf.agi,agentmon")
[2015-09-10 14:20:53] > Launched AGI Script /var/lib/asterisk/agi-bin/agi -OSDagent_conf.agi
[2015-09-10 14:20:53] agi-OSDagent_conf.agi,agentmon: Failed to execute '/var/l ib/asterisk/agi-bin/agi-OSDagent_conf.agi': Permission denied
[2015-09-10 14:20:53] -- Executing [28601000@osdial:2] Hangup("DAHDI/i2/9116 -564", "")
[2015-09-10 14:20:53] == Spawn extension (osdial, 28601000, 2) exited non-zero on 'DAHDI/i2/9116-564'
[2015-09-10 14:20:53] -- Executing [h@osdial:1] AGI("DAHDI/i2/9116-564", "ag i://127.0.0.1:4577/call_log--HVcauses-- ... ----------")
[2015-09-10 14:20:53] > <DAHDI/i2/9116-564>AGI Script agi://127.0.0.1:457 7/call_log--HVcauses--PRI-----NODEBUG-----16--------------- completed, returning 0
Last edited by scrizo on Mon Sep 14, 2015 1:22 pm, edited 1 time in total.
scrizo
 
Posts: 11
Joined: Fri Jun 12, 2015 1:26 pm

Re: Dials but hangsup

Postby scrizo » Thu Sep 10, 2015 3:24 pm

stat -c '%U %G %A %a %n' /var/lib/asterisk/agi-bin/agi-OSDagent_conf.agi
asterisk asterisk -rwxrwxrwx 777 /var/lib/asterisk/agi-bin/agi-OSDagent_conf.agi
scrizo
 
Posts: 11
Joined: Fri Jun 12, 2015 1:26 pm

Re: Dials but hangsup

Postby fadmin » Thu Sep 10, 2015 11:08 pm

To give you what is apparently your own answer:

I would do a chmod 0755 /var/run. That seemed to do the trick for me.
Forum Administrator
OSDial
http://osdial.com
fadmin
Site Admin
 
Posts: 283
Joined: Fri Feb 12, 2010 7:27 am

Re: Dials but hangsup

Postby scrizo » Mon Sep 14, 2015 1:10 pm

-- Executing [28601000@osdial:1] AGI("DAHDI/i2/9116-11b1", "agi-OSDagent_conf.agi,agentmon")
[2015-09-14 12:08:55] > Launched AGI Script /var/lib/asterisk/agi-bin/agi-OSDagent_conf.agi
[2015-09-14 12:08:55] agi-OSDagent_conf.agi,agentmon: Failed to execute '/var/lib/asterisk/agi-bin/agi-OSDagent_conf.agi': Permission denied
[2015-09-14 12:08:55] -- Executing [28601000@osdial:2] Hangup("DAHDI/i2/9116-11b1", "")
[2015-09-14 12:08:55] == Spawn extension (osdial, 28601000, 2) exited non-zero on 'DAHDI/i2/9116-11b1'


stat -c '%U %G %A %a %n' /var/run/
root root drwxr-xr-x 755 /var/run/

stat -c '%U %G %A %a %n' /var/lib/asterisk/agi-bin/agi-OSDagent_conf.agi
asterisk asterisk -rwxrwxrwx 777 /var/lib/asterisk/agi-bin/agi-OSDagent_conf.agi
scrizo
 
Posts: 11
Joined: Fri Jun 12, 2015 1:26 pm

Re: Agent Login Dials EXT then hangs up

Postby scrizo » Fri Sep 25, 2015 4:05 pm

[2015-09-25 14:53:33] == Manager 'sendcron' logged on from 127.0.0.1
[2015-09-25 14:53:33] == Using SIP RTP TOS bits 184
[2015-09-25 14:53:33] == Using SIP RTP CoS mark 5
[2015-09-25 14:53:35] > 0x7fd888016dd0 -- Probation passed - setting RTP source address to 10.1.10.25:8000
[2015-09-25 14:53:35] > Channel SIP/1000-0000019a was answered
[2015-09-25 14:53:35] == Manager 'sendcron' logged off from 127.0.0.1
[2015-09-25 14:53:35] -- Executing [28601000@osdial:1] AGI("SIP/1000-0000019a", "agi-OSDagent_conf.agi,agentmon")
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_request: agi-OSDagent_conf.agi
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_channel: SIP/1000-0000019a
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_language: en
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_type: SIP
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_uniqueid: 1443210813.37891
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_version: 11.13.0-53
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_callerid: 0000000000
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_calleridname: OSDial#SIP/1000
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_callingpres: 0
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_callingani2: 0
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_callington: 0
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_callingtns: 0
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_dnid: unknown
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_rdnis: unknown
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_context: osdial
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_extension: 28601000
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_priority: 1
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_enhanced: 0.0
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_accountcode: ACagcW14432108101000
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_threadid: 140570022196992
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_arg_1: agentmon
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >>
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Rx << verbose "Failed to execute '/var/lib/asterisk/agi-bin/agi-OSDagent_conf.agi': Permission denied" 1
[2015-09-25 14:53:35] agi-OSDagent_conf.agi,agentmon: Failed to execute '/var/lib/asterisk/agi-bin/agi-OSDagent_conf.agi': Permission denied
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> 200 result=1
[2015-09-25 14:53:35] -- Executing [28601000@osdial:2] Hangup("SIP/1000-0000019a", "")
[2015-09-25 14:53:35] == Spawn extension (osdial, 28601000, 2) exited non-zero on 'SIP/1000-0000019a'
[2015-09-25 14:53:35] -- Executing [h@osdial:1] AGI("SIP/1000-0000019a", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16---------------")
[2015-09-25 14:53:35] AGI Tx >> agi_network: yes
[2015-09-25 14:53:35] AGI Tx >> agi_network_script: call_log--HVcauses--PRI-----NODEBUG-----16---------------
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_request: agi://127.0.0.1:4577/call_log--HVcauses ... ----------
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_channel: SIP/1000-0000019a
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_language: en
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_type: SIP
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_uniqueid: 1443210813.37891
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_version: 11.13.0-53
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_callerid: 0000000000
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_calleridname: OSDial#SIP/1000
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_callingpres: 0
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_callingani2: 0
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_callington: 0
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_callingtns: 0
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_dnid: unknown
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_rdnis: unknown
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_context: osdial
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_extension: h
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_priority: 1
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_enhanced: 0.0
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_accountcode: ACagcW14432108101000
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> agi_threadid: 140570022196992
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >>
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Rx << GET VARIABLE CDR(linkedid)
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> 200 result=1 (1443210813.37891)
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Rx << GET VARIABLE carrierid
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> 200 result=0
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Rx << GET VARIABLE CDR(linkedid)
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> 200 result=1 (1443210813.37891)
[2015-09-25 14:53:35] <SIP/1000-0000019a>AGI Tx >> HANGUP


root 13279 5170 0 14:57 pts/9 00:00:00 grep asterisk
root 23143 1 0 Jun25 ? 00:00:00 /bin/sh /usr/sbin/safe_asterisk
root 23144 23143 1 Jun25 ? 23:46:14 /usr/sbin/asterisk -f

ls -lattr /var/lib/asterisk/agi-bin/agi-OSDagent_conf.agi
-rwxrwxrwx 1 asterisk asterisk 2676 Oct 11 2014 /var/lib/asterisk/agi-bin/agi-OSDagent_conf.agi

could this be an issue that asterisk is running as root and the scripts are ran as asterisk

;runuser = asterisk ; The user to run as.
;rungroup = asterisk ; The group to run as.

that's commented out inside asterisk.conf

show version
Asterisk 11.13.0-53 built by mockbuild @ rhel6-dev.l.caskeyhome.com on a x86_64 running Linux on 2014-10-03 12:59:38 UTC

rrsi-o1*CLI> core show settings

PBX Core settings
-----------------
Version: 11.13.0-53
Build Options: LOADABLE_MODULES, BUSYDETECT_TONEONLY
Maximum calls: Not set
Maximum open file handles: Not set
Root console verbosity: 0
Current console verbosity: 5
Debug level: 9
Maximum load average: 0.000000
Minimum free memory: 0 MB
Startup time: 16:54:47
Last reload time: 16:54:47
System: Linux/2.6.32-431.23.3.el6.x86_64 built by mockbuild on x86_64 2014-10-03 12:59:38 UTC
System name:
Entity ID: 20:47:47:7c:aa:4a
Default language: en
Language prefix: Enabled
User name and group: /
Executable includes: Disabled
Transcode via SLIN: Disabled
Transmit silence during rec: Disabled
Generic PLC: Disabled
Min DTMF duration:: 80

* Subsystems
-------------
Manager (AMI): Enabled
Web Manager (AMI/HTTP): Disabled
Call data records: Enabled
Realtime Architecture (ARA): Enabled

* Directories
-------------
Configuration file:
Configuration directory: /etc/asterisk
Module directory: /usr/lib64/asterisk/modules
Spool directory: /var/spool/asterisk
Log directory: /var/log/asterisk
Run/Sockets directory: /var/run/asterisk
PID file: /var/run/asterisk/asterisk.pid
VarLib directory: /var/lib/asterisk
Data directory: /var/lib/asterisk
ASTDB: /var/lib/asterisk/astdb
IAX2 Keys directory: /var/lib/asterisk/keys
AGI Scripts directory: /var/lib/asterisk/agi-bin
Var directory: /var/lib/asterisk
Monitor directory: /var/spool/asterisk/monitor
Key directory: /var/lib/asterisk/keys
Sounds directory: /mnt/ramdisk/sounds


is it normal for User / Group to be blank...

I login to my SIP phone using Zoiper, I go to my agent login on the web portal I put my information in and it'll ring my zoiper extension I pickup and as fast as I pickup is as fast as it hangs up.
scrizo
 
Posts: 11
Joined: Fri Jun 12, 2015 1:26 pm


Return to General

Who is online

Users browsing this forum: MrGammix, onesmence and 1 guest

cron