[Devel] 500 Server error occurred (1/SL)

Ovidiu Sas sip.nslu at gmail.com
Wed Feb 14 15:41:29 CET 2007


Hi Bogdan,

The problem is triggered when from mangling is involved and t_relay is
used in manual mode and 100 Trying is not sent.
An INVITE comes in.  It's From headers is mangled and then is sent out
(using usrloc lookup).  The INVITE is relayed using t_relay("0x01")
and no "100 Trying" is sent out.
On the first INVITE retransmission, the bug will occur.


Regards,
Ovidiu Sas

On 2/13/07, Ovidiu Sas <sip.nslu at gmail.com> wrote:
> Hi Bogdan,
>
> Yes, the second INVITE is a retransmission.
> The script is pretty simple: lcr followed by t_relay("0x01").
> I just don't send back a 100 Trying.  Could this cause issues?
>
>
> Regards,
> Ovidiu Sas
>
> On 2/13/07, Bogdan-Andrei Iancu <bogdan at voice-system.ro> wrote:
> > Hi Ovidiu,
> >
> > second INVITE looks to be a retransmission. Are you using t_newtran() +
> > t_relay() ?? what is the script sequence for relaying?
> >
> > regards,
> > bogdan
> >
> > Ovidiu Sas wrote:
> > > Hi,
> > >
> > >
> > > I got this bizarre 500 error (openser 1.2.0-pre4-tls (arm/linux)).
> > >
> > > 192.168.2.102 - CISCO IP PHONE
> > > 192.168.2.22 - openser
> > > 192.168.2.20 - asterisk
> > >
> > > Cisco --> openser --> asterisk
> > >
> > >
> > > Here's the the log:
> > > ERROR:tm:t_forward_nonack: no branch for forwarding
> > > ERROR:tm:w_t_relay: t_forward_nonack failed
> > > ERR: t_relay() in route[1]
> > >
> > >
> > > and here's the ngrep:
> > > #
> > > U 2007/02/12 21:03:59.644707 192.168.2.102:50611 -> 192.168.2.22:5060
> > > INVITE sip:4169771414 at 192.168.2.22;user=phone SIP/2.0.
> > > Via: SIP/2.0/UDP 192.168.2.102:5060;branch=z9hG4bK6fc15dd5.
> > > From: "Line 6"
> > > <sip:line-6 at 192.168.2.22>;tag=00036be7b12459bc6a35fdb5-427c1545.
> > > To: <sip:4169771414 at 192.168.2.22;user=phone>.
> > > Call-ID: 00036be7-b1240073-27eb575a-3c266a6b at 192.168.2.102.
> > > Max-Forwards: 70.
> > > Date: Tue, 13 Feb 2007 02:03:38 GMT.
> > > CSeq: 102 INVITE.
> > > User-Agent: Cisco-CP7960G/7.5.
> > > Contact: <sip:line-6 at 192.168.2.102:5060>.
> > > Proxy-Authorization: Digest
> > > username="line-6",realm="192.168.2.22",uri="sip:4169771414 at 192.168.2.22;user=phone",response="16f0ea81a76e28996eefcf4d9b5cfb38",nonce="45d0d76bed759d9c74a1f2c55e052931bda8c01a",algorithm=md5.
> > >
> > > Expires: 180.
> > > Remote-Party-ID: "Line 6"
> > > <sip:line-6 at 192.168.2.102>;party=calling;id-type=subscriber;privacy=off;screen=yes.
> > >
> > > Content-Length: 256.
> > > Content-Type: application/sdp.
> > > Content-Disposition: session;handling=optional.
> > > .
> > > v=0.
> > > o=Cisco-SIPUA 9502 0 IN IP4 192.168.2.102.
> > > s=SIP Call.
> > > t=0 0.
> > > m=audio 29660 RTP/AVP 0 8 18 101.
> > > c=IN IP4 192.168.2.102.
> > > a=rtpmap:0 PCMU/8000.
> > > a=rtpmap:8 PCMA/8000.
> > > a=rtpmap:18 G729/8000.
> > > a=rtpmap:101 telephone-event/8000.
> > > a=fmtp:101 0-15.
> > > a=sendrecv.
> > >
> > >
> > > U 2007/02/12 21:03:59.653481 192.168.2.22:5060 -> 192.168.2.20:5060
> > > INVITE sip:4169771414 at 192.168.2.20:5060;transport=udp SIP/2.0.
> > > Record-Route:
> > > <sip:192.168.2.22;lr;ftag=00036be7b12459bc6a35fdb5-427c1545;vsf=AAAAAA0HAQtUWy9ESnIfAwEWHhweHAM->.
> > >
> > > Via: SIP/2.0/UDP 192.168.2.22;branch=z9hG4bK4829.d237633.0.
> > > Via: SIP/2.0/UDP 192.168.2.102:5060;branch=z9hG4bK6fc15dd5.
> > > From: "Anonymous"
> > > <sip:anonymous at 127.0.0.1>;tag=00036be7b12459bc6a35fdb5-427c1545.
> > > To: <sip:4169771414 at 192.168.2.22;user=phone>.
> > > Call-ID: 00036be7-b1240073-27eb575a-3c266a6b at 192.168.2.102.
> > > Max-Forwards: 69.
> > > Date: Tue, 13 Feb 2007 02:03:38 GMT.
> > > CSeq: 102 INVITE.
> > > User-Agent: Cisco-CP7960G/7.5.
> > > Contact: <sip:line-6 at 192.168.2.102:5060>.
> > > Expires: 180.
> > > Remote-Party-ID: "Line 6"
> > > <sip:line-6 at 192.168.2.102>;party=calling;id-type=subscriber;privacy=off;screen=yes.
> > >
> > > Content-Length: 256.
> > > Content-Type: application/sdp.
> > > Content-Disposition: session;handling=optional.
> > > .
> > > v=0.
> > > o=Cisco-SIPUA 9502 0 IN IP4 192.168.2.102.
> > > s=SIP Call.
> > > t=0 0.
> > > m=audio 29660 RTP/AVP 0 8 18 101.
> > > c=IN IP4 192.168.2.102.
> > > a=rtpmap:0 PCMU/8000.
> > > a=rtpmap:8 PCMA/8000.
> > > a=rtpmap:18 G729/8000.
> > > a=rtpmap:101 telephone-event/8000.
> > > a=fmtp:101 0-15.
> > > a=sendrecv.
> > >
> > >
> > > U 2007/02/12 21:03:59.665261 192.168.2.20:5060 -> 192.168.2.22:5060
> > > SIP/2.0 100 Trying.
> > > Via: SIP/2.0/UDP
> > > 192.168.2.22;branch=z9hG4bK4829.d237633.0;received=192.168.2.22.
> > > Via: SIP/2.0/UDP 192.168.2.102:5060;branch=z9hG4bK6fc15dd5.
> > > From: "Anonymous"
> > > <sip:anonymous at 127.0.0.1>;tag=00036be7b12459bc6a35fdb5-427c1545.
> > > To: <sip:4169771414 at 192.168.2.22;user=phone>.
> > > Call-ID: 00036be7-b1240073-27eb575a-3c266a6b at 192.168.2.102.
> > > CSeq: 102 INVITE.
> > > User-Agent: Asterisk PBX.
> > > Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
> > > Supported: replaces.
> > > Contact: <sip:4169771414 at 192.168.2.20>.
> > > Content-Length: 0.
> > > .
> > >
> > >
> > > U 2007/02/12 21:04:00.144269 192.168.2.102:50611 -> 192.168.2.22:5060
> > > INVITE sip:4169771414 at 192.168.2.22;user=phone SIP/2.0.
> > > Via: SIP/2.0/UDP 192.168.2.102:5060;branch=z9hG4bK6fc15dd5.
> > > From: "Line 6"
> > > <sip:line-6 at 192.168.2.22>;tag=00036be7b12459bc6a35fdb5-427c1545.
> > > To: <sip:4169771414 at 192.168.2.22;user=phone>.
> > > Call-ID: 00036be7-b1240073-27eb575a-3c266a6b at 192.168.2.102.
> > > Max-Forwards: 70.
> > > Date: Tue, 13 Feb 2007 02:03:38 GMT.
> > > CSeq: 102 INVITE.
> > > User-Agent: Cisco-CP7960G/7.5.
> > > Contact: <sip:line-6 at 192.168.2.102:5060>.
> > > Proxy-Authorization: Digest
> > > username="line-6",realm="192.168.2.22",uri="sip:4169771414 at 192.168.2.22;user=phone",response="16f0ea81a76e28996eefcf4d9b5cfb38",nonce="45d0d76bed759d9c74a1f2c55e052931bda8c01a",algorithm=md5.
> > >
> > > Expires: 180.
> > > Remote-Party-ID: "Line 6"
> > > <sip:line-6 at 192.168.2.102>;party=calling;id-type=subscriber;privacy=off;screen=yes.
> > >
> > > Content-Length: 256.
> > > Content-Type: application/sdp.
> > > Content-Disposition: session;handling=optional.
> > > .
> > > v=0.
> > > o=Cisco-SIPUA 9502 0 IN IP4 192.168.2.102.
> > > s=SIP Call.
> > > t=0 0.
> > > m=audio 29660 RTP/AVP 0 8 18 101.
> > > c=IN IP4 192.168.2.102.
> > > a=rtpmap:0 PCMU/8000.
> > > a=rtpmap:8 PCMA/8000.
> > > a=rtpmap:18 G729/8000.
> > > a=rtpmap:101 telephone-event/8000.
> > > a=fmtp:101 0-15.
> > > a=sendrecv.
> > >
> > >
> > > U 2007/02/12 21:04:00.153226 192.168.2.22:5060 -> 192.168.2.102:5060
> > > SIP/2.0 500 Server error occurred (1/SL).
> > > Via: SIP/2.0/UDP 192.168.2.102:5060;branch=z9hG4bK6fc15dd5.
> > > From: "Line 6"
> > > <sip:line-6 at 192.168.2.22>;tag=00036be7b12459bc6a35fdb5-427c1545.
> > > To:
> > > <sip:4169771414 at 192.168.2.22;user=phone>;tag=329cfeaa6ded039da25ff8cbb8668bd2.4856.
> > >
> > > Call-ID: 00036be7-b1240073-27eb575a-3c266a6b at 192.168.2.102.
> > > CSeq: 102 INVITE.
> > > Server: OpenSer (1.2.0-pre4-tls (arm/linux)).
> > > Content-Length: 0.
> > > .
> > >
> > >
> > > U 2007/02/12 21:04:00.262754 192.168.2.102:51526 -> 192.168.2.22:5060
> > > ACK sip:4169771414 at 192.168.2.22;user=phone SIP/2.0.
> > > Via: SIP/2.0/UDP 192.168.2.102:5060;branch=z9hG4bK6fc15dd5.
> > > From: "Line 6"
> > > <sip:line-6 at 192.168.2.22>;tag=00036be7b12459bc6a35fdb5-427c1545.
> > > To:
> > > <sip:4169771414 at 192.168.2.22;user=phone>;tag=329cfeaa6ded039da25ff8cbb8668bd2.4856.
> > >
> > > Call-ID: 00036be7-b1240073-27eb575a-3c266a6b at 192.168.2.102.
> > > Date: Tue, 13 Feb 2007 02:03:39 GMT.
> > > CSeq: 102 ACK.
> > > Content-Length: 0.
> > > .
> > >
> > >
> > > U 2007/02/12 21:04:03.731337 192.168.2.22:5060 -> 192.168.2.20:5060
> > > CANCEL sip:4169771414 at 192.168.2.20:5060;transport=udp SIP/2.0.
> > > Via: SIP/2.0/UDP 192.168.2.22;branch=z9hG4bK4829.d237633.0.
> > > From: "Anonymous"
> > > <sip:anonymous at 127.0.0.1>;tag=00036be7b12459bc6a35fdb5-427c1545.
> > > Call-ID: 00036be7-b1240073-27eb575a-3c266a6b at 192.168.2.102.
> > > To: <sip:4169771414 at 192.168.2.22;user=phone>.
> > > CSeq: 102 CANCEL.
> > > User-Agent: OpenSer (1.2.0-pre4-tls (arm/linux)).
> > > Content-Length: 0.
> > > .
> > >
> > >
> > > U 2007/02/12 21:04:03.734855 192.168.2.20:5060 -> 192.168.2.22:5060
> > > SIP/2.0 487 Request Terminated.
> > > Via: SIP/2.0/UDP
> > > 192.168.2.22;branch=z9hG4bK4829.d237633.0;received=192.168.2.22.
> > > Via: SIP/2.0/UDP 192.168.2.102:5060;branch=z9hG4bK6fc15dd5.
> > > From: "Anonymous"
> > > <sip:anonymous at 127.0.0.1>;tag=00036be7b12459bc6a35fdb5-427c1545.
> > > To: <sip:4169771414 at 192.168.2.22;user=phone>;tag=as02cb988d.
> > > Call-ID: 00036be7-b1240073-27eb575a-3c266a6b at 192.168.2.102.
> > > CSeq: 102 INVITE.
> > > User-Agent: Asterisk PBX.
> > > Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
> > > Supported: replaces.
> > > Content-Length: 0.
> > > .
> > >
> > >
> > > U 2007/02/12 21:04:03.735902 192.168.2.20:5060 -> 192.168.2.22:5060
> > > SIP/2.0 200 OK.
> > > Via: SIP/2.0/UDP
> > > 192.168.2.22;branch=z9hG4bK4829.d237633.0;received=192.168.2.22.
> > > From: "Anonymous"
> > > <sip:anonymous at 127.0.0.1>;tag=00036be7b12459bc6a35fdb5-427c1545.
> > > To: <sip:4169771414 at 192.168.2.22;user=phone>;tag=as02cb988d.
> > > Call-ID: 00036be7-b1240073-27eb575a-3c266a6b at 192.168.2.102.
> > > CSeq: 102 CANCEL.
> > > User-Agent: Asterisk PBX.
> > > Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
> > > Supported: replaces.
> > > Contact: <sip:4169771414 at 192.168.2.20>.
> > > Content-Length: 0.
> > > .
> > >
> > >
> > > U 2007/02/12 21:04:03.736114 192.168.2.22:5060 -> 192.168.2.20:5060
> > > ACK sip:4169771414 at 192.168.2.20:5060;transport=udp SIP/2.0.
> > > Via: SIP/2.0/UDP 192.168.2.22;branch=z9hG4bK4829.d237633.0.
> > > From: "Anonymous"
> > > <sip:anonymous at 127.0.0.1>;tag=00036be7b12459bc6a35fdb5-427c1545.
> > > Call-ID: 00036be7-b1240073-27eb575a-3c266a6b at 192.168.2.102.
> > > To: <sip:4169771414 at 192.168.2.22;user=phone>;tag=as02cb988d.
> > > CSeq: 102 ACK.
> > > User-Agent: OpenSer (1.2.0-pre4-tls (arm/linux)).
> > > Content-Length: 0.
> > > .
> > >
> > > _______________________________________________
> > > Devel mailing list
> > > Devel at openser.org
> > > http://openser.org/cgi-bin/mailman/listinfo/devel
> > >
> >
> >
>



More information about the Devel mailing list