Hi Mikko,
The forceClientRport parameter is checked when a request is received, if set to
true it ensures that the response will be sent to port on which request has been
received.
In your case, I think that you want cipango to add the rport parameter to
request sent by Cipango. For this, you should apply the joined patch on Cipango
source code.If it fit your needs, please open a new jira issue on
http://jira.cipango.org in order this patch to be included in Cipango.
Regards,
Nicolas
Le 05/10/2012 08:37, Mikko Kaistinen a �crit :
> Hi,
>
> My servlet is acting as proxy server(acting both client and server). Proxy
> tries to send subscribe message to server which is behind firewall to get the
> presence data.
> What I have understand so far that I need to set forceClientRport as true so
> that answer from server gets back to my proxy while there is firewall between
> my proxy and server.
>
> I have also set routeOutgoingRequests as false since other wise subscribe
> request is caught by my own servlet and those won't get delivered to server.
> While I'm using both of these options rport parameter is not present in
> outgoing request and obviously my proxy won't get any answer from server.
>
> Is this correct behaviour or have I misunderstand something?
> --
> You received this message because you are subscribed to the Google Groups
> "cipango-users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/cipango-users/-/919dRNO9I8EJ.
> To post to this group, send email to cipang...@googlegroups.com.
> To unsubscribe from this group, send email to
> cipango-user...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/cipango-users?hl=en.
Index: src/main/config/etc/cipango.xml
===================================================================
--- src/main/config/etc/cipango.xml (revision 822)
+++ src/main/config/etc/cipango.xml (working copy)
@@ -70,6 +70,8 @@
and no ";rport" is given in that Via (RFC 3581), force ";rport=..."
in that Via header anyway so Cipango can route back replies correctly -->
<Set name="forceClientRport">false</Set>
+ <!-- Add the rport parameter in Via header of sent request (RFC 3581) -->
+ <Set name="addLocalRport">true</Set>
</Get>
<!-- Set name="applicationRouter">
Index: src/main/java/org/cipango/server/ConnectorManager.java
===================================================================
--- src/main/java/org/cipango/server/ConnectorManager.java (revision 835)
+++ src/main/java/org/cipango/server/ConnectorManager.java (working copy)
@@ -73,6 +73,7 @@
private int _largeMessageSize = MAX_MESSAGE_SIZE;
private boolean _forceClientRport;
+ private boolean _addLocalRport = false;
public void addConnector(SipConnector connector)
{
@@ -741,5 +742,15 @@
_forceClientRport = forceClientRport;
}
+ public boolean isAddLocalRport()
+ {
+ return _addLocalRport;
+ }
+ public void setAddLocalRport(boolean addLocalRport)
+ {
+ _addLocalRport = addLocalRport;
+ }
+
+
}
Index: src/main/java/org/cipango/server/transaction/ClientTransaction.java
===================================================================
--- src/main/java/org/cipango/server/transaction/ClientTransaction.java (revision 835)
+++ src/main/java/org/cipango/server/transaction/ClientTransaction.java (working copy)
@@ -223,6 +223,9 @@
{
via.addParameter(ID.APP_SESSION_ID_PARAMETER, _request.appSession().getAppId());
}
+
+ if (getServer().getConnectorManager().isAddLocalRport())
+ via.setRport("");
}
public void start() throws IOException
Hi Mikko,
The forceClientRport parameter is checked when a request is received, if set to
true it ensures that the response will be sent to port on which request has been
received.
In your case, I think that you want cipango to add the rport parameter to
request sent by Cipango. For this, you should apply the joined patch on Cipango
source code.If it fit your needs, please open a new jira issue on
http://jira.cipango.org in order this patch to be included in Cipango.
Regards,
Nicolas
Le 05/10/2012 08:37, Mikko Kaistinen a �crit :
> Hi,
>
> My servlet is acting as proxy server(acting both client and server). Proxy
> tries to send subscribe message to server which is behind firewall to get the
> presence data.
> What I have understand so far that I need to set forceClientRport as true so
> that answer from server gets back to my proxy while there is firewall between
> my proxy and server.
>
> I have also set routeOutgoingRequests as false since other wise subscribe
> request is caught by my own servlet and those won't get delivered to server.
> While I'm using both of these options rport parameter is not present in
> outgoing request and obviously my proxy won't get any answer from server.
>
> Is this correct behaviour or have I misunderstand something?
> --
> You received this message because you are subscribed to the Google Groups
> "cipango-users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/cipango-users/-/919dRNO9I8EJ.
> To post to this group, send email to cipang...@googlegroups.com.
> To unsubscribe from this group, send email to
> cipango-user...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/cipango-users?hl=en.
Hi Mikko,
The forceClientRport parameter is checked when a request is received, if set to
true it ensures that the response will be sent to port on which request has been
received.
In your case, I think that you want cipango to add the rport parameter to
request sent by Cipango. For this, you should apply the joined patch on Cipango
source code.If it fit your needs, please open a new jira issue on
http://jira.cipango.org in order this patch to be included in Cipango.
Regards,
Nicolas
Le 05/10/2012 08:37, Mikko Kaistinen a �crit :
> Hi,
>
> My servlet is acting as proxy server(acting both client and server). Proxy
> tries to send subscribe message to server which is behind firewall to get the
> presence data.
> What I have understand so far that I need to set forceClientRport as true so
> that answer from server gets back to my proxy while there is firewall between
> my proxy and server.
>
> I have also set routeOutgoingRequests as false since other wise subscribe
> request is caught by my own servlet and those won't get delivered to server.
> While I'm using both of these options rport parameter is not present in
> outgoing request and obviously my proxy won't get any answer from server.
>
> Is this correct behaviour or have I misunderstand something?
> --
> You received this message because you are subscribed to the Google Groups
> "cipango-users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/cipango-users/-/919dRNO9I8EJ.
> To post to this group, send email to cipang...@googlegroups.com.
> To unsubscribe from this group, send email to
> cipango-user...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/cipango-users?hl=en.
To view this discussion on the web visit https://groups.google.com/d/msg/cipango-users/-/fAYTmA4ErXgJ.
To view this discussion on the web visit https://groups.google.com/d/msg/cipango-users/-/t6k2VjM4Mu8J.
Miko,
--
You received this message because you are subscribed to the Google Groups "cipango-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/cipango-users/-/wIu8-s-tgksJ.
Mikko,
--
You received this message because you are subscribed to the Google Groups "cipango-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/cipango-users/-/LIMG2g4r6FYJ.
Mikko,
--
You received this message because you are subscribed to the Google Groups "cipango-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/cipango-users/-/feOsHKms0UoJ.