i think this my a bug in C/C++ api , when makeCall call->med_prov_cnt accurately is 2 , but when redirect it became to 0?? could anybody can tell me why this value has changed when redirect? Best regards. From: zhuyongwen@xxxxxxxxxxxxxxxxx Date: 2015-04-16 15:58 To: pjsip Subject: why redirect pjsip assert failed ? hi all , I got a pjsip assert failed " pj_assert(call->med_prov_cnt >= local_sdp->media_count);" , in pjsip 2.4, my secnario like below : UAC--------INVITE---------------------------->(REDIRECT SRV) UAC<--------302 MOVED TEMPORARY-------(REDIRECT SRV) UAC--------ACK------->(REDIRECT SRV) UAC--------INVITE------->(REDIRECT SRV) i don't know why this happend ? could anyone know about this happen ? and how can i fix it ? this real value is below: call->med_prov_cnt =0 local_sdp->media_count= 2 accurately i makeCall used callparamters with auto=1 ,and video =0 the invte message like below : " INVITE sip:3100 at 172.16.200.24:5060 SIP/2.0 Via: SIP/2.0/TCP 192.168.23.138:48643;rport;branch=z9hG4bKPjc9e7175fff934f4ea922eb1dfeb6f57c;alias Max-Forwards: 70 From: "88138" <sip:88138@192.168.17.151>;tag=353b9b83eebb4ec1a926408f2cae4041 To: <sip:3100 at 172.16.200.24> Contact: "88138" <sip:88138 at 192.168.23.138:48624;transport=TCP;ob>;+sip.ice Call-ID: 893d75c02e3348839c62e469800898d0 CSeq: 30448 INVITE Route: <sip:192.168.17.151:5060;transport=tcp;lr> Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS Supported: replaces, 100rel, timer, norefersub Session-Expires: 1800 Min-SE: 90 Content-Type: application/sdp Content-Length: 1097 v=0 o=- 3638186779 3638186779 IN IP4 192.168.23.138 s=pjmedia b=AS:352 t=0 0 a=X-nat:0 m=audio 50521 RTP/AVP 98 97 99 104 3 0 8 9 96 c=IN IP4 192.168.23.138 b=TIAS:64000 a=rtcp:50523 IN IP4 192.168.23.138 a=sendrecv a=rtpmap:98 speex/16000 a=rtpmap:97 speex/8000 a=rtpmap:99 speex/32000 a=rtpmap:104 iLBC/8000 a=fmtp:104 mode=30 a=rtpmap:3 GSM/8000 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:9 G722/8000 a=rtpmap:96 telephone-event/8000 a=fmtp:96 0-16 a=ice-ufrag:7f967ff5 a=ice-pwd:4e45323b a=candidate:Hc0a8178a 1 UDP 2130706431 192.168.23.138 50521 typ host a=candidate:Hc0a8178a 2 UDP 2130706430 192.168.23.138 50523 typ host m=video 50525 RTP/AVP 97 96 c=IN IP4 192.168.23.138 b=TIAS:256000 a=rtcp:50527 IN IP4 192.168.23.138 a=sendrecv a=rtpmap:97 H264/90000 a=fmtp:97 profile-level-id=42e01e; packetization-mode=1 a=rtpmap:96 H263-1998/90000 a=fmtp:96 CIF=1;QCIF=1 a=ice-ufrag:301c0bdb a=ice-pwd:56ae0732 a=candidate:Hc0a8178a 1 UDP 2130706431 192.168.23.138 50525 typ host a=candidate:Hc0a8178a 2 UDP 2130706430 192.168.23.138 50527 typ host " thanks a lot ! Best regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20150416/02e8040a/attachment.html>