Res_pjsip. Turn Off The Authorization Request For An Incoming MESSAGE

Home » Asterisk Users » Res_pjsip. Turn Off The Authorization Request For An Incoming MESSAGE
Asterisk Users 1 Comment

Hello. Continuea months-longstrugglethat is associatedwith the transfer from chan_sip to res_pjsip. Where are many gates (GSM gate) that do not supportauthentication whensendingMESSAGE. For example, 4goip when relay incoming SMS. Using chan_sip it was not a problem. Using res_pjsip is the problem 🙁 Is any way to turn off the authorization request for an incoming MESSAGE using res_pjsip? Or any workaround? [2015-09-07
06:01:14] DEBUG[12947] pjsip: sip_endpoint.c Processing incoming message: Request msg MESSAGE/cseqT2 (rdata0x7f88642fdc28) [2015-09-07
06:01:14] VERBOSE[12947] res_pjsip_logger.c: <--- Received SIP request (447 bytes) from UDP:109.165.111.xx:5807 ---> MESSAGE
sip:smsin@85.142.148.xx SIP/2.0 Via: SIP/2.0/UDP
109.165.111.xx:5807;branch=z9hG4bK837973400 Route:
From:
;tag(4759743 To:
Call-ID: 76603xxxx@192.168.1.100 CSeq: 542
MESSAGE Contact: Max-Forwards:
30 User-Agent: dble Content-Type: text/plain Content-Length: 35 111 Ваш
баланс 68,08 rub. [2015-09-07 06:01:14] DEBUG[23059] pjsip:
sip_endpoint.c Distributing rdata to modules: Request msg MESSAGE/cseqT2 (rdata0x7f88640a9288) [2015-09-07 06:01:14]
DEBUG[23059] res_pjsip_endpoint_identifier_ip.c: No identify sections to match against [2015-09-07 06:01:14] DEBUG[23059]
res_pjsip_endpoint_identifier_user.c: Retrieved endpoint srv_9185880046
[2015-09-07 06:01:14] DEBUG[23059] pjsip: endpoint .Response msg
401/MESSAGE/cseqT2 (tdta0x7f88717063b0) created [2015-09-07 06:01:14]
VERBOSE[23059] res_pjsip_logger.c: <--- Transmitting SIP response (479 bytes) to UDP:109.165.111.xx:5807 ---> SIP/2.0 401 Unauthorized Via:
SIP/2.0/UDP
109.165.111.xx:5807;rportX07;received9.165.111.xx;branch=z9hG4bK837973400
Call-ID: 76603xxxx@192.168.1.100 From:
;tag(4759743 To:
;tag=z9hG4bK837973400 CSeq: 542 MESSAGE
WWW-Authenticate: Digest realm=”ruvoip.net”,nonce=”1441594874/5741fb37496404a4aa5cf0e53a129867″,opaque=”7441b8c64eddc67a”,algorithm=md5,qop=”auth”
Server: ruVoIP.net PBX Content-Length: 0 Dmitriy Serov.

One thought on - Res_pjsip. Turn Off The Authorization Request For An Incoming MESSAGE

  • Your endpoint, ‘ srv_9185880046’, most like has an auth object specified for it. If it did not, then the MESSAGE request would not be challenged. If you know that requests for that endpoint should not be authenticated, then you can remove the auth option from the endpoint and it should allow the request to proceed without a 401 challenge response.

    If you need to authenticate certain requests while allowing others through, then today, there is no way to accomplish that in the PJSIP
    stack. As an open source project, someone could certainly propose that functionality if they wanted.


    Matthew Jordan Digium, Inc. | Director of Technology
    445 Jan Davis Drive NW – Huntsville, AL 35806 – USA
    Check us out at: http://digium.com & http://asterisk.org