Hi,
I am trying to run multiple different instances of openser on the same server using different ports. Regardless of receiving INVITE on any of the ports (5061, 5062, ...) I want openser always to proxy the message to port 5060.
invite:5061 ---> openser --> invite:5060 invite:5062 ---> openser --> invite:5060
By adding two listen ports as follow, openser sends the traffic to the same outgoing port as the incoming port:
listen=udp:209.16.123.160:5061 listen=udp:209.16.123.160:5062
Is there a way to hard code the outgoing port? or I should overwrite the port?
Thanks, R
Hi,
try using force_send_socket but you'll have to declare the socket with 5060 as well
http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:3.0.x#force_send_soc...
Cheers, Uriel
On Mon, Jul 26, 2010 at 5:38 PM, Robert R rob1485@gmail.com wrote:
Hi,
I am trying to run multiple different instances of openser on the same server using different ports. Regardless of receiving INVITE on any of the ports (5061, 5062, ...) I want openser always to proxy the message to port 5060.
invite:5061 ---> openser --> invite:5060 invite:5062 ---> openser --> invite:5060
By adding two listen ports as follow, openser sends the traffic to the same outgoing port as the incoming port:
listen=udp:209.16.123.160:5061 listen=udp:209.16.123.160:5062
Is there a way to hard code the outgoing port? or I should overwrite the port?
Thanks, R
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi,
Thanks for your response: When using the function you suggested:
listen=udp:192.168.1.111:5061 listen=udp:192.168.1.111:5062 .....
force_send_socket(192.168.1.111:5060); ...
I am getting the following error message:
Jul 27 09:45:07 lab-openser01 /usr/sbin/openser[8861]: ERROR:core:fix_actions: bad force_send_socket argument: 209.16.123.111:5060 (ser doesn't listen on it) Jul 27 09:45:07 lab-openser01 /usr/sbin/openser[8861]: ERROR:core:fix_actions: fixing failed (code=-476) at cfg line 332 Jul 27 09:45:07 lab-openser01 /usr/sbin/openser[8861]: ERROR:core:main: failed to fix configuration with err code -476
As I mentioned I am trying to run multiple instances of openser with diff ports and proxy all traffic coming from diff ports to a fix port 5060. Domains are set within a perl script.
PS: I am using openser 1.3 release within ubuntu OS.
Thanks, R
Date: Mon, 26 Jul 2010 17:55:54 -0300 From: uriel.rozenbaum@gmail.com To: rob1485@gmail.com CC: users@lists.kamailio.org Subject: Re: [SR-Users] multiple instances on different ports
Hi,
try using force_send_socket but you'll have to declare the socket with 5060 as well
http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:3.0.x#force_send_soc...
Cheers, Uriel
On Mon, Jul 26, 2010 at 5:38 PM, Robert R rob1485@gmail.com wrote:
Hi,
I am trying to run multiple different instances of openser on the same server using different ports. Regardless of receiving INVITE on any of the ports (5061, 5062, ...) I want openser always to proxy the message to port 5060.
invite:5061 ---> openser --> invite:5060 invite:5062 ---> openser --> invite:5060
By adding two listen ports as follow, openser sends the traffic to the same outgoing port as the incoming port:
listen=udp:209.16.123.160:5061 listen=udp:209.16.123.160:5062
Is there a way to hard code the outgoing port? or I should overwrite the port?
Thanks, R
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_________________________________________________________________ Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:W...
Hi,
As it is stated on the documentation, force_send_socket() can only take a listening interface as an argument.
Try adding listen=udp:192.168.1.111:5060
Cheers, Uriel
On Tue, Jul 27, 2010 at 10:51 AM, Alex rsm alex-rsm@hotmail.com wrote:
Hi,
Thanks for your response: When using the function you suggested:
listen=udp:192.168.1.111:5061 listen=udp:192.168.1.111:5062 .....
force_send_socket(192.168.1.111:5060); ...
I am getting the following error message:
Jul 27 09:45:07 lab-openser01 /usr/sbin/openser[8861]: ERROR:core:fix_actions: bad force_send_socket argument: 209.16.123.111:5060 (ser doesn't listen on it) Jul 27 09:45:07 lab-openser01 /usr/sbin/openser[8861]: ERROR:core:fix_actions: fixing failed (code=-476) at cfg line 332 Jul 27 09:45:07 lab-openser01 /usr/sbin/openser[8861]: ERROR:core:main: failed to fix configuration with err code -476
As I mentioned I am trying to run multiple instances of openser with diff ports and proxy all traffic coming from diff ports to a fix port 5060. Domains are set within a perl script.
PS: I am using openser 1.3 release within ubuntu OS.
Thanks, R
Date: Mon, 26 Jul 2010 17:55:54 -0300 From: uriel.rozenbaum@gmail.com To: rob1485@gmail.com CC: users@lists.kamailio.org Subject: Re: [SR-Users] multiple instances on different ports
Hi,
try using force_send_socket but you'll have to declare the socket with 5060 as well
http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:3.0.x#force_send_soc...
Cheers, Uriel
On Mon, Jul 26, 2010 at 5:38 PM, Robert R rob1485@gmail.com wrote:
Hi,
I am trying to run multiple different instances of openser on the same server using different ports. Regardless of receiving INVITE on any of the ports (5061, 5062, ...) I want openser always to proxy the message to port 5060.
invite:5061 ---> openser --> invite:5060 invite:5062 ---> openser --> invite:5060
By adding two listen ports as follow, openser sends the traffic to the same outgoing port as the incoming port:
listen=udp:209.16.123.160:5061 listen=udp:209.16.123.160:5062
Is there a way to hard code the outgoing port? or I should overwrite the port?
Thanks, R
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. Learn more.
I believe the issue is that he is trying to take requests on one kamailio instance (5061) and send them out as if they came from the other kamailio instance (5060) to 'normalize' the responses back through just 5060.
Either I am not interprting correctly or there is a major design flaw here.
On 7/27/10, Uriel Rozenbaum uriel.rozenbaum@gmail.com wrote:
Hi,
As it is stated on the documentation, force_send_socket() can only take a listening interface as an argument.
Try adding listen=udp:192.168.1.111:5060
Cheers, Uriel
On Tue, Jul 27, 2010 at 10:51 AM, Alex rsm alex-rsm@hotmail.com wrote:
Hi,
Thanks for your response: When using the function you suggested:
listen=udp:192.168.1.111:5061 listen=udp:192.168.1.111:5062 .....
force_send_socket(192.168.1.111:5060); ...
I am getting the following error message:
Jul 27 09:45:07 lab-openser01 /usr/sbin/openser[8861]: ERROR:core:fix_actions: bad force_send_socket argument: 209.16.123.111:5060 (ser doesn't listen on it) Jul 27 09:45:07 lab-openser01 /usr/sbin/openser[8861]: ERROR:core:fix_actions: fixing failed (code=-476) at cfg line 332 Jul 27 09:45:07 lab-openser01 /usr/sbin/openser[8861]: ERROR:core:main: failed to fix configuration with err code -476
As I mentioned I am trying to run multiple instances of openser with diff ports and proxy all traffic coming from diff ports to a fix port 5060. Domains are set within a perl script.
PS: I am using openser 1.3 release within ubuntu OS.
Thanks, R
Date: Mon, 26 Jul 2010 17:55:54 -0300 From: uriel.rozenbaum@gmail.com To: rob1485@gmail.com CC: users@lists.kamailio.org Subject: Re: [SR-Users] multiple instances on different ports
Hi,
try using force_send_socket but you'll have to declare the socket with 5060 as well
http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:3.0.x#force_send_soc...
Cheers, Uriel
On Mon, Jul 26, 2010 at 5:38 PM, Robert R rob1485@gmail.com wrote:
Hi,
I am trying to run multiple different instances of openser on the same server using different ports. Regardless of receiving INVITE on any of the ports (5061, 5062, ...) I want openser always to proxy the message to port 5060.
invite:5061 ---> openser --> invite:5060 invite:5062 ---> openser --> invite:5060
By adding two listen ports as follow, openser sends the traffic to the same outgoing port as the incoming port:
listen=udp:209.16.123.160:5061 listen=udp:209.16.123.160:5062
Is there a way to hard code the outgoing port? or I should overwrite the port?
Thanks, R
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. Learn more.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
yes, you're right. I am trying to take request from instance (5061) and send them out as if they came from instance (5060).
I've tried using force_send_socket( ) and/or rewriteport( ) functions and still unable to resolve it.
####### Global Parameters #########
listen=udp:192.168.1.1:5060
listen=udp:192.168.1.1:5061
####### Routing Logic ########
force_send_socket(192.168.1.1:5060);
("5060")
Thanks,
R
Date: Tue, 27 Jul 2010 17:32:15 -0400 Subject: Re: [SR-Users] multiple instances on different ports From: geoffreymina@gmail.com To: uriel.rozenbaum@gmail.com; alex-rsm@hotmail.com; users@lists.kamailio.org
I believe the issue is that he is trying to take requests on one kamailio instance (5061) and send them out as if they came from the other kamailio instance (5060) to 'normalize' the responses back through just 5060.
Either I am not interprting correctly or there is a major design flaw here.
On 7/27/10, Uriel Rozenbaum uriel.rozenbaum@gmail.com wrote:
Hi,
As it is stated on the documentation, force_send_socket() can only take a listening interface as an argument.
Try adding listen=udp:192.168.1.111:5060
Cheers, Uriel
On Tue, Jul 27, 2010 at 10:51 AM, Alex rsm alex-rsm@hotmail.com wrote:
Hi,
Thanks for your response: When using the function you suggested:
listen=udp:192.168.1.111:5061 listen=udp:192.168.1.111:5062 .....
force_send_socket(192.168.1.111:5060); ...
I am getting the following error message:
Jul 27 09:45:07 lab-openser01 /usr/sbin/openser[8861]: ERROR:core:fix_actions: bad force_send_socket argument: 209.16.123.111:5060 (ser doesn't listen on it) Jul 27 09:45:07 lab-openser01 /usr/sbin/openser[8861]: ERROR:core:fix_actions: fixing failed (code=-476) at cfg line 332 Jul 27 09:45:07 lab-openser01 /usr/sbin/openser[8861]: ERROR:core:main: failed to fix configuration with err code -476
As I mentioned I am trying to run multiple instances of openser with diff ports and proxy all traffic coming from diff ports to a fix port 5060. Domains are set within a perl script.
PS: I am using openser 1.3 release within ubuntu OS.
Thanks, R
Date: Mon, 26 Jul 2010 17:55:54 -0300 From: uriel.rozenbaum@gmail.com To: rob1485@gmail.com CC: users@lists.kamailio.org Subject: Re: [SR-Users] multiple instances on different ports
Hi,
try using force_send_socket but you'll have to declare the socket with 5060 as well
http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:3.0.x#force_send_soc...
Cheers, Uriel
On Mon, Jul 26, 2010 at 5:38 PM, Robert R rob1485@gmail.com wrote:
Hi,
I am trying to run multiple different instances of openser on the same server using different ports. Regardless of receiving INVITE on any of the ports (5061, 5062, ...) I want openser always to proxy the message to port 5060.
invite:5061 ---> openser --> invite:5060 invite:5062 ---> openser --> invite:5060
By adding two listen ports as follow, openser sends the traffic to the same outgoing port as the incoming port:
listen=udp:209.16.123.160:5061 listen=udp:209.16.123.160:5062
Is there a way to hard code the outgoing port? or I should overwrite the port?
Thanks, R
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. Learn more.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Sent from my mobile device
_________________________________________________________________ Hotmail is redefining busy with tools for the New Busy. Get more from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:W...