linphone-users
[Top][All Lists]
Advanced

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

[Linphone-users] patch SDP


From: Stephane List
Subject: [Linphone-users] patch SDP
Date: Thu, 8 Jul 2004 14:11:25 +0200
User-agent: Mutt/1.3.28i

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));
                        }
                }
        }




reply via email to

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