|
@@ -246,6 +246,12 @@ route{
|
|
# its address may show up in subsequent requests
|
|
# its address may show up in subsequent requests
|
|
# after rewriteFromRoute
|
|
# after rewriteFromRoute
|
|
|
|
|
|
|
|
+ # testing for jiri -- fox excepts bat and forward to it
|
|
|
|
+ if (uri=~"@bat\.iptel\.org") {
|
|
|
|
+ forward("bat.iptel.org", 5060);
|
|
|
|
+ break;
|
|
|
|
+ };
|
|
|
|
+
|
|
# sign of our domain: there is @ (username), :
|
|
# sign of our domain: there is @ (username), :
|
|
# (nothing) or . (host) in front of our domain name
|
|
# (nothing) or . (host) in front of our domain name
|
|
#XX
|
|
#XX
|
|
@@ -269,9 +275,6 @@ route{
|
|
if (uri=~"sip:9042@") {
|
|
if (uri=~"sip:9042@") {
|
|
seturi("sip:[email protected]");
|
|
seturi("sip:[email protected]");
|
|
};
|
|
};
|
|
-# if (uri=~"sip:17@") {
|
|
|
|
-# seturi("sip:[email protected]");
|
|
|
|
-# };
|
|
|
|
if (uri=~"sip:17@") {
|
|
if (uri=~"sip:17@") {
|
|
seturi("sip:[email protected]");
|
|
seturi("sip:[email protected]");
|
|
};
|
|
};
|
|
@@ -330,7 +333,10 @@ route{
|
|
|
|
|
|
# update Contact database
|
|
# update Contact database
|
|
log("LOG: REGISTER is authorized, saving location\n");
|
|
log("LOG: REGISTER is authorized, saving location\n");
|
|
- save_contact("location");
|
|
|
|
|
|
+ if (!save_contact("location")) {
|
|
|
|
+ log("LOG: save_contact failed\n");
|
|
|
|
+ sl_reply_error();
|
|
|
|
+ };
|
|
break;
|
|
break;
|
|
};
|
|
};
|
|
|
|
|