[OpenSIPS-Users] Duplicate media description (m=) and codec_* functions in textops
Bogdan-Andrei Iancu
bogdan at opensips.org
Mon Jan 21 19:57:07 CET 2013
Hi Remco,
The double "m" means you have two media streams in your SDP. This should
not affect the codec related functions.
What exact version/revision of OpenSIPs are you using (OpenSIPS -V) ?
also could you paste here the plain/text SDP you are fighting against ?
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 01/21/2013 11:15 AM, Remco . wrote:
> Hi,
>
> Trying to remove T.38 using the following:
>
> if (is_method("INVITE")&& codec_exists_re(".*(T38|t38|t.38|T.38).*")) {
> xlog("L_WARN", "[$Tf]: A=[$fU] : B=[$rU] :
> Call-id=[$ci] : T.38 found in SDP");
> # Test if other codec present, and delete T.38 if so.
> if (codec_exists("PCMU") || codec_exists("PCMA")) {
> codec_delete_re(".*(T38|t38|t.38|T.38).*");
> xlog("L_WARN", "[$Tf]: A=[$fU] : B=[$rU] :
> Call-id=[$ci] : T.38 removed from SDP");
> } else {
> xlog("L_WARN", "[$Tf]: A=[$fU] : B=[$rU] :
> Call-id=[$ci] : SDP with only T.38");
> }
> }
>
>
> It seems not to match the following SDP:
>
> Media Description, name and address (m): audio 54106 RTP/AVP 8 0 101
> Media Type: audio
> Media Port: 54106
> Media Protocol: RTP/AVP
> Media Format: ITU-T G.711 PCMA
> Media Format: ITU-T G.711 PCMU
> Media Format: DynamicRTP-Type-101
> Media Attribute (a): rtpmap:101 TELEPHONE-EVENT/8000
> Media Attribute Fieldname: rtpmap
> Media Format: 101
> MIME Type: TELEPHONE-EVENT
> Sample Rate: 8000
> Media Attribute (a): fmtp:101 0-15
> Media Attribute Fieldname: fmtp
> Media Format: 101 [TELEPHONE-EVENT]
> Media format specific parameters: 0-15
> Media Attribute (a): ptime:20
> Media Attribute Fieldname: ptime
> Media Attribute Value: 20
> Media Description, name and address (m): image 56122 udptl t38
> Media Type: image
> Media Port: 56122
> Media Protocol: udptl
> Media Format: t38
> Media Attribute (a): T38FaxRateManagement:transferredTCF
> Media Attribute Fieldname: T38FaxRateManagement
> Media Attribute Value: transferredTCF
> Media Attribute (a): T38FaxudpEC:t38UDPFEC
> Media Attribute Fieldname: T38FaxudpEC
> Media Attribute Value: t38UDPFEC
>
> Could it be that the double media description (m=) is confusing the
> codec_* functions from the textops module?
> According to the relevant RFC's, it shouldn't but somehow I can't get
> it to work..
>
> Regards,
> Remco.
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
More information about the Users
mailing list