[asterisk-users] PJSIP error No auth credentials for realm(s) 'asterisk' in challenge

Administrator TOOTAI admin at tootai.net
Mon Apr 16 09:47:56 CDT 2018

Hi all,

we are trying to move our servers from chan_sip to chan_pjsip. At this 
time no problems with phones, they all register fine and can place 
calls. But for a trunk we face problem and can't place calls despite the 
fact that registration is OK. What we get is:

[2018-04-16 16:08:33] WARNING[18665]: 
digest_create_request_with_auth_from_old: Endpoint: 'sip.xxx.tld': 
Unable to create request with auth. No auth credentials for realm(s) 
'asterisk' in challenge.

Our setup:

type = registration
retry_interval = 20
max_retries = 0
contact_user = <contactUser>
expiration = 3600
transport = transport-udp
outbound_auth = sip.xxx.tld
client_uri = sip:<contactUser>@sip.xxx.tld
server_uri = sip:sip.xxx.tld

type = auth
password = <password>
username = <contactUser>

type = identify
endpoint = sip.xxx.tld
match = <sip.xxx.tld IP address>

type = endpoint
context = from-xxx.tld
aors = sip.xxx.tld
deny =
permit = <sip.xxx.tld IP address #1>/32
permit = <sip.xxx.tld IP address #2>/32
dtmf_mode = rfc4733
disallow = all
allow = alaw,ulaw,g729

type = aor
contact = sip:<sip.xxx.tld IP address>:5060

zone-s*CLI> pjsip list registrations

<Auth..........>  <Status.......>

  sip.xxx.tld/sip:sip.xxx.tld sip.xxx.tld Registered

Objects found: 1

PJSIP is listening on port 12345, chan_sip on port 5060. The peer end is 
a Kamailio 3.3.4 if it matter.

What could be the problem? Does anyone have a PJSIP asterisk registered 
against Kamailio?

Thanks for any hints


More information about the asterisk-users mailing list