Hi All,
I am experiencing an issue when i try to contact xy(a)cisco.com.
I found that kamailio/sip-router can't resolve by default resolving way
a TCP + SRV records from domain cisco.com.
e.g. cisco.com
misi@alma:~$ host -t NAPTR cisco.comcisco.com has no NAPTR record
misi@alma:~$ host -t SRV _sip._udp.cisco.com
Host _sip._udp.cisco.com not found: 3(NXDOMAIN)
misi@alma:~$ host -t SRV _sip._tcp.cisco.com_sip._tcp.cisco.com has SRV record 1 0 5060 vcsgw.cisco.com.
misi@alma:~$ host -t SRV _sips._tcp.cisco.com_sips._tcp.cisco.com has SRV record 1 0 5061 vcsgw.cisco.com.
I can't call xy(a)cisco.com because it does not exists an NAPTR record in
domain cisco.com,
and furthermore no SRV with udp.
But it exists sip+tcp record
and also exists an secure sip SRV, so sips+tcp record!
I read rfc3263
I find kamailio dns resolver is not working as it should according RFC3263.
http://tools.ietf.org/html/rfc3263
_If no NAPTR records are found, the client constructs SRV queries
for those transport protocols it supports, and does a query for each._
So kamailio should query all (udp, tcp, tls, sctp whatever) protocols.
Can anyone help/guide me to create a fix to this issue?
My plan is to create a patch to kamailio resolver, to correct and behave
according RFC3263.
Any help or guidance appreciated!
Thanks,
Misi
Module: sip-router
Branch: master
Commit: 27e5fdc60110c4c89cee642317f5d92b7f0b734d
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=27e5fdc…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Wed Dec 19 12:52:13 2012 +0100
kamailio-oob.cfg: new config file to collect more out-of-the-box use cases
- the file can be used to add more complex routing logic and show how to
use various features of kamailio
- it should offload kamailio.cfg from getting too complex as a starting
point
---
etc/kamailio-oob.cfg | 980 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 980 insertions(+), 0 deletions(-)
Diff: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=27e…
Hello,
I was comparing modules_s/timer with modules_k/rtimer to spot the
differences.
modules_s/timer is working only with core timers (fast and slow timers),
while the modules_k/rtimer can start own timer processes, or register a
task to main core timer.
Other differences ...
modules_s/timer:
- run on milisecond basis
- option to enable/disable timer
modules_k/rtimer
- run either on second or micro-second basis
- option to execute the many route blocks on same timer
So, apart of enable/disable timer option, rtimer can do more than what
timer module offer (mili-seconds can be run as 1000x micro-second).
Enabling/disabling a timer can be workarounded from script, using a
shared variable tested at begininning of rtimer route, like:
route[RTIMER] {
if($shv(rtimer)==0)
return;
...
}
Enabling will mean setting $shv(rtimer)=1, either from other parts of
the config or via MI/RPC commands.
Now, both modules can be kept, no naming conflict, it is just a matter
of code maintenance if we should keep timer module. Enabling/disabling
timers can be added to rtimer in the future, but it is unlikely to
happen before next major release (unless someone else does it).
Is anyone here using modules_s/timer module aware of other differences
comparing with rtimer?
Looking for comments to keep or obsolete modules_s/timer module ...
Cheers,
Daniel
--
Daniel-Constantin Mierla - http://www.asipto.comhttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Hi!
auth_identity in dev trunk did not compile on my FreeBSD server. By copying this code from the utils/Makefile it did.
I don't know who manages auth_identity - but please throw an eye on this and tell me if it's ok to commit?
Now I need to look into why the websocket module doesn't compile either. Something with ssl.
Gotta be a solution in some Makefile somewhere.
/O
index f4974b0..3b47648 100644
--- a/modules/auth_identity/Makefile
+++ b/modules/auth_identity/Makefile
@@ -4,11 +4,24 @@ include ../../Makefile.defs
auto_gen=
NAME=auth_identity.so
+ifeq ($(CROSS_COMPILE),)
+CURL2CFG=$(shell which curl-config)
+endif
+
+ifneq ($(CURL2CFG),)
+ DEFS += $(shell $(CURL2CFG) --cflags )
+ LIBS += $(shell $(CURL2CFG) --libs)
+else
+ DEFS+=-I$(LOCALBASE)/include
+ LIBS+=-L$(LOCALBASE)/lib -lcurl
+endif
+
+
DEFS+= -Wall -I$(LOCALBASE)/ssl/include
#
# Dynamic linking
#
-LIBS+= -L$(LOCALBASE)/lib -L$(LOCALBASE)/ssl/lib -lssl -lcrypto -lcurl
+LIBS+= -L$(LOCALBASE)/lib -L$(LOCALBASE)/ssl/lib -lssl -lcrypto
#
# Static linking, if you'd like to use TLS and AUTH_IDENTITY at the same time