Module: sip-router
Branch: pd/websocket
Commit: eff18c9ce6de48e6a2f821148cbce586a088512c
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=eff18c9…
Author: Peter Dunkley <peter.dunkley(a)crocodile-rcs.com>
Committer: Peter Dunkley <peter.dunkley(a)crocodile-rcs.com>
Date: Tue Jul 3 16:56:11 2012 +0100
modules/websocket: Updated example kamailio.cfg
---
modules/websocket/example/kamailio.cfg | 18 +++++++++++-------
1 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/modules/websocket/example/kamailio.cfg b/modules/websocket/example/kamailio.cfg
index c4bd83f..0285c43 100644
--- a/modules/websocket/example/kamailio.cfg
+++ b/modules/websocket/example/kamailio.cfg
@@ -3,7 +3,7 @@
# Simple/sample kamailio.cfg for running a proxy/registrar with TLS and
# WebSockets support.
-#!substdef "!DBURL!sqlite:///db.sqlite!g"
+#!substdef "!DBURL!sqlite:///etc/kamailio/db.sqlite!g"
#!substdef "!MY_IP_ADDR!192.168.111.136!g"
#!substdef "!MY_WS_PORT!80!g"
#!substdef "!MY_WSS_PORT!443!g"
@@ -150,9 +150,11 @@ request_route {
sl_send_reply("400", "Bad Request");
exit;
}
- t_on_reply("WS_REPLY");
}
}
+
+ if (!is_method("REGISTER"))
+ t_on_reply("WS_REPLY");
#!endif
# handle requests within SIP dialogs
@@ -298,11 +300,13 @@ route[AUTH] {
#!ifdef WITH_WEBSOCKETS
onreply_route[WS_REPLY] {
- # Do NAT traversal stuff for replies to a WebSocket connection - even
- # if it is not behind a NAT!
- # This won't be needed in the future if Kamailio and the WebSocket
- # client support outbound.
- add_contact_alias();
+ if (nat_uac_test(64)) {
+ # Do NAT traversal stuff for replies to a WebSocket connection - even
+ # if it is not behind a NAT!
+ # This won't be needed in the future if Kamailio and the WebSocket
+ # client support outbound.
+ add_contact_alias();
+ }
}
event_route[xhttp:request] {
Hello,
I'm using the addresses table in kamailio for ip authentication,
however I finding the following issue. It seems that the table is one
read into cache at startup and is only updated if address_reload is
called from the kamailio script.
As calling address_reload per call is probably not ideal, is there an
easy way of getting the address table periodically reloaded? (e.g.
once a minute)
Torrey
Hello,
in the near future I will package 3.1.6 to mark the end of releasing
from 3.1 branch. Of course, patches can still go into that branch, but
there is no intent to package again from it.
If anyone is willing to push other commits before the packages, please
do it in then next 1-2 days. I will do it when I get enough spare time
for it, with a short notice before it in that day.
Cheers,
Daniel
--
Daniel-Constantin Mierla - http://www.asipto.comhttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Seattle, USA, Sep 23-26, 2012 - http://asipto.com/u/katu
Kamailio Practical Workshop, Netherlands, Sep 10-12, 2012 - http://asipto.com/u/kpw
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task is now closed:
FS#240 - uac_replace_from error when called multiple times
User who did this - Daniel-Constantin Mierla (miconda)
Reason for closing: Not a bug
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=240
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#240 - uac_replace_from error when called multiple times
User who did this - Daniel-Constantin Mierla (miconda)
----------
This is how the changes over the sip message happen -- they are not applied immediately, but kept in a list and applied all before forwarding the request. You either keep a state in config to know what is the final form of From URI and apply that change once, or use msg_apply_changes() after first uac_replace_from().
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=240#comment701
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - Morten Isaksen (misak)
Attached to Project - sip-router
Summary - uac_replace_from error when called multiple times
Task Type - Bug Report
Category - Modules kamailio
Status - Unconfirmed
Assigned To -
Operating System - Linux
Severity - Low
Priority - Normal
Reported Version - 3.1
Due in Version - Undecided
Due Date - Undecided
Details - If you call uac_replace_from multiple times the from uri is appended. Fx:
uac_replace_from("", "sip:+$(fU{s.strip,2})@$fd");
uac_replace_from("anonymous","sip:anonymous@anonymous.invalid");
Will result in something like this.
From: "anonymous" <sip:+49170915XXX@178.21.xx.xxsip:anonymous@anonymous.invalid>;tag=as5b4ee72f
/Morten
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=240
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.