Hi again.

I have made a very minor fix in the SIP module (basically, added ns-sip.tcl 
to the NS_TCL_LIB variable in Makefile.in so that ns_tcl.cc is rebuilt after 
changing that file). You may download it here:
http://www.ncc.up.pt/~rprior/ns/ns-allinone-2.27-sip-v1_11.tar.gz

As to changing the port used by SIP so that you can use it along with other 
agents that already use port 0 (notably routing agents) you will have to do 
the following changes:


* In files sip-proxy.cc (line 327), sip-tu.cc (line 183) and sip-ua.cc (line 
705), located in the sip directory, change

     iph->dport() = 0;

  to

     iph->dport() = 5;


* In file ns-sip.tcl, located in the tcl/lib directory, change line 77 from

      $self attach $sipua_ 5; # Must be at port 0

  to

      $self attach $sipua_ 5

  and line 88 from

      $self attach $sipproxy_ 0; # Must be at port 0

  to

      $self attach $sipproxy_ 5


I am sending a carbon copy of the message to the ns-users mailing list so 
that other people having the same problem can find the answer.


Rui Prior

Reply via email to