Hi Andreas, thanks for the hint, works now ! Still learning ;-) To be precise, the right way: unsigned attr_cnt = sdp_info->sdp->media[0]->attr_count; Best regards Franz Citycom Telekommunikation GmbH Gadollaplatz 1 8010 Graz | Austria T: +43(316)887-6264 M: +43(664)88275444 E: franz.skale@xxxxxxxxxxxxxxxxxxx www.citycom-austria.com FN 165640p, Landes- als Firmenbuchgericht Graz UID-Nr.: ATU 61241999 Ein Unternehmen der Holding Graz ________________________________________ Von: pjsip <pjsip-bounces@xxxxxxxxxxxxxxx> im Auftrag von Andreas Wehrmann <a.wehrmann@xxxxxxxxxx> Gesendet: Freitag, 22. November 2019 14:21 An: pjsip@xxxxxxxxxxxxxxx Betreff: *****POSSIBLE SPAM***** Re: Bug in pjproject 2.9 (SDP attribute count) On 22/11/2019 08:59, Skale Franz wrote: > > > The count should be 9 not 0 ! > > > Reference: > > 08:50:33.465 APP ..SDP Attrribute count: 0 > 08:50:33.465 APP ..SDP buffer allocated: 294 > SDP BUFFER: > v=0 > o=- 268531272 32581 IN IP4 xxx.xxx.xxx.xxx > s=- > c=IN IP4 xxx.xxx.xxx.xxx > t=0 0 > m=audio 39316 RTP/AVP 8 0 18 101 > a=rtpmap:8 PCMA/8000 > a=rtpmap:0 PCMU/8000 > a=rtpmap:18 G729/8000 > a=rtpmap:101 telephone-event/8000 > a=fmtp:101 0-16 > a=direction:both > a=sendrecv > a=rtcp:39317 > a=ptime:20 > > > Best regards > > > *Franz Skale* > Rechenzentrum-Services > > Hey there, you're looking at session level attributes while you actually want to look at media level attributes. Try this: sdp_info->media[ 0 ]->attr_count Best regards, Andreas _______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@xxxxxxxxxxxxxxx http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org _______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@xxxxxxxxxxxxxxx http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org