Commit Graph

20663 Commits

Author SHA1 Message Date
Stefan Knoblich 9d5eb0737b [FreeTDM] Fix a couple of ftdm_log() format string errors.
... that could cause segmentation faults.

Caught while working on __check_printf() support for ftdm_log().

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-02-10 13:24:57 +01:00
Stefan Knoblich 124c04624a [ftmod_misdn] Add missing braces around condition of ternary operator.
For compilers that seem to do the wrong thing(tm).

Speculative fix for:

  segfault at 1 ip b72145d3 sp b58f8bfc error 4 in libc-2.11.3.so

  #0  0xb7a5d5d3 in vfprintf () from /lib/i686/cmov/libc.so.6
  #1  0xb7a7cec7 in vasprintf () from /lib/i686/cmov/libc.so.6
  #2  0xb7dd7c5b in switch_vasprintf (...)
  #3  0xb6296de2 in ftdm_logger (...)
  #4  0xb621625d in misdn_handle_mph_information_ind (...) at ftmod_misdn.c:658

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-02-10 13:22:47 +01:00
Anthony Minessale e6bfa118ec minor presence tweaks 2012-02-09 16:47:32 -06:00
Anthony Minessale d5f47a87ce FS-3794 2012-02-09 12:03:11 -06:00
Anthony Minessale f4774047b8 FS-3894 --resolve 2012-02-09 11:08:52 -06:00
Stefan Knoblich 36b26c51ac [ftmod_misdn] Fix a couple of ftdm_log() printf format errors
Also adds a local ftdm_channel_get_type_str() helper.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-02-09 12:58:59 +01:00
Anthony Minessale 4c07a00ad7 FS-3883 can you see if this helps 2012-02-08 16:52:13 -06:00
Anthony Minessale 77b8c0785c FS-3882 please try this patch 2012-02-08 12:11:15 -06:00
David Yat Sin 9de1e1ad67 freetdm - disabled dtmf detect duration by default 2012-02-07 14:36:22 -05:00
David Yat Sin c5cc318afa Merge branch 'master' of ssh://git.freeswitch.org:222/freeswitch 2012-02-07 14:28:58 -05:00
David Yat Sin 1377b9c84d freetdm: support for dtmf_on_start 2012-02-07 14:28:47 -05:00
Anthony Minessale 9a8524924a FS-3889 --resolve 2012-02-07 13:03:55 -06:00
Michael S Collins 18289fa013 mod_voicemail: Change vm_announce_cid to be true/false and utilize vm_play_phone_number_macro 2012-02-07 10:22:35 -08:00
Stefan Knoblich 4bb1ab0113 [ftmod_misdn] Add some TODO items at the top of ftmod_misdn.c.
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-02-07 18:39:11 +01:00
Stefan Knoblich 810f0d4eaa [ftmod_misdn] Make misdn_handle_mph_information_ind() cope with hfcsusb-style MPH_INFORMATION_IND messages.
Only two mISDN hardware drivers emit MPH_INFORMATION_IND messages and both use a different payload:

	- hfcsusb (HFC-based USB dongle) sends a set of ph_info + ph_info_ch structures
	  which contain the complete state information of the port
	  (including internal hw-specific state and flags).

	- hfcmulti which sends a single integer, a single L1_SIGNAL_* event.

We now try to guess the type of message from the payload length.

The hfcmulti signals are converted to FreeTDM alarm flags; the hfcsusb
state/flags are defined in kernel internal hw-specific headers and are ignored ATM (todo).

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-02-07 18:39:11 +01:00
Stefan Knoblich 452c13573d [ftmod_misdn] Include mISDN message primitive id in channel activation log messages.
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-02-07 18:39:11 +01:00
Stefan Knoblich fd3ebc7ae3 [ftmod_misdn] Handle MPH_INFORMATION_IND during channel activation.
Add MISDN_MSG_DATA() helper macro for easy access to mISDN message
payload.

Add forward declaration of misdn_handle_mph_information_ind() and use
it in misdn_activate_channel().

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-02-07 18:39:11 +01:00
Stefan Knoblich 9e0928a7ea [ftmod_misdn] Undefine MISDN_CONTROL_TYPE helper macro after use.
No reason to keep it around for longer.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-02-07 18:39:11 +01:00
Stefan Knoblich b6ec127194 [ftmod_misdn] Extend misdn_event_types[] and use a helper macro.
Add missing mISDN event/message types (e.g. MPH_INFORMATION_IND)
and use a helper macro (MISDN_EVENT_TYPE) to define the entries,
like we already do for misdn_control_types[].

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-02-07 18:39:11 +01:00
Anthony Minessale a14c46c38c FS-3886 --resolve 2012-02-07 11:25:23 -06:00
Anthony Minessale 9b02315282 add presence-disable-early sofia option to send non-specifc presence messages w/o special case for early 2012-02-07 11:10:51 -06:00
Christopher Rienzo 8f05f098cf use union sigval instead of sigval_t for mod_posix_timer 2012-02-07 16:45:54 +00:00
Christopher Rienzo 1815d4d06f use correct #includes for posix timer API 2012-02-07 16:29:15 +00:00
Anthony Minessale d2c9fb5f7d FS-3878 --resolve 2012-02-06 14:12:22 -06:00
Anthony Minessale e5d1dd7529 FS-3879 --resolve 2012-02-06 12:02:48 -06:00
Anthony Minessale 9b086c4bea FS-3881 try this, i think the contact in the notify is causing the phone to change the destination for future subs 2012-02-06 11:59:57 -06:00
Jeff Lenk 6767683711 FS-3862 --resolve 2012-02-04 10:19:21 -06:00
Steve Underwood 8b3dd5cc1c Fixed issue where junk T.38 received after a FAX exchange is totally completed
s not simply ignored.
2012-02-04 20:33:06 +08:00
Brian West 65fc2f8ac1 clean up switch.conf and add all the missing options needs more docs 2012-02-03 23:40:53 -06:00
Anthony Minessale 1015883e1b commenting this out completely until a better solution is implemented. also FYI you should be refreshing .update on each commit that changes the lib or any of its mods to force a rebuild from the top level 2012-02-03 15:23:46 -06:00
David Yat Sin 2ea5686e4d freetdm: DTMF duration not checked if duration is set to zero 2012-02-03 14:20:08 -05:00
Anthony Minessale 320d04a9f8 remove warning 2012-02-03 11:50:24 -06:00
Anthony Minessale 451e3eaa1f FS-3858 --resolve there we go that's the detail we needed 2012-02-03 11:21:40 -06:00
Anthony Minessale 32c73c0825 FS-3873 --resolve cool someone is finally testing it 2012-02-03 11:05:22 -06:00
Anthony Minessale 7f5b8fba55 FS-3794 this bug haunts me 2012-02-02 20:41:15 -06:00
Anthony Minessale d79d15d43a FS-3865 --resolve 2012-02-02 20:20:38 -06:00
Anthony Minessale 74e07f8af1 FS-3864 --resolve no philosophical constraint here. Just saying since FS is a b2bua the message really does terminate at US but its find to do 202 per this patch 2012-02-02 20:00:46 -06:00
Anthony Minessale 018c784431 FS-3794 contd 2012-02-02 19:58:39 -06:00
Anthony Minessale ee3e450425 FS-3869 --resolve 2012-02-02 18:47:04 -06:00
Anthony Minessale a72fb34f92 FS-3872 --resolve 2012-02-02 17:38:08 -06:00
Anthony Minessale 12907b454c FS-3868 --resolve 2012-02-02 16:18:45 -06:00
Michael S Collins 435879d613 Merge branch 'master' of ssh://git.freeswitch.org:222/freeswitch 2012-02-02 13:10:14 -08:00
Michael S Collins e64b988c19 update unrecorded sound prompts 2012-02-02 13:10:04 -08:00
Anthony Minessale 23dcdbd8d1 produce sip_full_via var 2012-02-02 15:09:32 -06:00
Michael S Collins eb93c17df2 Update ChangeLog thru Nov 30 (more coming) 2012-02-02 13:08:00 -08:00
Anthony Minessale 63c3ec6774 FS-3870 --resolve that is amazing that nobody found this before, we've probably been vulnerable to that bug for years 2012-02-02 13:54:22 -06:00
Anthony Minessale 27221fa4d3 fix sql stmt 2012-02-02 13:54:18 -06:00
Anthony Minessale 8d97aeff69 FS-3794 i'm starting to loathe this bug id 2012-02-02 12:05:15 -06:00
Anthony Minessale eeb9851028 fix seg 2012-02-02 10:21:04 -06:00
Anthony Minessale 80050b5b27 FS-3794 sekil can you test this one 2012-02-01 19:32:29 -06:00