From 1ddc19994f1752687160b782e7bdcfac91680fdd Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 1 Apr 2011 13:07:41 -0500 Subject: [PATCH 1/2] FS-3211 checkin --- conf/lang/he/demo/demo-ivr.xml | 148 ++++++++++++ conf/lang/he/demo/demo.xml | 71 ++++++ conf/lang/he/dir/sounds.xml | 121 ++++++++++ conf/lang/he/he.xml | 7 + conf/lang/he/vm/sounds.xml | 404 +++++++++++++++++++++++++++++++++ 5 files changed, 751 insertions(+) create mode 100644 conf/lang/he/demo/demo-ivr.xml create mode 100644 conf/lang/he/demo/demo.xml create mode 100644 conf/lang/he/dir/sounds.xml create mode 100644 conf/lang/he/he.xml create mode 100644 conf/lang/he/vm/sounds.xml diff --git a/conf/lang/he/demo/demo-ivr.xml b/conf/lang/he/demo/demo-ivr.xml new file mode 100644 index 0000000000..ec7d7bccd2 --- /dev/null +++ b/conf/lang/he/demo/demo-ivr.xml @@ -0,0 +1,148 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/conf/lang/he/demo/demo.xml b/conf/lang/he/demo/demo.xml new file mode 100644 index 0000000000..e3e6f02142 --- /dev/null +++ b/conf/lang/he/demo/demo.xml @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/conf/lang/he/dir/sounds.xml b/conf/lang/he/dir/sounds.xml new file mode 100644 index 0000000000..15ecec304a --- /dev/null +++ b/conf/lang/he/dir/sounds.xml @@ -0,0 +1,121 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/conf/lang/he/he.xml b/conf/lang/he/he.xml new file mode 100644 index 0000000000..006195bf9a --- /dev/null +++ b/conf/lang/he/he.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/conf/lang/he/vm/sounds.xml b/conf/lang/he/vm/sounds.xml new file mode 100644 index 0000000000..5a090411d7 --- /dev/null +++ b/conf/lang/he/vm/sounds.xml @@ -0,0 +1,404 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From e177d377aa0f64e58bc486b1d5e8473c12fd3931 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 1 Apr 2011 13:20:35 -0500 Subject: [PATCH 2/2] FS-3214 try this --- src/mod/endpoints/mod_sofia/sofia.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 12f1b233fc..23f1fd0e88 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -4928,7 +4928,11 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status, match = sofia_glue_negotiate_sdp(session, r_sdp); } - if (match) { + if (!match) { + if (switch_channel_get_state(channel) != CS_NEW) { + nua_respond(tech_pvt->nh, SIP_488_NOT_ACCEPTABLE, TAG_END()); + } + } else { nua_handle_t *bnh; sip_replaces_t *replaces; su_home_t *home = NULL; @@ -4936,6 +4940,8 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status, sofia_set_flag_locked(tech_pvt, TFLAG_READY); if (switch_channel_get_state(channel) == CS_NEW) { switch_channel_set_state(channel, CS_INIT); + } else { + nua_respond(tech_pvt->nh, SIP_200_OK, TAG_END()); } sofia_set_flag(tech_pvt, TFLAG_SDP); if (replaces_str) {