|
@@ -1,5 +1,5 @@
|
|
#
|
|
#
|
|
-# configuration for TurboSIP testing
|
|
|
|
|
|
+# iptel.org real world configuration
|
|
#
|
|
#
|
|
# $Id$
|
|
# $Id$
|
|
#
|
|
#
|
|
@@ -24,6 +24,13 @@ loadmodule "modules/auth/auth.so"
|
|
|
|
|
|
|
|
|
|
route{
|
|
route{
|
|
|
|
+
|
|
|
|
+ # fix Cisco's bug in PRACK processing; it's a really horrible, horrible hack!
|
|
|
|
+ if (method=="PRACK") {
|
|
|
|
+ sl_send_reply("200", "Cool I like PRACKs" );
|
|
|
|
+ break;
|
|
|
|
+ };
|
|
|
|
+
|
|
# filter local stateless ACK generated by authentication of mf replies
|
|
# filter local stateless ACK generated by authentication of mf replies
|
|
sl_filter_ACK();
|
|
sl_filter_ACK();
|
|
|
|
|
|
@@ -83,7 +90,7 @@ route{
|
|
|
|
|
|
# does the authenticated user have a permission for local
|
|
# does the authenticated user have a permission for local
|
|
# calls? (i.e., is he in the "local" group?)
|
|
# calls? (i.e., is he in the "local" group?)
|
|
- if (uri=~"sip:0[1-9]+@.*") {
|
|
|
|
|
|
+ if (uri=~"sip:0[1-9][0-9]+@.*") {
|
|
if (!is_in_group("local")) {
|
|
if (!is_in_group("local")) {
|
|
sl_send_reply("403", "Toodle Noodle...");
|
|
sl_send_reply("403", "Toodle Noodle...");
|
|
break;
|
|
break;
|
|
@@ -129,7 +136,7 @@ route{
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
|
|
- # we now we may, we now where, let it go out now!
|
|
|
|
|
|
+ # we now know we may, we now where, let it go out now!
|
|
t_relay();
|
|
t_relay();
|
|
};
|
|
};
|
|
}
|
|
}
|