Stefan Knoblich [Fri, 10 Feb 2012 12:29:49 +0000 (13:29 +0100)]
[FreeTDM] Another round of ftdm_log() format string fixes.
Use FTDM_SIZE_FMT where needed, don't treat ftdm_event_t as an int
(even if the e_type enum is the first member), datalen vs. *datalen fix
and other warnings.
All reported by __check_printf() (GCC + __attribute__((format(printf,x,y))) ).
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
#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>
James Zhang [Thu, 9 Feb 2012 16:15:48 +0000 (11:15 -0500)]
freetdm: adding new commands and removing unused ones
- ftdm ss7 show
- ftdm ss7 show span X
- ftdm ss7 show status linkset X
- ftdm ss7 inhibit X
- ftdm ss7 uninhibit X
Stefan Knoblich [Tue, 7 Feb 2012 17:25:29 +0000 (18:25 +0100)]
[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>
Stefan Knoblich [Tue, 7 Feb 2012 15:44:55 +0000 (16:44 +0100)]
[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>
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
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
James Zhang [Thu, 2 Feb 2012 16:38:12 +0000 (11:38 -0500)]
spandsp: fixing t38 with configurable tone type.
- tone_type value is taken from dialplan
t38_gateway function's 2nd parameter
- tone type could be one of
cng|ced_preamble|ans|ans_pr|ansam|preamble
- in dialplan, if enable t38 in ftdm-to-sip,
tone type should be set to "t38_gateway peer cng"
- if enable t38 in sip-to-ftdm,
tone type should be set to "t38_gateway peer ced_preamble"
Moises Silva [Tue, 31 Jan 2012 22:13:10 +0000 (17:13 -0500)]
mod_logfile: Fix compilation that was broken due to previous merge
Note that we no longer use our custom-made log rotation
as the FreeSWITCH mainstream project added that feature
we just re-use the same feature with a different parameter
Moises Silva [Tue, 31 Jan 2012 20:18:53 +0000 (15:18 -0500)]
freetdm: Fix bug in SS7 state processing introduced during the changes
for native bridging that caused infinite SUSPEND state executions
due to peer member not being cleared at the end of the call
Travis Cross [Tue, 31 Jan 2012 18:42:27 +0000 (18:42 +0000)]
fs_cli: make enhanced fs_cli features work on all TERMs
FS-3815 --resolve
This is a workaround for the fact that libedit counts terminal control
characters when calculating the length of the prompt. By not using
absolute positioning, we avoid the issue.
Thanks to Ivan Isaev for the workaround and testing.
James Zhang [Tue, 31 Jan 2012 00:15:02 +0000 (19:15 -0500)]
freetdm: Some more clean up for ss7 event cloning
- The queue size has been bumped again, long calls could potentially require more elements (multiple resume/suspend)
- The queue is only used when there is a call active
FS-3842 here is the from and contact change but I can't remove the user agent but I added a new param to the gateway config called options_user_agent to set something specific
FS-3841 --resolve ok return the string "die" or "exit" from hanguphook to cause an error or call s:destroy("any err message"); either should now halt the script