[Spce-user] IP Authentication

Vishal Dalsania vishal.dalsania at rigelnetworks.com
Thu Mar 17 09:52:12 EDT 2016


I am trying to do IP authentication for Subscriber which is FreeSwitch.

It seems to be working fine but calls are not passing through. Here is log
from kamailio lb and proxy

kamailio-lb.log

Mar 17 20:14:45 spce lb[17417]: NOTICE: <script>: New request on lb -
M=INVITE R=sip:01119498732827 at 10.2.2.6 F=sip:FreeSWITCH at 10.2.2.6 T=
sip:01119498732827 at 10.2.2.6 IP=udp:10.2.2.9:5080
ID=59a7ef54-6717-1234-94a8-000c29a444fd
UA='FreeSWITCH-mod_sofia/1.4.23~64bit'
Mar 17 20:14:45 spce lb[17417]: NOTICE: <script>: Relaying request, du='sip:
127.0.0.1:5062', fs='udp:127.0.0.1:5060' - R=sip:01119498732827 at 10.2.2.6
ID=59a7ef54-6717-1234-94a8-000c29a444fd
UA='FreeSWITCH-mod_sofia/1.4.23~64bit'
Mar 17 20:14:45 spce lb[17418]: NOTICE: <script>: Reply from Inbound -
S=100 - Trying M=INVITE IP=udp:127.0.0.1:5062
ID=59a7ef54-6717-1234-94a8-000c29a444fd UA='<null>'
Mar 17 20:14:45 spce lb[17418]: NOTICE: <script>: Sending reply, fs='udp:
10.2.2.6:5060' - ID=59a7ef54-6717-1234-94a8-000c29a444fd UA='<null>'
Mar 17 20:14:45 spce lb[17418]: NOTICE: <script>: Reply from Inbound -
S=403 - Unauthorized IP detected M=INVITE IP=udp:127.0.0.1:5062
ID=59a7ef54-6717-1234-94a8-000c29a444fd UA='<null>'
Mar 17 20:14:45 spce lb[17418]: NOTICE: <script>: Sending reply, fs='udp:
10.2.2.6:5060' - ID=59a7ef54-6717-1234-94a8-000c29a444fd UA='<null>'
Mar 17 20:14:45 spce lb[17417]: NOTICE: <script>: New request on lb - M=ACK
R=sip:01119498732827 at 10.2.2.6 F=sip:FreeSWITCH at 10.2.2.6 T=
sip:01119498732827 at 10.2.2.6 IP=udp:10.2.2.9:5080
ID=59a7ef54-6717-1234-94a8-000c29a444fd UA='<null>'
Mar 17 20:14:45 spce lb[17417]: NOTICE: <script>: Relaying request, du='sip:
127.0.0.1:5062', fs='udp:127.0.0.1:5060' - R=sip:01119498732827 at 10.2.2.6
ID=59a7ef54-6717-1234-94a8-000c29a444fd UA='<null>'





kamailio-proxy.log

Mar 17 20:14:45 spce proxy[17555]: NOTICE: <script>: New request on proxy -
M=INVITE R=sip:01119498732827 at 10.2.2.6 F=sip:FreeSWITCH at 10.2.2.6 T=
sip:01119498732827 at 10.2.2.6 IP=10.2.2.9:5080 (127.0.0.1:5060)
ID=59a7ef54-6717-1234-94a8-000c29a444fd
UA='FreeSWITCH-mod_sofia/1.4.23~64bit'
Mar 17 20:14:45 spce proxy[17555]: NOTICE: <script>: Call from trusted peer
with uuid 'ca4b51f3-5a95-4e54-9f99-2c3d8af0169f' - R=
sip:01119498732827 at 10.2.2.6 ID=59a7ef54-6717-1234-94a8-000c29a444fd
UA='FreeSWITCH-mod_sofia/1.4.23~64bit'
Mar 17 20:14:45 spce proxy[17555]: WARNING: <script>: No ipauth id found
for caller, block call - R=sip:01119498732827 at 10.2.2.6
ID=59a7ef54-6717-1234-94a8-000c29a444fd
UA='FreeSWITCH-mod_sofia/1.4.23~64bit'
Mar 17 20:14:45 spce proxy[17555]: NOTICE: <script>: Setting acc source-leg
for uuid 'ca4b51f3-5a95-4e54-9f99-2c3d8af0169f':
'ca4b51f3-5a95-4e54-9f99-2c3d8af0169f|FreeSWITCH|10.2.2.6|<null>|||91|||<null>|call|10.2.2.9|1458242085.170040|||||||||||'
- R=sip:01119498732827 at 10.2.2.6 ID=59a7ef54-6717-1234-94a8-000c29a444fd
UA='FreeSWITCH-mod_sofia/1.4.23~64bit'
Mar 17 20:14:45 spce proxy[17555]: NOTICE: <script>: Setting acc
destination-leg for uuid '0':
'0|||0|01119498732827|0|01119498732827|10.2.2.6|<null>|<null>|0|||||||||||'
- R=sip:01119498732827 at 10.2.2.6 ID=59a7ef54-6717-1234-94a8-000c29a444fd
UA='FreeSWITCH-mod_sofia/1.4.23~64bit'
Mar 17 20:14:45 spce proxy[17555]: ERROR: app_lua [app_lua_api.c:680]:
app_lua_run(): error executing: del_dlg_profile (err: 2)
Mar 17 20:14:45 spce proxy[17555]: ERROR: app_lua [app_lua_api.c:682]:
app_lua_run(): error from Lua: /etc/kamailio/proxy/dlgcnt.lua:100: can't
restore callid from $avp(lua_dlg_callid): is null
Mar 17 20:14:45 spce proxy[17555]: ERROR: <script>: Failed to decrease
redis counters - R=sip:you at kamailio.org ID=123 UA='<null>'
Mar 17 20:14:45 spce proxy[17555]: NOTICE: <script>: New request on proxy -
M=ACK R=sip:01119498732827 at 10.2.2.6 F=sip:FreeSWITCH at 10.2.2.6 T=
sip:01119498732827 at 10.2.2.6 IP=10.2.2.9:5080 (127.0.0.1:5060)
ID=59a7ef54-6717-1234-94a8-000c29a444fd UA='<null>'


Is there anything i can do to resolve this ? I am not sure where shall i
start looking at.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20160317/5124288f/attachment.html>


More information about the Spce-user mailing list