If understand correctly type=identify is more for sip trunk configuration ?

;[mytrunk]
;type=identify
;endpoint=mytrunk
;match=198.51.100.1
;match=198.51.100.2


In chan_sip it was just reply 200 OK on keepalive packet without need define trunks.


volga629


On Sun, 3 Dec, 2017 at 10:45 AM, Joshua Colp <[email protected]> wrote:
On Sun, Dec 3, 2017, at 10:42 AM, [email protected] wrote:
 Right now it reply 401 Unauthorized with message in log "No matching
 endpoint ..."
 on Content 0 should reply 200 OK I guess

<--- Received SIP request (376 bytes) from UDP:10.30.100.41:5060 --->
 OPTIONS sip:10.30.100.27:5080 SIP/2.0
 Via: SIP/2.0/UDP
 10.30.100.41;branch=z9hG4bKf5eb.1ac76487000000000000000000000000.0
 To: <sip:10.30.100.27:5080>
  From:
 <sip:[email protected]>;tag=392222e512215177543fc3584bac4ab8-64cb
 CSeq: 10 OPTIONS
 Call-ID: [email protected]
 Max-Forwards: 70
 Content-Length: 0
 User-Agent: kamailio (5.0.4 (x86_64/linux))


 [Dec 3 09:40:38] NOTICE[3511]: res_pjsip/pjsip_distributor.c:659
log_failed_request: Request 'OPTIONS' from '<sip:[email protected]>'
 failed for '10.30.100.41:5060' (callid:
 [email protected]) - No matching endpoint found

You would need to add an endpoint for it and have it match, using a
"type=identify" section matching on IP address would work. You would
also need an "s" extension in the context since the OPTIONS request has
not extension provided.

--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to