- 1x rtpengine1 hosted on first server with kamailio server.
- Private ip : 192.168.1.41
- Public ip : public_ip_address
- 1x rtpengine2 hosted on a second server
- Private ip : 192.168.1.33
- Public ip : public_ip_address
INSERT INTO `rtpengine` (`id`, `setid`, `url`, `weight`, `disabled`, `stamp`) VALUES
- ???? Do I need to have a second public IP for the second rtpengine server ??????? to enable audio routing ?? or could I use port forward to use same public_ip_address of kamailio - rtpengine1and use different udp port range for the rtpengine2 ??
Are you saying you want to use both instances at the same time, but behind the same public NAT IP address? How would the NAT host know which media streams (on which ports) belong to which rtpengine instance?
So if I understand this right, then yes, either a second public
IP address, or separate port ranges for both instances plus
telling the NAT host which port range belongs to which instance.
- Is there a dispatch command like for asterisk or is there any settings to enable in rtpengine to manage the load, nbr of calls to support ?
There's a few options that make rtpengine handle load
automatically, see the four max-... options at
https://github.com/sipwise/rtpengine/blob/master/etc/rtpengine.conf#L50
(docs are in the man page, or
https://github.com/sipwise/rtpengine/blob/master/daemon/rtpengine.pod).
If one of these limits is exceeded, then rtpengine will start
refusing new calls and (if supported) the SIP proxy will
automatically start going to the next/other rtpengine instance in
the set. (Kamailio supports this, not sure about others.) These
limits can also be adjusted on the fly via rtpengine-ctl.
The same mechanism is also used when the local ports are exhausted.
HTH
Cheers
...- 1x rtpengine1 hosted on first server with kamailio server.
- Private ip : 192.168.1.41
- Public ip : public_ip_address
...- 1x rtpengine2 hosted on a second server
- Private ip : 192.168.1.33
- Public ip : public_ip_address
...INSERT INTO `rtpengine` (`id`, `setid`, `url`, `weight`, `disabled`, `stamp`) VALUES
- ???? Do I need to have a second public IP for the second rtpengine server ??????? to enable audio routing ?? or could I use port forward to use same public_ip_address of kamailio - rtpengine1and use different udp port range for the rtpengine2 ??
Are you saying you want to use both instances at the same time, but behind the same public NAT IP address? How would the NAT host know which media streams (on which ports) belong to which rtpengine instance?
So if I understand this right, then yes, either a second public IP address, or separate port ranges for both instances plus telling the NAT host which port range belongs to which instance.
BY : Yes, I will do both for testing purpose.
- Is there a dispatch command like for asterisk or is there any settings to enable in rtpengine to manage the load, nbr of calls to support ?
There's a few options that make rtpengine handle load
automatically, see the four max-... options at
https://github.com/sipwise/rtpengine/blob/master/etc/rtpengine.conf#L50
(docs are in the man page, or
https://github.com/sipwise/rtpengine/blob/master/daemon/rtpengine.pod).
If one of these limits is exceeded, then rtpengine will start
refusing new calls and (if supported) the SIP proxy will
automatically start going to the next/other rtpengine instance in
the set. (Kamailio supports this, not sure about others.) These
limits can also be adjusted on the fly via rtpengine-ctl.
The same mechanism is also used when the local ports are exhausted.
Kamailio.cfg
loadmodule "rtpengine.so"
modparam("rtpengine", "db_url", DBURL)
modparam("rtpengine", "table_name", "rtpengine")
modparam("rtpengine", "setid_avp", "$avp(setid)")
INSERT INTO `rtpengine` (`id`, `setid`, `url`, `weight`, `disabled`, `stamp`) VALUES
--
You received this message because you are subscribed to a topic in the Google Groups "rtpengine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rtpengine/E2O-2oPGRfk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rtpengine+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rtpengine/4bffac1b-44ea-9383-a04d-64a7a91de84b%40sipwise.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "rtpengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtpengine+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rtpengine/d50319c7-e316-497b-b26a-8a4486e35773n%40googlegroups.com.
BY : Regarding the "setid" this is unclear for me.
- Could I assign more than one rtpengine on same "setid"?
- Can I use "setid" for cluster that means setid=0 and assign 3x rtpengine and setid=1 and assign 1x rtpengine?
- max-sessions = 10???? Is it the max nbr of concurrents call ?
How the RTPENGINE will see each other (OWN & FOREIGN) ?Is there any other config with -interface or other settings.I have seen there is REDIS but poor in information.
There is no call state sharing happening with just the setup you're describing (multiple rtpengine instances being listed in Kamailio). To achieve that you can use Redis to allow multiple rtpengine instances to communicate with each other. This can be done in an active/standby fashion (with Redis replication handling the actual communication - basically rtpengine simply reads call state information from Redis during startup, restores these calls, and then continues normally), or in an active/active fashion using Redis pub/sub keyspace notifications. There's a description here: https://github.com/sipwise/rtpengine/wiki/Redis-keyspace-notifications
Cheers
- How to get the information of the Max-sessions authorized to support for each rtpengine ?
Like this:
$ rtpengine-ctl get maxsessions
Maximum sessions configured on rtpengine: -1
(-1 here meaning unlimited)
Current sessions:
$ rtpengine-ctl get numsessions
Current sessions own: 0
Current sessions foreign: 0
Current sessions total: 0
...
For other things you can query:
$ rtpengine-ctl get help
Available sub-commands at this level:
numsessions
sessions
...
- How to be informed if rtpengine reach the maximum of sessions ? We have seen if rtpengine reached the max-session; The call is accept by kamailio and finally no audio because SDP not processed
...
Mar 29 16:08:14 kamailio /usr/sbin/kamailio[21065]: INFO: {1 2 INVITE nIdGvZZNiFnt3_r0xSIKpQ..} rtpengine [rtpengine.c:2715]: rtpp_function_call(): proxy udp:192.168.1.33:2223 has reached its load limit (Parallel session limit reached) - trying next one
...
kamailio[21065]: INFO: {1 2 INVITE nIdGvZZNiFnt3_r0xSIKpQ..} rtpengine [rtpengine.c:2715]: rtpp_function_call(): proxy udp:127.0.0.1:2223 has reached its load limit (Parallel session limit reached) - trying next one
So here both of your rtpengine instances were "full" hence the SDP was not processed. Obviously you need at least one rtpengine in your set that is able to accept and process the call.
Cheers
--
You received this message because you are subscribed to a topic in the Google Groups "rtpengine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rtpengine/E2O-2oPGRfk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rtpengine+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rtpengine/9973765c-cce2-e22d-7b91-12192d2dc860%40sipwise.com.
- QUESTION : Could we subscribe through websocket to stats then I could catch my datas like maxsessions & numsessions?
I used only one RTPENGINE the second is stopped.
- interface = internal/192.168.1.41;pub1/192.168.1.41!109.136.129.210
If I am not using this setup for "interface" the RTP routing works only on one side (caller from Public IP -> callee behind the NAT)
Then how to add the public and private ip from the second rtpengine2 ?
You need to take care of the networking part of such a setup yourself, as it depends on the environment you're doing this in. For example, if your public IP address is mapped to the first rtpengine, and you want a second rtpengine to be able to act as a fallback in case the first one fails, then you need to make sure that public IP address is re-mapped to the second rtpengine when that failure happens. Rtpengine cannot do this for you.
- Is there any REDIS command to list the keyspace and get datas to check if there is any activity?
See Redis docs. Quickest way is to do something like
redis-cli -n 1 "keys *"
You can also duplicate the keyspace subscription that rtpengine
itself is using (taken from the log):
redis-cli psubscribe "__keyspace@2__:*"
Cheers
--
You received this message because you are subscribed to the Google Groups "rtpengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtpengine+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rtpengine/eeae3ac7-e7c4-4966-aefc-55aaa75a3e51n%40googlegroups.com.

| Best Regards |
rtpengine.conf
- interface = internal/private1;external/private1!public1
- internal/private1 to let UAC on same VLAN to have rtp if I remove it there is no audio for INT-INT ??? please confirm if I am right ?
- external/private1!public1 to let UAC on different network to have the rtp ??? please confirm if I am right ?
Maybe I missed it in the emails, but are you actually telling rtpengine which interface to use in which cases? Rtpengine cannot know nor detect nor guess which interface is appropriate in which cases, so you need to supply two `direction=` flags in the signalling going to rtpengine (at least for the original invite/offer). The first `direction=` corresponds to where the currently processed message comes from, and the second `direction=` belongs to where the message is going.
Cheers
--
You received this message because you are subscribed to a topic in the Google Groups "rtpengine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rtpengine/E2O-2oPGRfk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rtpengine+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rtpengine/62af11ba-7b57-403d-9131-332243b487ebn%40googlegroups.com.

You received this message because you are subscribed to the Google Groups "rtpengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtpengine+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rtpengine/1b597f68-7c39-4a75-83be-095dba7d4a34n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rtpengine/55092e65-77ec-41fd-a349-acd9c23ff5d2n%40googlegroups.com.