Closed GoogleCodeExporter closed 9 years ago
Original comment by pmerl...@googlemail.com
on 12 Dec 2009 at 9:55
Check in your change into the source, please.
Original comment by pmerl...@googlemail.com
on 12 Dec 2009 at 10:06
Changes commited. I don't know how things work with this project, sorry for the
inconvenience.
Original comment by nio....@gmail.com
on 13 Dec 2009 at 12:10
Original comment by pmerl...@googlemail.com
on 13 Dec 2009 at 2:41
Hi developers,
I've made another fix to Sipdroid (r385) so that it can determine a audio codec
dynamically base on capacity negotiation by SDP offer and answer.
In this version, Sipdroid fall-backs to G.711 when your sip provider does not
support
GSM codec.
Please consider to merge this patch.
It also include implementation of G.711 u-law.
Thanks.
Original comment by tm.in...@gmail.com
on 13 Dec 2009 at 4:18
Attachments:
Yes, looks good to me. I've added you as a member.
Could you please include some comments:
1) @@ -472,10 +550,32 @@
changeStatus(UA_STATE_INCOMING_CALL,caller.toString());
- initSessionDescriptor();
if (sdp != null) {
Why did you remove initSessionDescriptor for the case where sdp==null?
2) - new_sdp = SdpTools.sdpAttirbuteSelection(new_sdp, "rtpmap");
+ //new_sdp = SdpTools.sdpAttirbuteSelection(new_sdp,
"rtpmap"); ////change multi codecs
Why did you comment out this line?
3) + //change end
+
if (user_profile.no_offer) {
- // Create the new SDP
Why did you move out all the lines from the no_offer case?
Original comment by pmerl...@googlemail.com
on 13 Dec 2009 at 10:07
Please don't check your patch in yet.
Reason is based on the user option for preferred codec the code should select
one. If
the server just offers GSM this should always work if preferred codec is
different.
Do you think you can streamline the code such that the option evaluation (with
setting
and evaluating UseGSM) will only be contained once?
Original comment by pmerl...@googlemail.com
on 14 Dec 2009 at 1:32
Thanks for your review.
> 1) Why did you remove initSessionDescriptor for the case where sdp==null?
> 3) Why did you move out all the lines from the no_offer case?
Actually, no_offer case was not well-considered in my code. I've corrected the
code
and send a patch again.
> 2) Why did you comment out this line?
sdpAttirbuteSelection("rtpmap") remains only one rtpmap attribute, but it's not
adequent if multiple codecs were selected.
> Do you think you can streamline the code such that the option evaluation
(with
setting and evaluating UseGSM) will only be contained once?
The basic behavior of GSM usage is not changed from 1.2.1 by my patch.
I think we need discussion about what is user's preference about compressed
audio.
Original comment by tm.in...@gmail.com
on 14 Dec 2009 at 1:49
Attachments:
The code is much clearer now. Please check it in. I'll do some tests with PBXes
before
releasing it.
Original comment by pmerl...@googlemail.com
on 14 Dec 2009 at 4:05
Original comment by pmerl...@googlemail.com
on 14 Dec 2009 at 8:53
Original issue reported on code.google.com by
nio....@gmail.com
on 12 Dec 2009 at 7:05Attachments: