Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to add parameter to generated SipServletRequest

 
alp carsikarsi
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

May i learn how to add parameter to generated SipServletRequest's via header.
I want to add rport parameter to via header.

Here is my sample invite message.



Thanks a lot.
[ November 21, 2008: Message edited by: alp carsikarsi ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since SipServlet is not part of the servlet spec, I think it would be better not to discuss it in this forum.

I'm going to move this to our Other Java API forum for you.
 
alp carsikarsi
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok Ben Thanks. I thought Sip Servlet is a Servlet and related issues could discuss in Servlet forum.
 
alp carsikarsi
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried to add via parameter to my generated Invite message but i got the "java.lang.IllegalArgumentException: You can not modify a system header! " exception..
What can i do about this problem ?

 
alp carsikarsi
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
VIA header is a system header and according to JSR 289, application can
not modify system headers except CONTACT header when the request method
is REGISTER and in some more cases.

But i need to add rport parameter to via header.
What can i do ?
May be adding rport parameter to via is configurable thing. May it be ?

Regards...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!