Closed GoogleCodeExporter closed 9 years ago
Original comment by pmerl...@googlemail.com
on 21 Jan 2010 at 2:43
Can you find out which lines (the branch or the via) are the relevant ones of
your
patch for freephonie, please?
Original comment by pmerl...@googlemail.com
on 21 Jan 2010 at 9:33
Sure, I'll have a look.
Original comment by lambert.sartory
on 21 Jan 2010 at 9:38
I tried reducing the condition to the branch part, but calls are dropped again.
I'm not sure where the problem lies exactly, but freephonie is known for not
following
the standards very closely.
So, the first patch is good I believe. I'm not too fond of kludges like these,
but
freephonie isn't going to change their SIP implementation anytime soon.
Original comment by lambert.sartory
on 21 Jan 2010 at 10:25
Try the following patch:
### Eclipse Workspace Patch 1.0
#P SipUA
Index: src/org/sipdroid/sipua/RegisterAgent.java
===================================================================
--- src/org/sipdroid/sipua/RegisterAgent.java (revision 410)
+++ src/org/sipdroid/sipua/RegisterAgent.java (working copy)
@@ -568,6 +568,7 @@
ViaHeader vh=req.getViaHeader();
String newbranch = SipProvider.pickBranch();
vh.setBranch(newbranch);
+ req.removeViaHeader();
req.addViaHeader(vh);
if (handleAuthentication(respCode, resp, req)) {
Original comment by pmerl...@googlemail.com
on 21 Jan 2010 at 10:27
Original comment by pmerl...@googlemail.com
on 21 Jan 2010 at 10:30
Yes, this patch works indeed !
And it's much cleaner. ;)
Original comment by lambert.sartory
on 21 Jan 2010 at 10:45
[deleted comment]
Original comment by pmerl...@googlemail.com
on 27 Jan 2010 at 10:54
Original issue reported on code.google.com by
lambert.sartory
on 20 Jan 2010 at 10:58Attachments: