Browse code

*** empty log message ***

Bogdan-Andrei Iancu authored on 04/06/2002 12:12:33
Showing 3 changed files
... ...
@@ -131,7 +131,7 @@ error:
131 131
 }
132 132
 
133 133
 
134
-int update_sock_struct_from_via( union sockaddr_union* to,  
134
+int update_sock_struct_from_via( union sockaddr_union* to,
135 135
 								 struct via_body* via )
136 136
 {
137 137
 	int err;
... ...
@@ -417,7 +417,8 @@ char* parse_to(char* buffer, char *end, struct to_body *to_b)
417 417
 	char  *tmp,*foo;
418 418
 
419 419
 	status=START_TO;
420
-	foo=0;
420
+	to_b->error=PARSE_OK;
421
+	foo=0;	
421 422
 
422 423
 	for( tmp=buffer; tmp<end; tmp++)
423 424
 	{
... ...
@@ -656,7 +657,7 @@ endofheader:
656 656
 			to_b->uri.len = foo - to_b->uri.s;
657 657
 		case END:
658 658
 			to_b->body.len = tmp - to_b->body.s;
659
-	case E_PARA_VALUE:
659
+		case E_PARA_VALUE:
660 660
 			*(tmp-1)=0;
661 661
 			break;
662 662
 		default:
... ...
@@ -33,9 +33,9 @@ loadmodule "modules/sms/sms.so"
33 33
 #loadmodule "modules/cpl/cpl.so"
34 34
 
35 35
 
36
-modparam("sms","networks","  D1 [1234 ] ;d2[ 3456]; E-plus [34]")
37
-modparam("sms","modems","/dev/ttyS1[ d1 , d2] ")
38
-modparam("sms","looping_interval",10)
36
+modparam("sms","modems","Nokia [d=/dev/ttyS1;b=9600;m=new;l=30] ")
37
+modparam("sms","networks","  D1 [c=491710765000;m=10] ;d2[ c=3456;m=20]")
38
+modparam("sms","links","NOKIA[D1;d2]")
39 39
 
40 40
 route{
41 41
 	sl_filter_ACK();
... ...
@@ -85,7 +85,7 @@ route{
85 85
 		if (method=="MESSAGE")
86 86
 		{
87 87
 			log("MESSAGE received -> sending as sms\n");
88
-			if (sms_send_msg())
88
+			if (sms_send_msg_to_net("D1"))
89 89
 			{
90 90
 				sl_send_reply("202","Accepted");
91 91
 			}else{