While receiving "183 Session Progress" from PBX-Gateway i got this Error:
ERROR: extract_mediaip: no `c=' in SDP: v=0^M o=root 2931 2931 IN IP4 192.168.0.4^M s=session^M c=IN IP4 192.168.0.4^M t=0 0^M m=audio 16768 RTP/AVP 8 0 3 10 97 18 2 5^M a=rtpmap:8 PCMA/8000^M a=rtpmap:0 PCMU/8000^M a=rtpmap:3 GSM/8000^M a=rtpmap:10 L16/8000^M a=rtpmap:97 iLBC/8000^M a=rtpmap:18 G729/8000^M a=rtpmap:2 G726-32/8000^M a=rtpmap:5 DVI4/8000^M a=silenceSupp:off - - - -^M
-------------------------------------------------------------------------------------------------------------------------------
SipMessage:
SIP/2.0 183 Session Progress. Via: SIP/2.0/UDP 192.168.0.185;branch=z9hG4bK3ead.91bc6532.0. From: "Markus Monka" sip:9090@;tag=0000000000000000. To: sip:04321123456@;tag=as2e40535e. Call-ID: 0000000000000000@ CSeq: 22375 INVITE. User-Agent: Asterisk PBX. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER. Contact: sip:04321123456@. Content-Type: application/sdp. Content-Length: 331. . v=0. o=root 2931 2931 IN IP4 192.168.0.4. s=session. c=IN IP4 192.168.0.4. t=0 0. m=audio 16768 RTP/AVP 8 0 3 10 97 18 2 5. a=rtpmap:8 PCMA/8000. a=rtpmap:0 PCMU/8000. a=rtpmap:3 GSM/8000. a=rtpmap:10 L16/8000. a=rtpmap:97 iLBC/8000. a=rtpmap:18 G729/8000. a=rtpmap:2 G726-32/8000. a=rtpmap:5 DVI4/8000. a=silenceSupp:off - - - -.
-------------------------------------------------------------------------------------------------------------------------------
Can someone explain me, why i got this error here?
cp1 = NULL; for (cp = body->s; (len = body->s + body->len - cp) > 0;) { cp1 = ser_memmem(cp, "c=", len, 2); if (cp1 == NULL || cp1[-1] == '\n' || cp1[-1] == '\r') break; cp = cp1 + 2; } if (cp1 == NULL) { LOG(L_DBG, "ERROR: extract_mediaip: no `c=' in SDP\n"); return -1; }
Seems to me, that the "c=" Part is inside?
version: ser 0.8.14-4 (i386/linux) flags: STATS:Off, USE_IPV6, USE_TCP, DISABLE_NAGLE, DNS_IP_HACK, 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 @(#) $Id: main.c,v 1.168.4.3.2.1 2004/10/22 17:21:32 andrei Exp $ main.c compiled on 11:11:58 Feb 25 2005 with gcc 2.95
Thx Markus