23178 Commits

Author SHA1 Message Date
Kapil
245dfc1fd8 adding code to print the Notify/Service-Change response 2012-07-25 15:02:00 -04:00
Kapil
061e082b62 adding "MGC_FAIL" alarm 2012-07-25 13:05:54 -04:00
Kapil
2d9ed21007 adding code to
1) parse incoming MODIFY request for ITO package ,
  2) starting timer based on MGC requested time
  3) on expiry generate Inactivity Notify to MGC
2012-07-25 12:57:42 -04:00
David Yat Sin
4585dbffbb Fixed conflict from previous merge 2012-07-25 11:27:01 -04:00
David Yat Sin
8b0fbe605c Merge branch 'releases.3.5' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3
Conflicts:
	.gitignore
	conf/insideout/autoload_configs/modules.conf.xml
	conf/vanilla/autoload_configs/modules.conf.xml
	src/mod/endpoints/mod_sofia/mod_sofia.h
	src/switch_rtp.c
2012-07-25 11:15:18 -04:00
root
dd0b514741 fixing 32bit specific print warnings 2012-07-25 10:53:07 -04:00
Stefan Knoblich
7a93ae2d95 FreeTDM: Add ftdm_offset_of() and ftdm_container_of() macros.
Might as well import these too...

ftdm_offset_of() - Get offset of member in structure.

ftdm_container_of() - Get pointer to enclosing structure from pointer to structure member.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-25 16:10:35 +02:00
Stefan Knoblich
fb57605df7 ftmod_misdn: Drop custom MIN(),MAX(),CLAMP() macros and use the common ones.
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-25 16:08:51 +02:00
Stefan Knoblich
c3d13d5e00 ftmod_libpri: Drop custom MIN() macro and use common ftdm_min()
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-25 16:07:39 +02:00
Stefan Knoblich
e71bacb2f5 FreeTDM: Add convenience macros ftdm_min(), ftdm_max() and ftdm_clamp().
ftdm_min(x,y) - Returns the smaller of the two values x and y.

ftdm_max(x,y) - Returns the larger of the two values x and y.

ftdm_clamp(val, min, max) - Returns value that is in the range [vmin,vmax].

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-25 14:03:22 +02:00
Stefan Knoblich
7d0dcb6175 ftmod_misdn: Rework mISDN channel de-/activation.
Remove the 'state' variable of per-channel data, use active flag exclusively to track
open/close state.

Add misdn_activate_channel()/misdn_deactivate_channel() helper functions, rename old
one to _misdn_toggle_channel() (internal).

Add _nowait variant of channel de-/activation function, that just sends the mISDN request message.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-25 14:03:22 +02:00
Stefan Knoblich
890ecc6d45 ftmod_isdn: Use span trunk_mode to select default mode and print warning if final modes do not match.
Same as ftmod_libpri.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-25 14:03:22 +02:00
Stefan Knoblich
200438d18f ftmod_isdn: Use ftmod_log_chan(_msg)() and ftdm_strlen_zero().
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-25 14:03:21 +02:00
Stefan Knoblich
9883035bec ftmod_isdn: OpenZAP -> FreeTDM API updates.
Store call CRV in caller_data.call_reference and use call private to hold the
FreeTDM channel object.

Remove isdn_data->channels_{local,remote,outbound}_crv arrays.

Allow (and force) inbound call state transition DIALTONE -> DOWN for
incoming RELEASE COMPLETE messages in NT mode.

Dialtone in NT mode works, everything else needs more testing.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-25 14:03:21 +02:00
Brian West
76ad8c549b preserve transport from records lookup 2012-07-24 19:56:48 -05:00
Michael S Collins
c1c8ddf0bc Create new demo IVR XML and phrases. (New sound files needed.) Update phrase_en.xml to-be-recorded sound files. 2012-07-24 16:36:45 -07:00
Kapil
e5821eeb79 adding code to fill dummy local descriptor sdp to add response 2012-07-24 16:57:09 -04:00
Mathieu Rene
816866e353 Merge branch 'nsg-4.3' of git.sangoma.com:smg_freeswitch into nsg-4.3 2012-07-24 15:13:35 -04:00
Jeff Lenk
17a85ec467 vs2010 reswig 2012-07-24 14:02:02 -05:00
Anthony Minessale
d832b5dfef FS-4453 --resolve this will now cause up to a 20 second timeout waiting for the response and the call will be blocking 2012-07-24 13:45:10 -05:00
Brian West
7f525d5ca9 tcp too yo 2012-07-24 13:24:50 -05:00
Kapil
12e8e481b5 adding API to send "In-Activity" timer expiry NOTIFY to MGC for IT/ITO package 2012-07-24 13:34:02 -04:00
Kapil
390dabb351 Adding code to
1) build NOTIFY command and send to MGC
   2) CLI command to send DTMF NOTIFY Megaco command to MGC
2012-07-24 11:46:50 -04:00
Jeff Lenk
44f74eabb4 FS-4455 try this 2012-07-23 21:44:34 -05:00
Stefan Knoblich
fc9ea9eab0 ftmod_isdn: Handle zero length read correctly.
ftmod_misdn currently returns len == 0 if the incoming message,
that triggered the read() call, does not contain any data.
Users of ftdm_channel_read() need to handle this case, or they
may possibly end up in an endless loop.

This patch reworks the ftdm_channel_read() handling in ftmod_isdn
and prevents it from entering an endless loop. The read error counter
is reset on first sucessful read w/ data.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-24 00:07:41 +02:00
Mathieu Rene
fc4b7bb8da stash fix 2012-07-23 16:57:33 -04:00
Kapil
d7e4b509b6 integrating term/context alloc/delete api to megaco command handler code 2012-07-23 15:24:43 -04:00
Anthony Minessale
134973187a FS-4092 --resolve 2012-07-23 14:03:53 -05:00
Anthony Minessale
ac7e45400f typo 2012-07-23 13:20:06 -05:00
Stefan Knoblich
9c05387735 ftmod_isdn: Fix format string warning(/error).
Use %p for printing pointer address in hex.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-23 19:45:58 +02:00
Anthony Minessale
524468be7b FS-4373 --resolve this is probably the same issue nobody would file a bug about on the mailing list even after I begged them to from last weekend 2012-07-23 11:36:19 -05:00
Kapil
63c53a858b fixing issues found during seagull testing and add single common descriptors api 2012-07-23 12:18:14 -04:00
Seven Du
bd66d7eaa6 show bindings and handlers 2012-07-23 21:15:53 +08:00
Seven Du
49dcd8c889 make erlang log less verbose and add erlang debug on|off to control 2012-07-23 20:26:48 +08:00
Jeff Lenk
b2e28d68b5 fix windows build for last spandsp changes - trivial 2012-07-21 10:18:27 -05:00
Steve Underwood
be6739e198 Updates to spands test data 2012-07-21 21:46:07 +08:00
Steve Underwood
fd8c576c66 Some tidying of the V.17 modem. Brought the modem test programs up to date 2012-07-21 21:17:11 +08:00
Steve Underwood
e58b2e7d97 Some modem cleanups, and movement towards efficient fixed point modem
implementations for platforms with slow floating point
2012-07-21 19:47:45 +08:00
Steve Underwood
5922cb59d5 Merge branch 'master' of git.freeswitch.org:freeswitch 2012-07-21 16:07:24 +08:00
Anthony Minessale
6ec4514c68 FS-4450 this is pre-emptive, This is the only way I can see an endless loop here 2012-07-20 19:15:04 -05:00
Steve Underwood
e9b4a497cc Tweaks 2012-07-21 07:18:27 +08:00
Steve Underwood
b5f7443524 Started introducing T.42 JPEG support for FAXing, but its not plumbed into the
FAX engine yet.
2012-07-21 04:05:40 +08:00
Mathieu Rene
0bb82599c5 Merge branch 'nsg-4.3' of git.sangoma.com:smg_freeswitch into nsg-4.3
Conflicts:
	src/mod/endpoints/mod_media_gateway/media_gateway.c
2012-07-20 14:34:44 -04:00
Mathieu Rene
dd633cfbfd Pre-fill values for rtp terms (local address + reserved rtp port). Add functions to pick rtp term ids, add a memory pool in the termination struct. 2012-07-20 14:33:36 -04:00
Kapil
fffc9d4eec Adding code to print SDP structure 2012-07-20 13:25:16 -04:00
Anthony Minessale
9fe08675a1 add tags to allow crypto in avp 2012-07-20 12:11:02 -05:00
Anthony Minessale
e3a6366782 FS-4420 --resolve 2012-07-20 11:17:45 -05:00
Kapil
96fd063ae3 adding add/mod/sub api and alloc context during add and release context while processing subtract code 2012-07-20 09:58:43 -04:00
Travis Cross
a8019d803c Make version output more human-friendly
Our main version string is designed for release engineering purposes:
it matches file name conventions used for versioned tarballs and the
versions sort lexicographically while containing all pertinent
information.

With this commit we add in parentheses a more human-friendly rendering
of the version string: we spell out the meaning of each field and
render the datetime in RFC 822 notation.
2012-07-20 07:43:26 +00:00
Travis Cross
cae357e784 gitignore some build products 2012-07-20 05:18:04 +00:00