Thanks Daniel for your support. Maybe my choice of language could have been better. By "dial in directly", I meant preforming a SIP INVITE without first registering with the Kamailio service (SJ-Phone speak). I am dialling in remotely via NAT and my call is being relayed successfully. I checked the address table but it's empty.
(I've modified the logging level in Kamailio.cfg and it's taken effect so I'm am working on the correct configuration file) -----Original Message----- From: sr-users [mailto:[email protected]] On Behalf Of Daniel Tryba Sent: Friday, January 19, 2018 1:56 PM To: Kamailio (SER) - Users Mailing List <[email protected]> Subject: Re: [SR-Users] sip invite proxy-authorization On Fri, Jan 19, 2018 at 11:59:52AM -0000, Dave & Hazel wrote: > MYSQL is enabled and the subscriber table is populated but I can dial > in directly without being prompted for authentication. The clue may > well be in the kamailio.cfg I've inherited. This is a near default config, the AUTH route should work. There is a authentication IP whitelist in the address table, are you sending the INVITE from a whitelisted adress? But "dial in directly" means that you can call a local extension? If so, that is allowed explicitly: # if caller is not local subscriber, then check if it calls # a local destination, otherwise deny, not an open relay here _______________________________________________ Kamailio (SER) - Users Mailing List [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
INVITE sip:[email protected] SIP/2.0 Via: SIP/2.0/UDP 192.168.174.128;branch=z9hG4bKc0a8ae80000001035a620d3000002f6900000041;rport From: "Dave" <sip:192.168.174.128>;tag=a0c120d24b To: <sip:[email protected]> Contact: <sip:192.168.174.128> Call-ID: E640FDD0EF1D4AFC80051C7686D5722E0xc0a8ae80 CSeq: 1 INVITE Max-Forwards: 70 User-Agent: SJphone/1.65.377a (SJ Labs) Content-Length: 374 Content-Type: application/sdp Supported: replaces,norefersub,timer v=0 o=- 3725364144 3725364144 IN IP4 192.168.174.128 s=SJphone c=IN IP4 192.168.174.128 t=0 0 m=audio 49156 RTP/AVP 3 97 98 8 0 101 c=IN IP4 192.168.174.128 a=rtpmap:3 GSM/8000 a=rtpmap:97 iLBC/8000 a=rtpmap:98 iLBC/8000 a=fmtp:98 mode=20 a=rtpmap:8 PCMA/8000 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=setup:active a=sendrecv SIP/2.0 100 trying -- your call is important to us Via: SIP/2.0/UDP 192.168.174.128;branch=z9hG4bKc0a8ae80000001035a620d3000002f6900000041;rport=61859;received=82.141.233.72 From: "Dave" <sip:192.168.174.128>;tag=a0c120d24b To: <sip:[email protected]> Call-ID: E640FDD0EF1D4AFC80051C7686D5722E0xc0a8ae80 CSeq: 1 INVITE Server: kamailio (4.3.5 (x86_64/linux)) Content-Length: 0 SIP/2.0 180 Ringing Via: SIP/2.0/UDP 192.168.174.128;received=82.141.233.72;branch=z9hG4bKc0a8ae80000001035a620d3000002f6900000041;rport=61859 To: <sip:[email protected]>;tag=389 From: "Dave" <sip:192.168.174.128>;tag=a0c120d24b Contact: <sip:[email protected]> Call-ID: E640FDD0EF1D4AFC80051C7686D5722E0xc0a8ae80 CSeq: 1 INVITE Max-Forwards: 70 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, INFO User-Agent: Andromeda Record-Route: <sip:178.62.5.243;lr;ftag=a0c120d24b;nat=yes> Content-Length: 0 SIP/2.0 200 OK Via: SIP/2.0/UDP 192.168.174.128;received=82.141.233.72;branch=z9hG4bKc0a8ae80000001035a620d3000002f6900000041;rport=61859 To: <sip:[email protected]>;tag=389 From: "Dave" <sip:192.168.174.128>;tag=a0c120d24b Contact: <sip:[email protected]> Call-ID: E640FDD0EF1D4AFC80051C7686D5722E0xc0a8ae80 CSeq: 1 INVITE Max-Forwards: 70 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, INFO User-Agent: Andromeda Record-Route: <sip:178.62.5.243;lr;ftag=a0c120d24b;nat=yes> Content-Type: application/sdp Content-Length: 233 v=0 o=- 1516375540 1516375540 IN IP4 212.147.139.200 s=andromeda (rx) brd:3 chn:0 c=IN IP4 212.147.139.200 t=0 0 m=audio 12200 RTP/AVP 8 101 a=rtpmap:8 PCMA/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=sendrecv ACK sip:[email protected] SIP/2.0 Via: SIP/2.0/UDP 192.168.174.128;branch=z9hG4bKc0a8ae80000001035a620d3000006d4800000046;rport From: "Dave" <sip:192.168.174.128>;tag=a0c120d24b To: <sip:[email protected]>;tag=389 Contact: <sip:192.168.174.128> Call-ID: E640FDD0EF1D4AFC80051C7686D5722E0xc0a8ae80 CSeq: 1 ACK Max-Forwards: 70 User-Agent: SJphone/1.65.377a (SJ Labs) Content-Length: 0 Route: <sip:178.62.5.243;lr;ftag=a0c120d24b;nat=yes>
_______________________________________________ Kamailio (SER) - Users Mailing List [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
