[asterisk-users] PJSIP OPTIONS

volga629 at networklab.ca volga629 at networklab.ca
Sun Dec 3 08:55:54 CST 2017


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 <jcolp at digium.com> wrote:
> On Sun, Dec 3, 2017, at 10:42 AM, volga629 at networklab.ca 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:vprx00 at 10.30.100.41>;tag=392222e512215177543fc3584bac4ab8-64cb
>>  CSeq: 10 OPTIONS
>>  Call-ID: 66bf010933a080fe-17271 at 10.30.100.41
>>  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:vprx00 at 10.30.100.41>'
>>  failed for '10.30.100.41:5060' (callid:
>>  66bf010933a080fe-17271 at 10.30.100.41) - 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
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20171203/6098f683/attachment.html>


More information about the asterisk-users mailing list