*** empty log message ***
authorBogdan-Andrei Iancu <bogdan@voice-system.ro>
Mon, 28 Oct 2002 15:44:41 +0000 (15:44 +0000)
committerBogdan-Andrei Iancu <bogdan@voice-system.ro>
Mon, 28 Oct 2002 15:44:41 +0000 (15:44 +0000)
modules/tm/uac.c
test/message03.sip
test/th-uri.cfg

index 1849da1..a92d5de 100644 (file)
@@ -216,7 +216,9 @@ int t_uac( str *msg_type, str *dst,
        callid[rand_len]=CID_SEP;
        callid_s.s=callid;
        callid_s.len=rand_len+callid_suffix_len;
-       DBG("DEBUG: NEW CALLID:%*s\n", callid_s.len, callid_s.s );
+       DBG("DEBUG: sufix_len = %d\n",callid_suffix_len);
+       DBG("DEBUG: NEW CALLID:%.*s[%d]:\n", callid_s.len, callid_s.s 
+               , callid_s.len);
 
        new_cell = build_cell( NULL ) ; 
        if (!new_cell) {
index a70d712..ae8255f 100644 (file)
@@ -1,13 +1,14 @@
-MESSAGE sip:x@bat.iptel.org SIP/2.0
-Via: SIP/2.0/UDP bat.iptel.org:9
-From: sip:msilo@iptel.org;tag=16df4fe56e8782ecaa5d53ae36fb9240
-To: sip:dcm@iptel.org
+MESSAGE sip:+49160567535@fesarius.fokus.gmd.de SIP/2.0
+Via: SIP/2.0/UDP fesarius.fokus.gmde.de:9
+From: sip:bogdan@fesarius.fokus.gmd.de;tag=16df4fe56e8782ecaa5d53ae36fb9240
+To: sip:dcm@fesarius.fokus.gmd.de
 Call-ID: 02b1191c-447e-4bd0-b771-c039fc0d9d84@195.37.78.169
 CSeq: 7 MESSAGE
 Contact: <sip:195.37.78.169:11457>
 User-Agent: Windows RTC/1.0
-text/plain
-Content-Length: 013
-
-one two three
+Content-Type: text/plain
+Content-Length: 13
 
+cucu
+bau
+miau
index f1e2edf..e2fe25c 100644 (file)
@@ -10,48 +10,38 @@ children=2
 check_via=no      # (cmd. line: -v)
 dns=off           # (cmd. line: -r)
 rev_dns=off       # (cmd. line: -R)
-#port=5070
-#listen=10.0.0.179
-#listen=192.168.57.33
-loop_checks=0
+port=5070
+listen=193.175.132.142
 # for more info: sip_router -h
 
 #modules
 loadmodule "modules/print/print.so"
 loadmodule "modules/textops/textops.so"
-#loadmodule "modules/tm/tm.so"
-#loadmodule "modules/rr/rr.so"
 loadmodule "modules/maxfwd/maxfwd.so"
 loadmodule "modules/sl/sl.so"
-#loadmodule "modules/sms/sms.so"
-#loadmodule "modules/cpl/cpl.so"
-loadmodule "modules/ext/ext.so"
+loadmodule "modules/tm/tm.so"
+loadmodule "modules/im/im.so"
+loadmodule "modules/sms/sms.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","modems","Falcom [d=/dev/ttyS1;b=9600;p=9254;m=new;l=2;r=1] ")
+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("sms","max_sms_parts",3)
+modparam("sms","use_contact",1)
+modparam("sms","sms_report_type",2)
 
 route{
-       sl_filter_ACK();
-
        if ( !mf_process_maxfwd_header("10") )
        {
                sl_send_reply("483","To Many Hops");
                drop();
        };
 
-       /*
-       if (uri=~"sip:([0-9]+@)?fesarius\.fokus\.gmd\.de")
+       if (uri=~"sip:(\+[0-9]+@)?fesarius\.fokus\.gmd\.de"
+         | uri=~"sip:(\+[0-9]+@)?193\.175\.132\.142")
        {
-               if (uri=~"sip:1@") {
-                       seturi("sip:491756078181@fesarius.fokus.gmd.de");
-               };
                if (method=="MESSAGE")
                {
                        log("MESSAGE received -> sending as sms\n");
@@ -66,11 +56,9 @@ route{
                        sl_send_reply("501","Not implemented");
                };
                break;
-       };*/
+       };
 
-       ext_rewriteuri("./echo.pl");
 
-#      pike_check_req();
-       forward(uri:host,uri:port);
-       #t_relay();
+       sl_send_reply("502","Not Implemented");
+       #forward(uri:host,uri:port);
 }