add multiple rtp-ip support to sofia profiles

add extra rtp-ip params to a profile to add more ip which will be used round-robin as new calls progress.
This commit is contained in:
Anthony Minessale
2010-06-10 17:08:29 -05:00
parent 2e347c9326
commit 22569d4ac5
4 changed files with 67 additions and 34 deletions
+7 -1
View File
@@ -437,6 +437,8 @@ typedef enum {
MEDIA_OPT_BYPASS_AFTER_ATT_XFER = (1 << 1)
} sofia_media_options_t;
#define MAX_RTPIP 50
struct sofia_profile {
int debug;
char *name;
@@ -446,7 +448,9 @@ struct sofia_profile {
char *context;
char *shutdown_type;
char *extrtpip;
char *rtpip;
char *rtpip[MAX_RTPIP];
uint32_t rtpip_index;
uint32_t rtpip_next;
char *sipip;
char *extsipip;
char *username;
@@ -569,6 +573,7 @@ struct private_object {
uint32_t ssrc;
uint32_t video_ssrc;
sofia_profile_t *profile;
char *sipip;
char *local_sdp_audio_ip;
switch_port_t local_sdp_audio_port;
char *remote_sdp_audio_ip;
@@ -627,6 +632,7 @@ struct private_object {
char *x_freeswitch_support_local;
char *last_sent_callee_id_name;
char *last_sent_callee_id_number;
char *rtpip;
switch_port_t stun_port;
uint32_t stun_flags;
unsigned long rm_rate;