23147 Commits

Author SHA1 Message Date
kapil
c6b5bc2bda adding AUDIT for root Packages response code,
adding media_gateway_cmd_handler.c for all commands related  logic/APIs.
adding media_gateway_packages.c to have list of all supported packages.
adding media_gateway_utils.c for all media gateway utility APIs
2012-07-01 12:13:18 +05:30
Mathieu Rene
92af41c0b3 Merge branch 'nsg-4.3' of git.sangoma.com:smg_freeswitch into nsg-4.3 2012-06-29 16:30:54 -04:00
Mathieu Rene
658ce0ba91 work out contexts, cleanup rtp endpoint in preparation for mg-based setup 2012-06-29 16:30:51 -04:00
Anthony Minessale
5f09b40381 add sip_recovery_break_rfc variable to set globally or per channel to not reverse the from and 2 on uas re-invites 2012-06-29 14:41:06 -05:00
Brian West
13068f1783 allow silence for moh type on campon 2012-06-29 16:14:46 -05:00
David Yat Sin
24a458683a Skip filling locPtyNum if caller_data->loc.digits is NULL 2012-06-29 12:54:09 -04:00
Anthony Minessale
7ec8fb43d4 add initial-event-threads to switch.conf.xml 2012-06-29 11:39:49 -05:00
kapil
cd61d0b59e adding code to send error response back to MG stack,in case of any app
failure
2012-06-29 21:51:15 +05:30
Anthony Minessale
dca6e2bb8e FS-4359 --resolve 2012-06-28 12:12:44 -05:00
Anthony Minessale
848f05fb41 FS-3659 this fixes sub issue, this should have been a new jira ticket 2012-06-28 14:02:02 -05:00
Anthony Minessale
ed6e7b9fc0 if valid_terminators string starts with = it implies one of them must be typed 2012-06-28 13:17:57 -05:00
Anthony Minessale
1330ad9cf4 FS-4363 try this 2012-06-28 10:21:08 -05:00
Anthony Minessale
8850c1d5e5 moot leak in logger since it only happens on shutdown 1/10 times but hey, lets fix it 2012-06-28 10:10:30 -05:00
Michael S Collins
59f38f1362 Misspelled filename in phrase_en.xml 2012-06-27 16:39:01 -07:00
Travis Cross
7978bd8921 Don't truncate 5-digit port numbers
The adj_port buffer was only 5 bytes wide, so we were truncating any
port numbers >= 10000 that were written to this variable as snprintf
ensures the last byte is null.

FS-4354 --resolve
2012-06-27 20:17:08 +00:00
Michael Jerris
e9a66618ff FS-4353: missing free from last commit 2012-06-27 15:53:15 -04:00
Anthony Minessale
ed0ab36e2d FS-4353 redirect case 2012-06-27 12:25:03 -05:00
James Zhang
80f72823b3 ss7: add ss7_iam_nature_connection_hex to support Nature of Connection
Indicator in IAM message.
     - ss7_iam_nature_connection_hex is the channel variable to carry
       HEX value from/to IAM message
     - X-FreeTDM-IAM-NATURE-CONN-HEX is the x-header string to carry
       HEX value from/to sip invite message
     - This IE is 8 bit hex, which turns into 2 chars
     - Only Satellite indicator, Continuity check indicator, and Echo
       control device indicator are supported. Spare value are not taken.
       Spare value is always set to all zero.
     - example:
       To set 00010101 (bit H-A), set X-FreeTDM-IAM-NATURE-CONN-HEX string
       value to 15 in the sip invite message to NSG.
       When NSG send out sip invite, if the incoming IAM message comes with
       Nature of Connection IE, NSG will put X-FreeTDM-IAM-NATURE-CONN-HEX
       in the invite x-header. For example, if the IE value is 00001010 in
       the IAM, NSG will send X-FreeTDM-IAM-NATURE-CONN-HEX with value string
       of "0A".
     - Two characters are madatory. "0A" must be specified rather than "A". If
       invalid format or characters are found, this x-header will be ommited.
     - Valid characters include 0-9, A-F, and a-f
2012-06-27 12:31:35 -04:00
Anthony Minessale
b0f53cd625 FS-4353 --resolve this may also fix FS-4079 2012-06-27 09:33:01 -05:00
David Yat Sin
8de2568c3e Merge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3
Conflicts:
	build/modules.conf.in
2012-06-26 21:27:03 -04:00
David Yat Sin
fcaeb37cfd further rollback 2012-06-26 21:25:56 -04:00
Michael S Collins
909fca199d Tweak phrase_en.xml 2012-06-26 16:21:26 -07:00
Stefan Knoblich
c92a55d3f1 ftmod_libpri: Add MSN/DDI filter for incoming calls.
This feature allows ftmod_libpri to ignore calls with non-matching destination number.

You may want to use this on BRI PTMP lines (Point-to-MultiPoint),
to avoid conflicts between your FreeSWITCH server and other devices connected to the line.

The filter is disabled by default (all calls will be accepted),
setting one (or more) "local-number" parameters on the span configuration enables it.

