- another small bug : &to instead of to
authorAndrei Pelinescu-Onciul <andrei@iptel.org>
Thu, 6 Sep 2001 04:20:27 +0000 (04:20 +0000)
committerAndrei Pelinescu-Onciul <andrei@iptel.org>
Thu, 6 Sep 2001 04:20:27 +0000 (04:20 +0000)
forward.c
sip_router.cfg

index 0e958d3..bc1cbdb 100644 (file)
--- a/forward.c
+++ b/forward.c
@@ -227,7 +227,7 @@ int forward_reply(char * orig, char* buf,
        to->sin_port = (msg->via2.port)?htons(msg->via2.port):htons(SIP_PORT);
        to->sin_addr.s_addr=*((long*)he->h_addr_list[0]);
        
-       if (udp_send(new_buf,new_len, &to, sizeof(struct sockaddr))==-1)
+       if (udp_send(new_buf,new_len, to, sizeof(struct sockaddr))==-1)
                goto error;
        
        free(new_buf);
index 3f63060..1b4d167 100644 (file)
@@ -4,7 +4,8 @@
 #  method_re   sip_uri_re      dest_host
 # (warning: re cannot contain space)
 
-.*                     .*                                 mobile50 
+#.                     .                                  centauri
+#.*                    .*                                 mobile50 
 .                      .                                  fox.iptel.org
 ^R.*        ^sip:.*@dorian.*   ekina.fokus.gmd.de        
 ^INVITE     .*                 ape:5061             # my laptop