Answer the question
In order to leave comments, you need to log in
Why might a 404 error occur when working with Asterisk?
All exhausted already. I can't find the reason for the error. In general, this error occurs when sending a message. But I think the problem is somewhere deeper. Here are the logs:
Name/username Host Dyn Forcerport Comedia ACL Port Status Description
1000/4a8e8psj 127.0.0.1 D Yes Yes 52023 OK (172 ms)
1001/4r14auqo 127.0.0.1 D Yes Yes 52022 OK (41 ms)
2 sip peers [Monitored: 2 online, 0 offline Unmonitored: 0 online, 0 offline]
Really destroying SIP dialog 's7v7r6t65icvhdn5isg3sm' Method: REGISTER
<--- SIP read from WS:127.0.0.1:52023 --->
MESSAGE sip:[email protected] SIP/2.0
Via: SIP/2.0/WS 2dq9hpuhph5o.invalid;branch=z9hG4bK6162690
Max-Forwards: 69
To: sip:[email protected]
From: "alice" sip:[email protected];tag=nkg1etm1ec
Call-ID: 59tu38la47khegqqca9g CSeq
: 3830 MESSAGE
Content-Type: text/plain
Allow: INVITE,ACK,CANCEL,BYE,UPDATE ,MESSAGE,OPTIONS,REFER,INFO
Supported: outbound
User-Agent: JsSIP 3.0.7
Content-Length: 6
hi bob
<------------->
--- (12 headers 1 lines) ---
Receiving message!
Looking for 1001 in messages (domain 127.0.0.1)
<--- Transmitting (no NAT) to 127.0.0.1:5060 --->
SIP/2.0 404 Not Found
Via: SIP/2.0/WS 2dq9hpuhph5o.invalid;branch=z9hG4bK6162690;received=127.0.0.1
From: "alice" sip:[email protected];tag=nkg1etm1ec
To: sip:[email protected] 0.1;tag=as005ae3d2
Call-ID: 59tu38la47khegqqca9g CSeq
: 3830 MESSAGE
Server: Asterisk PBX 13.15.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content -Length: 0
UPD: It's all about the mask in the extensions.conf file. See comments on 1st answer)
Answer the question
In order to leave comments, you need to log in
I've already seen something similar... add permission to messages in the configuration file and in dialplan you need to file the context for messages.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question