[OpenSIPS-Users] do_routing() sending several invites per call

Magnus Burman magnus.burman at adamo.es
Tue Jan 19 17:38:59 CET 2010


Hi,

I'm moving from Opensips 1.4 to 1.6.1 currently and I'm getting some strange
behavior from droute. After it sends the INVITE, it resends it, and again,
for a total of 8 times, each time adding the opensips ip to record-route and
Via. Each invite gets its own record in radacct.

Anyone with an idea where I'm going wrong?

Below is the "relevant" part of my config:

route[1] {
    setflag(1);
    $avp(s:can_uri) = $ru;
    if (!t_relay()) {
        sl_reply_error();
    };
    exit;
}

route[10] {
# pre-processing with strips/prefixes etc
    ...
    if(do_routing("0")) {
        xlog("Regular routing");
        route(1);
        exit;
    }
    exit;
}

Below is the first INVITE sent out by Opensips. IP:s have been changed to
protect the innocent; they're all public, no NAT:

U 2010/01/19 17:29:19.825093 111.111.114.120:5060 -> 222.222.222.222:5060
INVITE sip:34610100100 at 222.222.222.222
<sip%3A34610100100 at 222.222.222.222>SIP/2.0.
Record-Route:
<sip:111.111.114.120;lr=on;ftag=fd1f3a1d6bcfabebo0;vsf=AAAAAF5VXlZBQ2ZEXUNEAAAAAAAAAAAAAAAAAAAA;did=01.aa2219f7>.
Via: SIP/2.0/UDP 111.111.114.120;branch=z9hG4bK3eea.5d650714.1.
Via: SIP/2.0/UDP 111.111.115.122:5060;branch=z9hG4bK-4fddec66.
From: "34620200200"
<sip:34620200200 at 111.111.114.120<sip%3A34620200200 at 111.111.114.120>
>;tag=fd1f3a1d6bcfabebo0.
To: <sip:610100100 at 111.111.114.120 <sip%3A610100100 at 111.111.114.120>>.
Call-ID: 6bf71385-646761a3 at 111.111.115.122.
CSeq: 101 INVITE.
Max-Forwards: 69.
Contact: "Magnus" <sip:magnus_test at 111.111.115.122:5060>.
Expires: 240.
User-Agent: Linksys/SPA921-5.1.8.
Content-Length: 208.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
Supported: replaces.
Content-Type: application/sdp.
P-hint: inbound->inbound .
.
v=0.
o=- 13541 13541 IN IP4 111.111.115.122.
s=-.
c=IN IP4 111.111.115.122.
t=0 0.
m=audio 16408 RTP/AVP 8 101.
a=rtpmap:8 PCMA/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=ptime:30.
a=sendrecv.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100119/70ced9dc/attachment-0001.htm 


More information about the Users mailing list