summaryrefslogtreecommitdiff
path: root/test/sip
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2016-04-09 10:56:39 +0200
committerAlfred E. Heggestad <aeh@db.org>2016-04-09 10:56:39 +0200
commit3016f2ec3c793202baa7b921e2a07f368c1e6dfb (patch)
tree494821f9d582377f1055d8e15876273e1f55b01f /test/sip
parentf53ec36a768e41c47c72fac6ad5c3e672e291688 (diff)
test: add test-case for DNS SRV loadbalancing and authentication (refs #39)
Diffstat (limited to 'test/sip')
-rw-r--r--test/sip/sipsrv.c3
-rw-r--r--test/sip/sipsrv.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/test/sip/sipsrv.c b/test/sip/sipsrv.c
index 686d587..76b4b6f 100644
--- a/test/sip/sipsrv.c
+++ b/test/sip/sipsrv.c
@@ -189,7 +189,8 @@ static bool sip_msg_handler(const struct sip_msg *msg, void *arg)
int err = 0;
#if 0
- DEBUG_NOTICE("recv %r via %s\n", &msg->met, sip_transp_name(msg->tp));
+ DEBUG_NOTICE("[%u] recv %r via %s\n", srv->instance,
+ &msg->met, sip_transp_name(msg->tp));
#endif
srv->tp_last = msg->tp;
diff --git a/test/sip/sipsrv.h b/test/sip/sipsrv.h
index aa136e0..a4b8bbf 100644
--- a/test/sip/sipsrv.h
+++ b/test/sip/sipsrv.h
@@ -17,6 +17,7 @@ struct sip_server {
struct sip_lsnr *lsnr;
bool auth_enabled;
bool terminate;
+ unsigned instance;
unsigned n_register_req;
enum sip_transp tp_last;