diff --git a/src/resolve.c b/src/resolve.c
index de4621a..25d95fa 100644
--- a/src/resolve.c
+++ b/src/resolve.c
@@ -33,6 +33,8 @@
#include "log.h"
+#define USE_NAPTR 0
+
static char const ident[]="$Id$";
@@ -54,7 +56,7 @@ int resolve_SRV(char *name, char *dname, int dnamelen, int *port) {
return _resolve(name, C_IN, T_SRV, dname, dnamelen, port);
}
-#if 0
+#if USE_NAPTR
/*
* perform a NAPTR lookup
*
@@ -186,7 +188,7 @@ Currently just the first (lowest prio, highest weight) entry is returned.
xptr+=j;
}
}
-#if 0
+#if USE_NAPTR
} else if( ty == T_NAPTR ) {
DEBUGC(DBCLASS_DNS, "_resolve: A - type NAPTR");
usp = (unsigned short *)xptr;
diff --git a/tools/sipp_testing/README b/tools/sipp_testing/README
new file mode 100644
index 0000000..75923b6
--- /dev/null
+++ b/tools/sipp_testing/README
@@ -0,0 +1,36 @@
+
+Setup:
+------
+
+HOSTA ---------- siproxd ------------HOSTB
+private net | Internet
+
+
+siproxd must be setup as transparent proxy (iptables rules to
+redirect all outgoing SIP traffic from sipp to HOSTB to local siproxd)
+
+Client on HOSTA
+---------------
+- limited to 10 simultaneous calls (-> default configured RTP port range)
+- server and client are on port 5070
+- each call is kept for 1000ms (-d), then terminated
+- every 1000ms (-rp) 5 (-r) new calls are spawned
+- end test after 100 total calls
+
+./sipp -sf myuac.xml -l 10 -p 5070 -d 1000 \
+ -m 100 -r 5 -rp 1000 HOSTB:5070
+
+
+Server on HOSTB
+---------------
+- port 5070
+
+./sipp -sf myuas.xml -p 5070
+
+
+Note: siproxd has limited simultaneous calls
+ - RTP port range
+ - some compile time constants for RTP array sizing
+
+Those XML scenarios include a REGISTER step before doing the
+actual call. This is required for siproxd to know the local UA.
diff --git a/tools/sipp_testing/myuac.xml b/tools/sipp_testing/myuac.xml
new file mode 100644
index 0000000..3c6532b
--- /dev/null
+++ b/tools/sipp_testing/myuac.xml
@@ -0,0 +1,128 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ ;tag=[pid]SIPpTag07[call_number]
+ To: sipp
+ Call-ID: [call_id]
+ CSeq: 1 REGISTER
+ Contact:
+ Content-Length: 0
+ Expires: 300
+
+ ]]>
+
+
+
+
+
+
+
+ ;tag=[pid]SIPpTag00[call_number]
+ To: sut
+ Call-ID: [call_id]
+ CSeq: 1 INVITE
+ Contact:
+ Max-Forwards: 70
+ Subject: Performance Test
+ Content-Type: application/sdp
+ Content-Length: 151
+
+ v=0
+ o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
+ s=session
+ c=IN IP[media_ip_type] [media_ip]
+ t=0 0
+ m=audio [media_port] RTP/AVP 0
+ a=rtpmap:0 PCMU/8000
+ a=ptime:20
+
+
+foo
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ;tag=[pid]SIPpTag00[call_number]
+ To: sut [peer_tag_param]
+ Call-ID: [call_id]
+ CSeq: 1 ACK
+ Contact:
+ Max-Forwards: 70
+ Subject: Performance Test
+ Content-Length: 0
+
+ ]]>
+
+
+
+
+
+
+
+
+ ;tag=[pid]SIPpTag00[call_number]
+ To: sut [peer_tag_param]
+ Call-ID: [call_id]
+ CSeq: 2 BYE
+ Contact:
+ Max-Forwards: 70
+ Subject: Performance Test
+ Content-Length: 0
+
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tools/sipp_testing/myuas.xml b/tools/sipp_testing/myuas.xml
new file mode 100644
index 0000000..6013019
--- /dev/null
+++ b/tools/sipp_testing/myuas.xml
@@ -0,0 +1,125 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Content-Length: 0
+ Expires: 300
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Content-Length: 0
+
+ ]]>
+
+
+
+
+
+ Content-Type: application/sdp
+ Content-Length: 155
+
+ v=0
+ o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
+ s=session
+ c=IN IP[media_ip_type] [media_ip]
+ t=0 0
+ m=audio [media_port] RTP/AVP 0
+ a=rtpmap:0 PCMU/8000
+ a=ptime:20
+
+foo
+ ]]>
+
+
+
+
+
+
+
+
+
+
+ Content-Length: 0
+
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+