Project

General

Profile

Unable to log agent in - failed to authenticate on invite

Added by Jose Benavides almost 4 years ago

ISSUE:
Unable to get an agent registered correctly, getting "Failed to authenticate on INVITE" and "407 Proxy Authentication Required"

ENVIRONMENT:
GoAutoDial CE V4 - Installed from ISO

I'm including what I think are all config files involved, please let me know if you need anything else and I will provide.

When I try to log in an agent i get the following on the asterisk CLI.


vaglxc01*CLI>
  == Manager 'sendcron' logged on from 127.0.0.1
    -- Called 99991826677408@default
    -- Executing [99991826677408@default:1] Dial("Local/99991826677408@default-00000002;2", "SIP/1826677408@kamailio,,tTo") in new stack
  == Using SIP RTP CoS mark 5
    -- Called SIP/1826677408@kamailio
[Apr  1 16:22:33] NOTICE[1930][C-00000002]: chan_sip.c:23990 handle_response_invite: Failed to authenticate on INVITE to '"S2004011622338600051" <sip:5164536886@192.168.20.67:5070>;tag=as2f6fe890'
    -- SIP/kamailio-00000001 is circuit-busy
  == Everyone is busy/congested at this time (1:0/1/0)
    -- Executing [99991826677408@default:2] Hangup("Local/99991826677408@default-00000002;2", "") in new stack
  == Spawn extension (default, 99991826677408, 2) exited non-zero on 'Local/99991826677408@default-00000002;2'
    -- Executing [h@default:1] AGI("Local/99991826677408@default-00000002;2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----21-----CONGESTION---------------SIP 407 Proxy Authentication Required)") in new stack
    -- <Local/99991826677408@default-00000002;2>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----21-----CONGESTION---------------SIP 407 Proxy Authentication Required) completed, returning 0

The agent indeed logs in, but of course it will not get any calls because there its not in actually logged in, The following is the CLI when I log it out from the page:

    -- Called 55558600051@default
    -- Executing [55558600051@default:1] Hangup("Local/55558600051@default-00000003;2", "") in new stack
  == Spawn extension (default, 55558600051, 1) exited non-zero on 'Local/55558600051@default-00000003;2'
[Apr  1 16:23:15] WARNING[9592][C-00000003]: func_hangupcause.c:140 hangupcause_read: Unable to find information for channel
    -- Executing [h@default:1] AGI("Local/55558600051@default-00000003;2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16--------------------)") in new stack
    -- <Local/55558600051@default-00000003;2>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16--------------------) completed, returning 0
  == Manager 'sendcron' logged off from 127.0.0.1
  == Manager 'sendcron' logged on from 127.0.0.1

SIP SHOW PEERS

vaglxc01*CLI> sip show peers
Name/username             Host                                    Dyn Forcerport Comedia    ACL Port     Status      Description
39                        ITSP                               Yes        Yes            5060     OK (103 ms)
40                        ITSP                               Yes        Yes            5060     OK (131 ms)
kamailio                  192.168.20.67                               Yes        Yes            5060     OK (2 ms)
3 sip peers [Monitored: 3 online, 0 offline Unmonitored: 0 online, 0 offline]

kamctl ul show --brief

[root@vaglxc01 ~]# kamctl ul show --brief
database engine 'MYSQL' loaded
Control engine 'RPCFIFO' loaded
entering rpc_cmd ul.dump brief
{
  "jsonrpc":  "2.0",
  "result": {
    "Domain": "location",
    "Size": 1024,
    "AoRs": [{
        "AoR":  "1826677408" 
      }
  ],
    "Stats":  {
      "Records":  1,
      "Max-Slots":  1
    }
  },
  "id": 10670
}
FIFO command was:
{"jsonrpc": "2.0", "method": "ul.dump", "params": ["brief"], "reply_name": "kamailio_receiver_10670", "id": 10670}

/etc/asterisk/sip-goautodial.conf

[root@vaglxc01 ~]# cat /etc/asterisk/sip-goautodial.conf
[kamailio]
;encryption=yes ;uncomment for TLS encryption
disallow=all
allow=opus
allow=ulaw
type=friend
dtmfmode=rfc2833
context=default
qualify=yes
nat=force_rport,comedia
host=pf-dialer.crvoicecloud.com ;change me to my FQDN
insecure=port,invite

/etc/kamailio/kamailio.cfg

https://pastebin.com/LTL2eVxh

/var/www/html/php/goCRMAPISettings.php

<?php
define ('gourl', 'https://pf-dialer.crvoicecloud.com/goAPIv2');
define ('goUser', 'goAPI');
define ('responsetype', 'json');

?>

/etc/rtpengine/rtpengine.conf

[rtpengine]

table = 0
# no-fallback = false
### for userspace forwarding only:
# table = -1

### a single interface:
interface = 192.168.20.67
### separate multiple interfaces with semicolons:
###interface = internal/192.168.18.67;external/https://190.171.97.138
### for different advertised address:
# interface = 12.23.34.45!23.34.45.56

listen-ng = 127.0.0.1:5066
# listen-tcp = 25060
# listen-udp = 12222

timeout = 60
silent-timeout = 3600
tos = 184
#control-tos = 184
# delete-delay = 30
# final-timeout = 10800

# foreground = false
# pidfile = /var/run/ngcp-rtpengine-daemon.pid
# num-threads = 16

port-min = 30000
port-max = 50000
# max-sessions = 5000

# recording-dir = /var/spool/rtpengine
# recording-method = proc
# recording-format = raw

# redis = 127.0.0.1:6379/5
# redis-write = password@12.23.34.45:6379/42
# redis-num-threads = 8
# no-redis-required = false
# redis-expires = 86400
# redis-allowed-errors = -1
# redis-disable-time = 10
# redis-cmd-timeout = 0
# redis-connect-timeout = 1000

# b2b-url = http://127.0.0.1:8090/
# xmlrpc-format = 0

# log-level = 6
# log-stderr = false
# log-facility = daemon
# log-facility-cdr = local0
# log-facility-rtcp = local1

# graphite = 127.0.0.1:9006
# graphite-interval = 60
# graphite-prefix = foobar.

# homer = 192.168.18.67:65432
# homer-protocol = udp
# homer-id = 2001

# sip-source = false
# dtls-passive = false

#[rtpengine-testing]
#table = -1
#interface = 10.15.20.121
#listen-ng = 2223
#foreground = true
#log-stderr = true
#log-level = 7

#screen -list

There are screens on:
1818.ASTfastlog (Detached)
1809.ASTVDadapt (Detached)
1802.ASTVDremote (Detached)
1796.ASTVDauto (Detached)
1790.ASTlisten (Detached)
1783.ASTsend (Detached)
1780.ASTupdate (Detached)
1712.asterisk (Detached)
8 Sockets in /var/run/screen/S-root.


Replies (2)

RE: Unable to log agent in - failed to authenticate on invite - Added by Jackie Alfonso almost 4 years ago

Hi,

Upon checking on the details that you've provided. we've notice that you've already setup the domain without the SSL Certificate. please make sure that the dialer is working before you setup the domain and SSL Certificate.

Thank you!

RE: Unable to log agent in - failed to authenticate on invite - Added by Jose Benavides almost 4 years ago

Jackie Alfonso wrote:

Hi,

Upon checking on the details that you've provided. we've notice that you've already setup the domain without the SSL Certificate. please make sure that the dialer is working before you setup the domain and SSL Certificate.

Thank you!

Hello Jackie,

The domain name is just pointing to an internal IP address, no traffic or anything is going out of the LAN.

Do you think that could affect?

    (1-2/2)
    Go to top