[opengate1]
type = aor
contact = sip:ユーザ名@
okj.sip.0038.netqualify_frequency = 30
authenticate_qualify = no
[opengate1]
type = identify
endpoint = opengate1
match =
okj.sip.0038.net[opengate1]
type = auth
username = ユーザ名
password = パスワード
[opengate1]
type = registration
transport = transport-udp
outbound_auth = opengate1
server_uri = sip:
okj.sip.0038.netclient_uri = sip:ユーザ名@
okj.sip.0038.netretry_interval = 60
[opengate1]
type = endpoint
context = from-opengate
dtmf_mode = inband
disallow = all
allow = ulaw
direct_media = no
send_pai = yes
inband_progress = yes
from_user = ユーザ名
from_domain =
okj.sip.0038.netlanguage = ja
auth = opengate1
outbound_auth = opengate1
aors = opengate1
起動すると下記のエラーが表示されます。
[Jun 23 19:51:44] WARNING[646619]: res_pjsip_outbound_registration.c:1397 handle_registration_response: Fatal response '401' received from 'sip:
okj.sip.0038.net' on registration attempt to '
sip:5830...@okj.sip.0038.net', stopping outbound registration
着信はできています。
発信時はbusyになり通話できません。
下記はログになります。
ip-172-31-43-152*CLI> pjsip send register opengate1
<--- Transmitting SIP request (453 bytes) to UDP:
61.213.230.145:5060 --->
REGISTER sip:
okj.sip.0038.net SIP/2.0
Via: SIP/2.0/UDP 172.31.43.152:5060;rport;branch=z9hG4bKPj2eba647d-b398-4709-97ca-edcde0b042ca
From: <
sip:5830...@okj.sip.0038.net>;tag=910efe1c-2a0d-42c8-b778-be717d43d466
To: <
sip:5830...@okj.sip.0038.net>
Call-ID: 9d30d97b-7e6b-432d-9fd1-facf4cd33fea
CSeq: 40458 REGISTER
Contact: <
sip:s...@172.31.43.152:5060>
Expires: 0
Max-Forwards: 70
User-Agent: Asteriski/20.7(172.31.43.152)
Content-Length: 0
<--- Received SIP response (428 bytes) from UDP:
61.213.230.145:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 172.31.43.152:5060;rport;branch=z9hG4bKPj2eba647d-b398-4709-97ca-edcde0b042ca
From: <
sip:5830...@okj.sip.0038.net>;tag=910efe1c-2a0d-42c8-b778-be717d43d466
To: <
sip:5830...@okj.sip.0038.net>;tag=as7ae3d8b7
Call-ID: 9d30d97b-7e6b-432d-9fd1-facf4cd33fea
CSeq: 40458 REGISTER
WWW-Authenticate: Digest algorithm=MD5, realm="
okj.sip.0038.net", nonce="1677156c"
Content-Length: 0
<--- Transmitting SIP request (628 bytes) to UDP:
61.213.230.145:5060 --->
REGISTER sip:
okj.sip.0038.net SIP/2.0
Via: SIP/2.0/UDP 172.31.43.152:5060;rport;branch=z9hG4bKPjbc7a07e4-c8c6-470e-80f1-82cf2aa51bb5
From: <
sip:5830...@okj.sip.0038.net>;tag=910efe1c-2a0d-42c8-b778-be717d43d466
To: <
sip:5830...@okj.sip.0038.net>
Call-ID: 9d30d97b-7e6b-432d-9fd1-facf4cd33fea
CSeq: 40459 REGISTER
Contact: <
sip:s...@172.31.43.152:5060>
Expires: 0
Max-Forwards: 70
User-Agent: Asteriski/20.7(172.31.43.152)
Authorization: Digest username="58307939", realm="
okj.sip.0038.net", nonce="1677156c", uri="sip:
okj.sip.0038.net", response="3e172f2d42ce256b8d22ced7254a976c", algorithm=MD5
Content-Length: 0
<--- Received SIP response (440 bytes) from UDP:
61.213.230.145:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 172.31.43.152:5060;rport;branch=z9hG4bKPjbc7a07e4-c8c6-470e-80f1-82cf2aa51bb5
From: <
sip:5830...@okj.sip.0038.net>;tag=910efe1c-2a0d-42c8-b778-be717d43d466
To: <
sip:5830...@okj.sip.0038.net>;tag=as51400edc
Call-ID: 9d30d97b-7e6b-432d-9fd1-facf4cd33fea
CSeq: 40459 REGISTER
WWW-Authenticate: Digest algorithm=MD5, realm="
okj.sip.0038.net", nonce="3623a15d", stale=true
Content-Length: 0
[Jun 23 20:57:51] WARNING[647498]: res_pjsip_outbound_registration.c:1061 schedule_retry: Temporal response '401' received from 'sip:
okj.sip.0038.net' on registration attempt to '
sip:5830...@okj.sip.0038.net', retrying in '60'
<--- Transmitting SIP request (455 bytes) to UDP:
61.213.230.145:5060 --->
OPTIONS
sip:5830...@okj.sip.0038.net SIP/2.0
Via: SIP/2.0/UDP 172.31.43.152:5060;rport;branch=z9hG4bKPj32169841-6b5c-4e53-b72b-070915367187
From: <
sip:5830...@okj.sip.0038.net>;tag=e084855d-34fc-4179-92d2-715ee5b32055
To: <
sip:5830...@okj.sip.0038.net>
Contact: <
sip:5830...@172.31.43.152:5060>
Call-ID: ef4da9d8-d5e3-43e0-b0b9-eb602c4ae024
CSeq: 20415 OPTIONS
Max-Forwards: 70
User-Agent: Asteriski/20.7(172.31.43.152)
Content-Length: 0
<--- Received SIP response (318 bytes) from UDP:
61.213.230.145:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 172.31.43.152:5060;rport;branch=z9hG4bKPj32169841-6b5c-4e53-b72b-070915367187
To: <
sip:5830...@okj.sip.0038.net>
From: <
sip:5830...@okj.sip.0038.net>;tag=e084855d-34fc-4179-92d2-715ee5b32055
Call-ID: ef4da9d8-d5e3-43e0-b0b9-eb602c4ae024
CSeq: 20415 OPTIONS
Content-length: 0
ip-172-31-43-152*CLI> pjsip show registrations
<Registration/ServerURI..............................> <Auth....................> <Status.......>
==========================================================================================
opengate1/sip:
okj.sip.0038.net opengate1 Registered (exp. 3505s)