diff options
Diffstat (limited to 'java/gov/nist/javax/sip')
-rw-r--r-- | java/gov/nist/javax/sip/header/Via.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/java/gov/nist/javax/sip/header/Via.java b/java/gov/nist/javax/sip/header/Via.java index 2253394..be40962 100644 --- a/java/gov/nist/javax/sip/header/Via.java +++ b/java/gov/nist/javax/sip/header/Via.java @@ -96,6 +96,8 @@ public class Via */ protected String comment; + private boolean rPortFlag = false; + /** Default constructor */ public Via() { @@ -265,6 +267,7 @@ public class Via if (comment != null) { buffer.append(SP).append(LPAREN).append(comment).append(RPAREN); } + if (rPortFlag) buffer.append(";rport"); return buffer; } @@ -324,11 +327,7 @@ public class Via * Set the RPort flag parameter */ public void setRPort(){ - try { - this.setParameter(Via.RPORT,""); - } catch (ParseException e) { - e.printStackTrace(); // should not occur - } + rPortFlag = true; } /** |