linphone-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-users] patch SDP


From: Aymeric MOIZARD
Subject: Re: [Linphone-users] patch SDP
Date: Mon, 12 Jul 2004 13:45:17 +0200 (CEST)

I'm pretty sure it is allowed to send an empty codec list. (and this
should be done).

Aymeric

On Thu, 8 Jul 2004, Stephane List wrote:

> In case linphone doesn't accept a codec (e.g. a payload type), the SDP
> frame respond with a port equal to 0, but the payload type corresponding
> is not sent.
> The following patch correct this problem.
>
> Stephane
>
>
> diff -urN linphone-0.12.2.orig/osipua/src/sdphandler.c 
> linphone-0.12.2/osipua/src/sdphandler.c
> --- linphone-0.12.2.orig/osipua/src/sdphandler.c      Thu Mar 11 18:42:00 2004
> +++ linphone-0.12.2/osipua/src/sdphandler.c   Thu Jul  8 14:04:56 2004
> @@ -518,6 +518,8 @@
>                                                        sgetcopy (mtype),
>                                                        int_2char (0), NULL,
>                                                        sgetcopy (proto));
> +                                     /* add the payload */
> +                                     sdp_m_payload_add (answer, i, int_2char 
> (payload.pt));
>                               }
>                               else
>                                       m_lines_accepted++;
> @@ -528,6 +530,8 @@
>                               sdp_m_media_add (answer, sgetcopy (mtype),
>                                                int_2char (0), NULL,
>                                                sgetcopy (proto));
> +                             /* add the payload */
> +                             sdp_m_payload_add (answer, i, int_2char 
> (payload.pt));
>                       }
>
>               }
> @@ -611,6 +615,8 @@
>                                                        sgetcopy (mtype),
>                                                        int_2char (0), NULL,
>                                                        sgetcopy (proto));
> +                                     /* add the payload */
> +                                     sdp_m_payload_add (answer, i, int_2char 
> (payload.pt));
>                               }
>                               else
>                                       m_lines_accepted++;
> @@ -621,6 +627,8 @@
>                               sdp_m_media_add (answer, sgetcopy (mtype),
>                                                int_2char (0), NULL,
>                                                sgetcopy (proto));
> +                             /* add the payload */
> +                             sdp_m_payload_add (answer, i, int_2char 
> (payload.pt));
>                       }
>               }
>       }
>
>
> _______________________________________________
> Linphone-users mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/linphone-users
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]