Guys,
I would need your help in troubleshooting some pretty serious issue for me.
Scenario: relaying an INVITE from openser to a softswitch and recognizing the flags
(global and branch ones) in onreply. Everything seems to work fine with relaying the
requests, but when the answers are matched in onreply, the flags are gone.
Bellow is the log configuration which gives the output used by me to troubleshoot in
logs:
in route:
xlog("First branch: $br, all branches: $bR, flags set: $mf , branch flags:
$bf");
xlog("Relaying to: $avp(s:route), message: $mb");
xlog("OUT to Softswitch");
in onreply route:
xlog ("ENTERING ON REPLY ROUTE");
xlog("First branch: $br, all branches: $bR, flags set: $mf , branch flags:
$bf");
xlog("In onreply, message: $mb");
Please see the output bellow:
Dec 20 10:07:51 ellie /usr/local/sbin/openser[15295]: First branch: <null>, all
branches: <null>, flags set: 130 , branch flags: 1024
Dec 20 10:07:51 ellie /usr/local/sbin/openser[15295]: Relaying to: pstn1, message: INVITE
sip:INT_NUMBER_MASKED@sip.itsyscom.com SIP/2.0^M Via: SIP/2.0/UDP
10.10.11.10:7091;rport;branch=z9hG4bK2127028508^M From:
<sip:dan@sip.itsyscom.com>;tag=2128765320^M To:
<sip:INT_NUMBER_MASKED@sip.itsyscom.com>^M Call-ID: 886593274(a)10.10.11.10^M CSeq: 21
INVITE^M Contact: <sip:dan@10.10.11.10:7091>^M Proxy-Authorization: Digest
username="dan", realm="sip.itsyscom.com",
nonce="476a40226a7cfaa9a11de5b6e7d6742d45ec6bd4",
uri="sip:INT_NUMBER_MASKED@sip.itsyscom.com",
response="08872e4a06f011ea7d6f947f1874a882", algorithm=MD5^M Max-Forwards: 4^M
User-Agent: Linphone-1.5.1/eXosip^M Subject: Phone call^M Expires: 120^M Allow: INVITE,
ACK, CANCEL, BYE, OPTIONS, REFER, SUBSCRIBE, NOTIFY, MESSAGE^M Content-Type:
application/sdp^M Content-Length: 310^M ^M v=0^M o=dan 123456 654321 IN IP4
10.10.11.10^M s=A conversation^M c=IN IP4 10.10.11.10^M t=0 0^M m=audio 7078 RTP/AVP 3 0 8
111 110 101^M a=rtpmap:3 GSM/8000/1^M a=rtpmap:0 PCMU/8000/1^M a=rtp
Dec 20 10:07:51 ellie /usr/local/sbin/openser[15295]: OUT to Softswitch
Dec 20 10:07:51 ellie /usr/local/sbin/openser[15295]: ENTERING ON REPLY ROUTE
Dec 20 10:07:51 ellie /usr/local/sbin/openser[15295]: First branch: <null>, all
branches: <null>, flags set: 0 , branch flags: 0
Dec 20 10:07:51 ellie /usr/local/sbin/openser[15295]: In onreply, message: SIP/2.0 100
Trying^M Via: SIP/2.0/UDP
IP_MASKED;branch=z9hG4bK9221.886b3817.0;received=IP_MASKED;rport=5060^M Via: SIP/2.0/UDP
10.10.11.10:7091;received=ORIGINATOR_IP;rport=8026;branch=z9hG4bK2127028508^M
Record-Route: <sip:IP_MASKED;lr=on;ftag=2128765320;nat=yes>^M From:
<sip:dan@sip.itsyscom.com>;tag=2128765320^M To:
<sip:INT_NUMBER_MASKED@sip.itsyscom.com>^M Call-ID: 886593274(a)10.10.11.10^M CSeq: 21
INVITE^M Server: GlobalE SoftSWITCH/1.3.0.^M Content-Length: 0^M ^M
Dec 20 10:07:53 ellie /usr/local/sbin/openser[15296]: ENTERING ON REPLY ROUTE
Dec 20 10:07:53 ellie /usr/local/sbin/openser[15296]: First branch: <null>, all
branches: <null>, flags set: 0 , branch flags: 0
Dec 20 10:07:53 ellie /usr/local/sbin/openser[15296]: In onreply, message: SIP/2.0 180
Ringing^M Via: SIP/2.0/UDP
IP_MASKED;branch=z9hG4bK9221.886b3817.0;received=IP_MASKED;rport=5060^M Via: SIP/2.0/UDP
10.10.11.10:7091;received=ORIGINATOR_IP;rport=8026;branch=z9hG4bK2127028508^M
Record-Route: <sip:IP_MASKED;lr=on;ftag=2128765320;nat=yes>^M From:
<sip:dan@sip.itsyscom.com>;tag=2128765320^M To:
<sip:INT_NUMBER_MASKED@sip.itsyscom.com>;tag=975999519^M Call-ID:
886593274(a)10.10.11.10^M CSeq: 21 INVITE^M Server: GlobalE SoftSWITCH/1.3.0.^M Contact:
<sip:INT_NUMBER_MASKED@IP_MASKED:5070>^M Allow: ACK, INVITE, BYE, CANCEL, OPTIONS^M
Content-Type: application/sdp^M Content-Length: 187^M ^M v=0^M o=yate 1198145273
1198145273 IN IP4 208.50.127.243^M s=SIP Call^M c=IN IP4 208.50.127.243^M t=0 0^M m=audio
23166 RTP/AVP 8 101^M a=rtpmap:8 PCMA/8000^M a=rtpmap:101 telephone-event/8000^M
Can any of you help me troubleshooting this? I get the feeling that there is no
transaction matched by openser for the replies.
Version I am using (compiled from sources, with some params modified in configure.h):
openser -V
version: openser 1.2.2-tls (i386/linux)
flags: STATS: Off, USE_IPV6, USE_TCP, USE_TLS, DISABLE_NAGLE, USE_MCAST, SHM_MEM,
SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024,
BUF_SIZE 65535
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
svnrevision: 2:3368M
@(#) $Id: main.c 3173 2007-11-20 08:26:35Z bogdan_iancu $
Thxs in advance for any help.
DanB