[OpenSIPS-Devel] Problem using OpenSIPS with SIPp for testing

SAMEER KUMAR sameer.kasi200x at gmail.com
Fri Mar 13 11:01:22 CET 2009


I am stuck with a problem while trying to use OpenSIPS and SIPp. I hope
someone can help me out.

I have OpenSIPS runnin on 10.1.10.88
I am using the following cfg file


debug=3
>
*fork=no
> log_stderror=yes
> listen=10.1.10.88
> port=5060
> children=4
> dns=yes
> rev_dns=yes
> #fifo= "/tmp/ser_fifo"
> loadmodule "/usr/src/opensips-1.4.4-tls/modules/sl/sl.so"
> loadmodule "/usr/src/opensips-1.4.4-tls/modules/tm/tm.so"
> loadmodule "/usr/src/opensips-1.4.4-tls/modules/rr/rr.so"
> loadmodule "/usr/src/opensips-1.4.4-tls/modules/maxfwd/maxfwd.so"
> loadmodule "/usr/src/opensips-1.4.4-tls/modules/usrloc/usrloc.so"
> loadmodule "/usr/src/opensips-1.4.4-tls/modules/registrar/registrar.so"
> modparam("usrloc", "db_mode", 0)
> modparam("rr", "enable_full_lr", 1)
>  route  {
>
>    if (!mf_process_maxfwd_header("10")) {
>       sl_send_reply("483", "Too Many Hops");
>       return;
>    };
>
>    if (msg:len > max_len) {
>        sl_send_reply("513", "Message Overflow");
>        return;
>    };
>
>    if (method!="REGISTER") {
>        record_route();
>    };
>
>    if (loose_route()) {
>        route(1);
>        return;
>    };
>
>    if (uri!=myself) {
>        route(1);
>        return;
>    };
>    if (method=="ACK") {
>        route(1);
>        return;
>    }
>
>    if (method=="REGISTER") {
>        route(2);
>        return;
>    };
>
>    if (method=="INVITE") {
>
>     add_local_rport();
>     force_rport();
>     forward();
>     t_relay();
>
>     return;
>    };
>
>    lookup("aliases");
>      if (uri!=myself) {
>        route(1);
>        return;
>    };
>    if (!lookup("location")) {
>        sl_send_reply("404", "User Not Found");
>        return;
>    };
>    route(1);
> }
>  route[1]    {
>
>    if (!t_relay()) {
>        sl_reply_error();
>    };
>
>    }
> route[2]  {
>
>    if (!save("location")) {
>       sl_reply_error();
>    };
> }
> *
>


I have used the following cmds on Three diff Desktops

*opensips -f /usr/src/opensips-1.4.4-tls/examples/new.cfg -l 10.1.10.88:5060
> *
>
> *sipp -sn -uac -r 20 -rp 200 -i 10.1.10.87 -p 5062 -rsa 10.1.10.88:5060
> 10.1.10.86:5061*
>
> *sipp -sn uas -i 10.1.10.86 -p 5061 -rsa 10.1.10.88:5060*
>


When the UAC starts sending the request they are completely absorbed by
OpenSIPS and not at all forwarded to UAS. As a result the Count of INVITE
and 100 are going up in SIPP (UAC) but then there is nothing happening after
that. I mean there is no response from UAS. The 180, BYE on UAC count to
zero till very end and there no increament in the messages on UAS list.

All the calls are shown to be paused on UAC.
I tried lot of debugging with the cfg file and have changed lot of things
there (compared to the first one I wrote). I tried swapping the role of UAS
and UAC. The problem persists with UAC (it seems to be machine independent,
and not partial towards 10.1.10.87 :-)  ).

I tried running OpenSIPS and SIPp all on local host(and used IP 127.0.0.1 in
all commands), and still the problem was there. So network can not be held
responsible for this problem.

I have tried the /opensips/examples/logging.cfg file (with some
modification) and confirmed that the INVITE messages are successfully
recieved and logged by OpenSIPS (at 10.1.10.88).

I even tried running OpenSIPS on the machine running UAS (10.1.10.86)
scenario and there I tried to log (with a similar logging.cfg file) incoming
messages but I failed to find any INVITE message relayed by the OpenSIPS on
10.1.10.88.


Sameer Kumar
B.Tech, Computer Engineering
Institute of Technology,
Nirma University,
Ahmedabad, Gujarat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/devel/attachments/20090313/d02a0267/attachment-0001.htm 


More information about the Devel mailing list