Moises Silva
a2b4369cc2
replace all malloc calls to zap_malloc
...
git-svn-id: http://svn.openzap.org/svn/openzap/branches/sangoma_boost@862 a93c3328-9c30-0410-af19-c9cd2b2d52af
2009-11-15 02:14:50 +00:00
Brian West
e2004e2d34
fix vim format line
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@833 a93c3328-9c30-0410-af19-c9cd2b2d52af
2009-09-14 22:06:20 +00:00
Stefan Knoblich
dbe8b148f4
- WARNING - Add STATUS ENQUIRY message handling to ozmod_isdn, this is a bad hack because the current OpenZAP isdn stack is not stateful (the experimental rewritten version is...) and so we have to try to map OpenZAP channel states to ISDN states, which is not possible in all cases. This patch (as long as it sends the right answer) prevents sudden disconnects of (active) calls, caused by not responding to a STATUS ENQUIRY message from the other side. - WARNING -
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@754 a93c3328-9c30-0410-af19-c9cd2b2d52af
2009-07-03 09:24:52 +00:00
Michael Jerris
b9856d40dc
fix windows export for data objects
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@745 a93c3328-9c30-0410-af19-c9cd2b2d52af
2009-06-09 21:17:30 +00:00
Michael Collins
e4ed6a4fa3
Add Doxygen comments. Thanks Francois.
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@741 a93c3328-9c30-0410-af19-c9cd2b2d52af
2009-06-08 20:01:29 +00:00
Stefan Knoblich
59fa196533
Add ZAP_TON_* (taken from Q931.h, drop Q921.h and Q931.h include from openzap.h and fixup all users of the old Q931_TON_ enum values)
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@707 a93c3328-9c30-0410-af19-c9cd2b2d52af
2009-04-08 21:58:51 +00:00
Stefan Knoblich
03dbc587fd
Port mrene's changes to ozmod_isdn:
...
Add "opts" parameter to span definition in pri_spans (removing suggest-channel parameter)
Possible options are:
suggest_channel - No idea what this one actually does...
disable_tones - Disable tone generating thread in NT (net) mode
omit_display - Disable sending caller name in call setup message (Display IE)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@702 a93c3328-9c30-0410-af19-c9cd2b2d52af
2009-03-19 23:06:04 +00:00
Stefan Knoblich
c30aac4629
Merge "interval == 0" workaround from personal rework branch, still need to investigate why wanpipe does not provide this information (and if 20ms is a good default value)
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@699 a93c3328-9c30-0410-af19-c9cd2b2d52af
2009-03-16 21:04:22 +00:00
Anthony Minessale
d0b8ab1502
change logic to declinatio mortuus obfirmo
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@698 a93c3328-9c30-0410-af19-c9cd2b2d52af
2009-03-13 18:52:35 +00:00
Anthony Minessale
8b55cdd249
try to recover from alarm better
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@697 a93c3328-9c30-0410-af19-c9cd2b2d52af
2009-03-12 17:22:03 +00:00
Michael Jerris
1a7fc3bf61
src/ozmod/ozmod_isdn/ozmod_isdn.c:1460: warning: missing braces around initializer
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@692 a93c3328-9c30-0410-af19-c9cd2b2d52af
2009-03-10 20:09:50 +00:00
Michael Jerris
645e7e77e3
src/ozmod/ozmod_isdn/ozmod_isdn.c:1460: warning: missing braces around initializer
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@691 a93c3328-9c30-0410-af19-c9cd2b2d52af
2009-03-10 20:07:22 +00:00
Michael Jerris
1a87e3b3c0
cleanup msvc build and fix msvc build warnings
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@689 a93c3328-9c30-0410-af19-c9cd2b2d52af
2009-03-10 17:42:49 +00:00
Michael Jerris
0a3d9653dd
build: add signaling mods to windows build (OPENZAP-55)
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@686 a93c3328-9c30-0410-af19-c9cd2b2d52af
2009-03-09 20:20:00 +00:00
Michael Jerris
af8c1bc336
build: add signaling mods to windows build (OPENZAP-55)
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@685 a93c3328-9c30-0410-af19-c9cd2b2d52af
2009-03-09 20:02:33 +00:00
Helmut Kuper
6b5e1c48a9
Added timestamp for Q931ToPcap
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@673 a93c3328-9c30-0410-af19-c9cd2b2d52af
2009-02-25 09:49:54 +00:00
Stefan Knoblich
2505bfd29f
[ozmod_isdn] Backport fix from rework branch: use channel flag rather than CRVFlag to properly release channels in ZAP_CHANNEL_STATE_DOWN transition
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@662 a93c3328-9c30-0410-af19-c9cd2b2d52af
2009-02-11 16:04:30 +00:00
Michael Jerris
f8a3e20f29
working libpcap detection
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@640 a93c3328-9c30-0410-af19-c9cd2b2d52af
2009-02-03 17:00:13 +00:00
Helmut Kuper
5da3ac8de6
Q931ToPcap: Changed predefined ethernet frames in writeQ931... function from local to global variables.
...
This should speed things up a bit.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@631 a93c3328-9c30-0410-af19-c9cd2b2d52af
2009-01-31 10:23:23 +00:00
Helmut Kuper
25d82076ee
Deleted some unneeded includes
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@629 a93c3328-9c30-0410-af19-c9cd2b2d52af
2009-01-30 11:44:03 +00:00
Helmut Kuper
eb24f46932
Q931ToPcap patch
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@628 a93c3328-9c30-0410-af19-c9cd2b2d52af
2009-01-30 11:37:11 +00:00
Anthony Minessale
bdc9c28d9c
add type of num var for pri
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@622 a93c3328-9c30-0410-af19-c9cd2b2d52af
2009-01-12 17:46:30 +00:00
Anthony Minessale
0fa7d1b68e
make error more clear about missing trunk_type param in openzap.conf (and auto tolerate the err) and fix printf metas
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@621 a93c3328-9c30-0410-af19-c9cd2b2d52af
2009-01-09 22:11:04 +00:00
Michael Jerris
ff4858ec6b
OPENZAP-37 (fail if invalid dialect is defined.
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@616 a93c3328-9c30-0410-af19-c9cd2b2d52af
2008-12-15 20:20:09 +00:00
Anthony Minessale
b3a8afd996
allow state change from progress_media to terminating in isdn
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@613 a93c3328-9c30-0410-af19-c9cd2b2d52af
2008-12-01 21:01:07 +00:00
Stefan Knoblich
71e7531655
oops
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@594 a93c3328-9c30-0410-af19-c9cd2b2d52af
2008-10-13 05:44:15 +00:00
Stefan Knoblich
4c4047d5cf
Add NT-mode overlap dial timeout and fix CID in overlap
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@593 a93c3328-9c30-0410-af19-c9cd2b2d52af
2008-10-12 22:07:45 +00:00
Anthony Minessale
564329faee
OPENZAP-28 pass opts from mod_openzap to ozmod_isdn
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@589 a93c3328-9c30-0410-af19-c9cd2b2d52af
2008-10-07 15:27:51 +00:00
Anthony Minessale
a422a4f672
bail on bad args
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@588 a93c3328-9c30-0410-af19-c9cd2b2d52af
2008-10-07 00:00:15 +00:00
Michael Jerris
d0ef88c299
initialize to no isdn logging if param not set in config
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@583 a93c3328-9c30-0410-af19-c9cd2b2d52af
2008-10-06 15:53:23 +00:00
Anthony Minessale
5b2982a442
OPENZAP-22 add configuration settable debug levels for isdn trunks
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@580 a93c3328-9c30-0410-af19-c9cd2b2d52af
2008-10-03 21:57:57 +00:00
Michael Jerris
c7cbbc6f4e
OPENZAP-19 add handler for connect ack
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@570 a93c3328-9c30-0410-af19-c9cd2b2d52af
2008-09-26 18:28:28 +00:00
Stefan Knoblich
7b99c4f95d
Improve logging for setups with more than one span
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@559 a93c3328-9c30-0410-af19-c9cd2b2d52af
2008-09-16 18:22:00 +00:00
Michael Jerris
b645cacc11
fix off by one index
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@554 a93c3328-9c30-0410-af19-c9cd2b2d52af
2008-09-10 19:43:55 +00:00
Anthony Minessale
3c4453955d
change core of openzap to use dynamic allocation of spans and channels to reduce memory usage
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@552 a93c3328-9c30-0410-af19-c9cd2b2d52af
2008-09-10 15:25:02 +00:00
Stefan Knoblich
a8d9742c8e
NT mode improvements:
...
Add channel hunting in case the TE side specifies "any" channel in the Channel ID IE
of an incoming SETUP message (or if there is no Channel ID IE at all).
Support overlap dial in NT mode, (needed for BRI phones), triggered by a missing
Called Party IE in the SETUP message.
Tones... picking up a phone and not hearing a dialtone is no fun...
Dialtone (works) and Ring (untested) are implemented, tones are generated by
a secondary thread (only started for spans in NT mode). I tried to do the tone
generating in the main thread first, but it is easier to handle like this.
The loop uses the first channel that needs tones as a timing reference and the
tone buffer is reused if multiple succeeding channels share the same state to
save some cpu cycles (yes, not perfect... alternative is to allocate a buffer for
every indication and precalculate the values... => 16KB for each indication).
Coming up next: Q.931 Timers
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@544 a93c3328-9c30-0410-af19-c9cd2b2d52af
2008-09-07 17:39:36 +00:00
Stefan Knoblich
00215f7349
[ozmod_isdn] Remove sending complete IE
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@536 a93c3328-9c30-0410-af19-c9cd2b2d52af
2008-09-06 20:14:07 +00:00
Michael Jerris
9b5b73c628
revert patch from OPENZAP-12
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@533 a93c3328-9c30-0410-af19-c9cd2b2d52af
2008-09-06 04:15:49 +00:00
Michael Jerris
cd8a4e5139
(OPENZAP-12) fix param passing in ZIO_SIG_CONFIGURE_FUNCTION on some platforms
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@531 a93c3328-9c30-0410-af19-c9cd2b2d52af
2008-09-05 19:12:20 +00:00
Michael Jerris
4317cbe2e8
(OPENZAP-11) use all the cflags from configure so we can build ss7 boost on freebsd and fix other code issues noted by more warnings from those cflags
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@530 a93c3328-9c30-0410-af19-c9cd2b2d52af
2008-09-05 03:53:32 +00:00
Michael Jerris
29132c7207
turn down the logs for now
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@528 a93c3328-9c30-0410-af19-c9cd2b2d52af
2008-09-04 04:58:00 +00:00
Anthony Minessale
bc1ccab19c
dyna won't you blow your horn
...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@517 a93c3328-9c30-0410-af19-c9cd2b2d52af
2008-08-29 15:58:59 +00:00