[asterisk-users] PJSIP OPTIONS
Joshua Colp
jcolp at digium.com
Sun Dec 3 08:45:57 CST 2017
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
More information about the asterisk-users
mailing list