Closed nttranbao closed 4 years ago
Sample trace:
INVITE urn:services:sos SIP/2.0
Via: SIP/2.0/UDP 10.120.27.28:5060;branch=z9hG4bK8c0ahq10e808fo334ci0.1
Max-Forwards: 20
From: "a" <sip:+14166666666@external.peer-esinet.net>;tag=0vacXUt8gje5B
To: <sip:911@emergency.domain.ca>
Call-ID: 251ddd57-0431-1239-95bf-005056a9f3f7
CSeq: 19498951 INVITE
Contact: <sip:+14166666666@10.120.27.28:5060;transport=udp>
User-Agent: FreeSWITCH-mod_sofia/1.10.2-release~64bit
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 200
X-FS-Support: update_display,send_info
Route: <sip:esrp.ng911.ca:5060;lr>
Call-Info: <urn:emergency:callid:20200428162447100251ddd5704311:bcf.ng911.ca;purpose=emergency-CallId,<urn:emergency:incidentid:202004281624471008c0ahq10e808fo334ci0:bcf.ng911.ca;purpose=emergency-IncidentId
Resource-Priority: esnet.1
v=0
o=- 17842207 1588080530 IN IP4 10.120.27.28
s=-
c=IN IP4 10.120.27.28
t=0 0
m=audio 10544 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
----------------- OpenSIPS responds---------
SIP/2.0 500 Internal Error
Via: SIP/2.0/UDP 10.120.27.28:5060;branch=z9hG4bK8c0ahq10e808fo334ci0.1
From: "a" <sip:+14166666666@external.peer-esinet.net>;tag=0vacXUt8gje5B
To: <sip:911@emergency.domain.ca>;tag=28de.be6f1789b3f76324323c0838ff10e804
Call-ID: 251ddd57-0431-1239-95bf-005056a9f3f7
CSeq: 19498951 INVITE
Server: OpenSIPS (3.0.2 (x86_64/linux))
Content-Length: 0
Never mind. I was able to trace the source code, and after reading parser_uri.h, i found the typo in my INVITE.
The right urn should be "
Thanks, Bao
#define URN_SERVICE_SCH 0x3a6e7275
#define URN_SERVICE_STR ":service:"
OpenSIPS version you are running
Describe the bug
OpenSIPS rejects with 503, on INVITE with request URI of
To Reproduce
Expected behavior
OpenSIPS will proceed with internal processing, and route the INVITE to next hop Relevant System Logs
Provided aboved OS/environment information
Additional context
I found some links that said there was a fix long ago (I verified the downloaded 3.0.2 source code contained the fix lines), but apparently it doesn't
Thanks a bunch, Best regards, Bao