Example configuration snippet:

   <libpri_spans>
      <span name="example01">
         <!-- ... other span settings omitted ... -->
         <param name="local-number" value="123456"/>
         <param name="local-number" value="654321"/>
      </span>
   </libpri_spans>

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-06-26 21:53:20 +02:00
Stefan Knoblich
1ae88d51d0 ftmod_libpri: Move service_change_status_t down into #include guard area.
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-06-26 21:53:20 +02:00
Anthony Minessale
60bb3595fd FS-4313 --resolve 2012-06-26 11:34:24 -05:00
Anthony Minessale
e7f05b49ad FS-4349 try this, it should be a minimal wait since this will poll the socket for 20ms only when there are no events at all and no log data at all 2012-06-26 09:59:00 -05:00
kapil
c82c11b02a adding code to send add response 2012-06-26 17:45:01 +05:30
kapil
e777de3eef adding mg stack add command code and sendign dummy rsp of add 2012-06-26 13:05:23 +05:30
Brian West
7dc9a9cacc FS-3085 --resolve 2012-06-25 15:31:58 -05:00
Anthony Minessale
690cae5de1 FS-4350 --resolve 2012-06-25 11:00:48 -05:00
Jeff Lenk
a97ec71902 fix warnings on windows code verification 2012-06-25 10:06:41 -05:00
kapil
b6737e31a3 adding command handler to handle command indication from megaco stack 2012-06-25 20:07:51 +05:30
Travis Cross
9b79922a51 Retry updating base image
If updating the base image fails, retry a few times.  If that doesn't
work, simply move on; the update usually fails because Debian is
updating its mirrors; it's not important that we be absolutely up to
date.
2012-06-25 08:55:48 +00:00
Travis Cross
5fd025eb66 Update AUTHORS 2012-06-25 08:51:49 +00:00
Travis Cross
b8109bde58 Bootstrap bnlib without warnings or errors 2012-06-25 08:50:00 +00:00
Travis Cross
3b2df07f3e Fix bnlib call to AC_INIT 2012-06-25 08:48:19 +00:00
Travis Cross
95c26f9a6b Remove outdated autoconf tests in bnlib 2012-06-25 08:48:11 +00:00
Travis Cross
f840eecdb8 debian: Add mechanism to specify modules.conf 2012-06-25 07:12:56 +00:00
kapil
e3eed73ecb adding mg and peer profile cleanup code during shutdown and removing
"unused variables" warnings
2012-06-25 12:12:04 +05:30
Travis Cross
3f24ef16b1
Avoid -Wunused-value warning
Don't use the SET_STATUS1 macro as it will always produce this
warning.  It's a rather 'interesting' macro that's probably best
avoided anyway.
2012-06-25 06:41:00 +00:00
Travis Cross
cbde2faab2 Fix confusion between size_t and ssize_t
readfile returns a value of type ssize_t (signed) and returns -1 if an
error occurs.  In auth_readdb_internal, however, we were assigning the
return value of readfile to a variable of type size_t (unsigned), but
then testing this unsigned value to see if it was < 0, a
contradiction.  We would thus simultaneously fail to report the error
in readfile and would end up with a corrupted length value.
2012-06-25 06:38:30 +00:00
Travis Cross
e6629ab5f6 Add missing return statement
sres_cached_answers_sockaddr is supposed to return ENOENT if no cached
records are found.  Because of the missing return statement, however,
it would never do this and would instead return something very likely
to be garbage.
2012-06-25 06:38:30 +00:00
Travis Cross
5077384c5b Remove a contradiction
base64_d returns a value of size_t, which is unsigned.  The value
therefore cannot be less than zero.  The second check testing whether
it is >= INT_MAX is not a contradiction, but it doesn't make any sense
to check for this (as far as I can tell).
2012-06-25 06:38:30 +00:00
Travis Cross
76a26648d4 Remove a tautological conditional
SU_LOG->log_level is declared as unsigned, hence it will always
be >= 0.
2012-06-25 06:38:29 +00:00
Travis Cross
9e52f33d91 Implement MEMLOCK and UNLOCK as functions
Converting these macros to functions declared static inline allow the
C type-checker to work and avoid warnings about unused expression
values.  These warnings break the build with clang.
2012-06-25 06:38:29 +00:00
Travis Cross
c01a142665 Implement su_errno and su_seterrno as functions
This avoid warnings about expressions with unused values.  These
warnings break the build with clang.

An optimizing compiler should still inline these calls.  If that turns
out not to happen on some platform, we could rename the functions used
internally and declare them static inline.
2012-06-25 06:38:29 +00:00
Travis Cross
43f2c89a08 Fix memset calls in sofia-sip
These calls were zeroing only a pointer's worth of memory rather than
the actual size of the objects.
2012-06-25 06:38:29 +00:00
Anthony Minessale
7086a92f9b FS-4318 try this, success is 0 so that original patch was wrong 2012-06-24 15:05:59 -05:00
Travis Cross
ee8c9e869b Fix clang warnings in mod_lua 2012-06-24 09:13:21 +00:00
Travis Cross
12efacb3c6 debian: Add mechanism to set C/C++ compiler 2012-06-24 08:49:59 +00:00