|
@@ -1,9 +1,3 @@
|
|
-#
|
|
|
|
-# configuration for TurboSIP testing
|
|
|
|
-#
|
|
|
|
-# $ID: $
|
|
|
|
-#
|
|
|
|
-
|
|
|
|
|
|
|
|
debug=9 # debug level (cmd line: -dddddddddd)
|
|
debug=9 # debug level (cmd line: -dddddddddd)
|
|
#fork=yes # (cmd. line: -D)
|
|
#fork=yes # (cmd. line: -D)
|
|
@@ -29,16 +23,17 @@ loadmodule "modules/textops/textops.so"
|
|
#loadmodule "modules/rr/rr.so"
|
|
#loadmodule "modules/rr/rr.so"
|
|
loadmodule "modules/maxfwd/maxfwd.so"
|
|
loadmodule "modules/maxfwd/maxfwd.so"
|
|
loadmodule "modules/sl/sl.so"
|
|
loadmodule "modules/sl/sl.so"
|
|
-loadmodule "modules/sms/sms.so"
|
|
|
|
|
|
+#loadmodule "modules/sms/sms.so"
|
|
#loadmodule "modules/cpl/cpl.so"
|
|
#loadmodule "modules/cpl/cpl.so"
|
|
-#loadmodule "modules/pike/pike.so"
|
|
|
|
|
|
+loadmodule "modules/ext/ext.so"
|
|
|
|
|
|
|
|
|
|
-modparam("sms","modems","Falcom [d=/dev/ttyS1;b=9600;p=9254;m=new;l=10;r=2] ")
|
|
|
|
-modparam("sms","networks","D1[c=491710765000;m=10]")
|
|
|
|
-modparam("sms","links","Falcom[D1]")
|
|
|
|
-#modparam("sms","domain","fesarius.fokus.gmd.de")
|
|
|
|
-modparam("sms","max_sms_parts",3)
|
|
|
|
|
|
+#modparam("sms","modems","Falcom [d=/dev/ttyS1;b=9600;p=9254;m=new;l=10;r=2] ")
|
|
|
|
+#modparam("sms","networks","D1[c=491710765000;m=10]")
|
|
|
|
+#modparam("sms","links","Falcom[D1]")
|
|
|
|
+#modparam("sms","domain","hope.fokus.gmd.de")
|
|
|
|
+#modparam("sms","max_sms_parts",3)
|
|
|
|
+#modparam("sms","use_contact",1)
|
|
|
|
|
|
#modparam("pike","timeout",30)
|
|
#modparam("pike","timeout",30)
|
|
|
|
|
|
@@ -51,48 +46,18 @@ route{
|
|
drop();
|
|
drop();
|
|
};
|
|
};
|
|
|
|
|
|
-/*
|
|
|
|
- if (method=="INVITE")
|
|
|
|
|
|
+ /*
|
|
|
|
+ if (uri=~"sip:([0-9]+@)?fesarius\.fokus\.gmd\.de")
|
|
{
|
|
{
|
|
- log("SER : runing CPL!! :)\n");
|
|
|
|
- if ( !cpl_run_script() )
|
|
|
|
- {
|
|
|
|
- log("SER : Error during running CPL script!\n");
|
|
|
|
- }else{
|
|
|
|
- if ( cpl_is_response_reject() ) {
|
|
|
|
- sl_send_reply("603","I am not available!");
|
|
|
|
- drop();
|
|
|
|
- }else if ( cpl_is_response_redirect() ) {
|
|
|
|
- log("SER : redirect\n");
|
|
|
|
- cpl_update_contact();
|
|
|
|
- sl_send_reply("302","Moved temporarily");
|
|
|
|
- drop();
|
|
|
|
- };
|
|
|
|
|
|
+ if (uri=~"sip:1@") {
|
|
|
|
+ seturi("sip:[email protected]");
|
|
};
|
|
};
|
|
- };
|
|
|
|
-*/
|
|
|
|
-/* if (method=="INVITE" && uri=~"sip:[email protected]")
|
|
|
|
- {
|
|
|
|
- t_fork_to_uri("sip:[email protected]");
|
|
|
|
- };
|
|
|
|
- if (method=="INVITE" && uri=~"sip:[email protected]" )
|
|
|
|
- {
|
|
|
|
- t_fork_on_no_response("sip:[email protected]");
|
|
|
|
- };
|
|
|
|
- if (method=="INVITE" && uri=~"sip:[email protected]")
|
|
|
|
- {
|
|
|
|
- t_fork_to_uri("sip:[email protected]");
|
|
|
|
- };
|
|
|
|
-*/
|
|
|
|
-
|
|
|
|
- if (uri=~"sip:.*fesarius\.fokus\.gmd\.de")
|
|
|
|
- {
|
|
|
|
if (method=="MESSAGE")
|
|
if (method=="MESSAGE")
|
|
{
|
|
{
|
|
log("MESSAGE received -> sending as sms\n");
|
|
log("MESSAGE received -> sending as sms\n");
|
|
if (sms_send_msg_to_net("D1"))
|
|
if (sms_send_msg_to_net("D1"))
|
|
{
|
|
{
|
|
- sl_send_reply("202","Accepted");
|
|
|
|
|
|
+ sl_send_reply("200","Accepted");
|
|
}else{
|
|
}else{
|
|
sl_send_reply("502","Bad gateway");
|
|
sl_send_reply("502","Bad gateway");
|
|
};
|
|
};
|
|
@@ -101,8 +66,9 @@ route{
|
|
sl_send_reply("501","Not implemented");
|
|
sl_send_reply("501","Not implemented");
|
|
};
|
|
};
|
|
break;
|
|
break;
|
|
- };
|
|
|
|
|
|
+ };*/
|
|
|
|
|
|
|
|
+ ext_rewriteuri("./echo.pl");
|
|
|
|
|
|
# pike_check_req();
|
|
# pike_check_req();
|
|
forward(uri:host,uri:port);
|
|
forward(uri:host,uri:port);
|