Commit graph

3188 commits

Author SHA1 Message Date
Luigi Rizzo
c3b3feab76 - staticize gettag() complete_sip_peer() get_calleridname() arguments;
- use strsep() instead of strchr() where appropriate
- constify some args and add comments. 
- remove a conditional near line 1940 - we already know what to use.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18793 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-10 12:20:57 +00:00
Luigi Rizzo
8731b6386d - constification of some functions (args and return values):
transmit_response_reliable()
        hangup_cause2sip()
- remove useless braces;
- add comments on some slightly cryptic code segments
- mark XXX possible critical pieces of code.
- remove an unneeded string termination after ast_copy_string
- mark usage of some rarely used functions;
- use strsep() instead of emulating it inline;
- replace magic constants with sizeof(array)




git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18792 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-10 11:57:40 +00:00
Luigi Rizzo
7e5e2ffb5f - localize 'struct cfalias' into the only function using it;
- remove duplicate code to walk through sdp packets, replacing
  sdpLineNum_iterator_init(&foo); with  "foo = 0";
- remove duplicate code to test ast_test_flag(&p->flags[0], SIP_NAT_ROUTE);



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18791 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-10 11:36:02 +00:00
Luigi Rizzo
25e9168fea constify get_sdp*() and friends.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18790 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-10 11:19:14 +00:00
Luigi Rizzo
87890e75ba constify get_header(), which let me find out and fix one bug (overwriting
a string in the buffer) and finding out another one (not fixed yet,
just marked XXX).



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18789 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-10 11:04:04 +00:00
Luigi Rizzo
47df1e2020 - describe how sip packets are stored internally;
- remove useless braces or local variables;
- simplify some code sequences;
- mark with XXX a possible locking issue.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18788 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-10 10:40:13 +00:00
Luigi Rizzo
20d1876617 struct sip_request cleanup:
- remove a debug field that was read but never set, so it was basically
  unused as well as the code testing it (also removed);

- make scalar fields contiguous so any array overflow will be
  less harmful;



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18787 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-10 10:30:38 +00:00
Luigi Rizzo
104c2b0a3a more cleanup: remove useless braces, replace "if" with "?",
localize a couple of variables, remove trailing whitespace.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18786 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-10 10:22:42 +00:00
Olle Johansson
9b4e335439 Re-instate removed comment
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18785 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-10 10:01:14 +00:00
Luigi Rizzo
e081b42cd6 another batch of minor code simplifications
(moving repeated expressions into a function, const on
some arguments)



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18784 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-10 09:53:22 +00:00
Luigi Rizzo
e468d9011d a bunch of trivial code normalizations (removal of unnecessary
casts and parentheses, formatting fixes, pointing out replicated
code and so on). No functional changes.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18666 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-09 23:16:29 +00:00
Kevin P. Fleming
f10f427d49 since the module API is changing, it's a good time to const-ify the description() and key() return values
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18552 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-08 22:01:19 +00:00
Olle Johansson
8159124572 -Fixing some debugging messages in history and console
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18403 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-07 20:19:44 +00:00
Olle Johansson
aefba4ad7d Add history events for re-invites
(need to nail this issue...)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18373 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-07 19:46:50 +00:00
Olle Johansson
f235bbe5a5 make history easier to read
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18371 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-07 19:36:44 +00:00
Olle Johansson
8cd506cdfd Add some more information to SIP history
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18370 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-07 19:25:19 +00:00
Olle Johansson
7089dc1341 Issue #6899 - remove OSP support code from chan_sip.c and app_dial.c
- implement all functions through internal APIs in res_osp.c and app_osplookup.c
(homesick)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18369 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-07 19:11:22 +00:00
Olle Johansson
fd54f36509 Hmm. What is that keyword?? Let me see... Wait... Maybe... Ahh! OOPS!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18342 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-07 18:52:23 +00:00
Russell Bryant
3808318cff change a couple uses of !strlen() to ast_strlen_zero(). Oddly enough, one of
these used to be this way and got changed ...


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18309 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-07 16:28:50 +00:00
Olle Johansson
839ebd8e03 - sip_alloc failures are also caused by too few available file descriptors, so we can not
open socket for RTP (audio/video/rtcp).
  Error message change to clarify.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18307 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-07 16:22:28 +00:00
Olle Johansson
b479a91e97 - Add cause code for format error
- Change to SWITCH_CONGESTION instead of CONGESTION
(imported from 1.2)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18262 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-07 14:42:25 +00:00
Olle Johansson
48ca2c82bf Import of revistion 18250 from 1.2
- Fix minor memory leak
- Add proper cause codes on memory allocation failures


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18261 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-07 14:30:14 +00:00
Christian Richter
ece21c3019 sorry litle mistake
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18221 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-07 12:03:51 +00:00
Christian Richter
47b8610f70 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18192 65c4cc65-6c06-0410-ace0-fbb531ad65f3 2006-04-07 09:46:38 +00:00
Christian Richter
7788d5061c fixed a bridging-endless-loop also fixed the rdnis is not exported issue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18190 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-07 09:31:27 +00:00
Olle Johansson
b7d32b9e0b Issue #6674: Set the URI correctly on BYEs when we have an incoming call
Reported by aubergine, fix by oej


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18161 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-07 08:19:52 +00:00
Olle Johansson
4ded41daa5 Cosmetic update for outbound REFERs
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18060 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-06 21:49:24 +00:00
Olle Johansson
965394e4c2 Add "NewChan" event to history to track the birth of a new ast_chan from a
SIP invite


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18059 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-06 21:33:39 +00:00
Olle Johansson
009e081199 Improved handling of 491 responses
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18058 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-06 21:29:54 +00:00
Olle Johansson
518c4b295d Small changes to parse_sip_options
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18057 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-06 21:18:12 +00:00
Olle Johansson
be4ac5e57a Small fixes to handle_request_invite
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18056 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-06 21:13:32 +00:00
Olle Johansson
62128ba7b7 - Don't change channel direction on re-invites
- Don't re-initialize initreq on re-invites


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18033 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-06 21:01:06 +00:00
Olle Johansson
5483288048 - Implement handle_request_notify to handle incoming NOTIFY requests
and respond properly to them.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18024 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-06 20:36:25 +00:00
Olle Johansson
9bd9bceef7 Implement a handle_response_refer function to take care of responses
to outbound REFERS. Not that common, but still needed.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18022 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-06 20:16:08 +00:00
Olle Johansson
1e8d1dda7d Change transmit_notify_sipfrag to handle other messages than 200 OK, needed for
SIPtransfer improvement


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17993 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-06 19:59:21 +00:00
Olle Johansson
ddcd16e519 - doxygen
- debug message control


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17991 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-06 19:39:27 +00:00
Luigi Rizzo
4408c0e6b5 structures can be copied with the '=' operators, no need to
use memcpy.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17988 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-06 19:31:59 +00:00
Luigi Rizzo
6f09a652dd normalize some for() loops.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17943 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-06 17:09:00 +00:00
North Antara
0a24923596 skinny debug/verbose cleanup.
Thanks casper!


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17903 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-06 16:50:33 +00:00
Tilghman Lesher
756c7cbb12 Bug 6873 - Finish moving from the non-threadsafe (and poor randomness) rand() to threadsafe ast_random()
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17627 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-05 17:44:44 +00:00
Christian Richter
7028946605 some final fixes for cpn
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17594 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-05 15:54:15 +00:00
Christian Richter
ce8fc47ffc * advanced the error Handling routine for wrong frames from mISDN
* added more code for connected party number handling
* fixed the portinfo program, it can now be used to test mISDN again



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17562 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-05 14:51:48 +00:00
Christian Richter
d7a839a299 fixed some essential segfaults happening under heavy load. Added a bit more error handling if we receive wrong data form mISDN (e.g. if we crashed before => handle_err() ). Added first steps to implement the parseing of the connected party number.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17404 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-04 19:09:26 +00:00
Olle Johansson
42fddfa075 Formatting cleanup
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17369 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-04 18:34:21 +00:00
Olle Johansson
0a1898d8d6 Issue #6878 - Manager event DNDstate hidden under verbose option (casper)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17366 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-04 18:26:24 +00:00
Olle Johansson
37ff50a890 - Don't return AST_DEVICE_UNKNOWN to devicestate engine, since this will
cause a channel walk...
- Doxygen fixed for devicestate.c


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17365 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-04 18:24:41 +00:00
Matthew Fredrickson
a868675e2f chan_iax2 cleanups and optimizations (#6858)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17329 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-04 17:05:01 +00:00
Matt O'Gorman
b9e7287ce6 adds manager event when an iax2 peer loses registration.
also some minor code clean up. patch from 6868 with minor
changes.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17311 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-04 16:15:40 +00:00
Olle Johansson
878c88f899 Add tag to NOTIFY headers (imported from 1.2)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17151 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-03 20:40:08 +00:00
Christian Richter
a096fbd87d * removed unneeded bc->state field
* added statefullness for bchannel activation/deactivation
* fixed a lot PCM bridging issues
* some debugging logs are now on a higher loglevel



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17128 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-03 19:17:59 +00:00
Matt O'Gorman
319945c922 bug updates chan_h323 to some api changes it
also allows for it to compile once more patch
taken from 6446 with minor mods, similar bugs 6521
and 6560


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17104 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-03 18:36:30 +00:00
Olle Johansson
5fbe9f80e8 Don't add hangup cause on non-final responses. (Imported from 1.2)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17075 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-03 17:52:11 +00:00
Olle Johansson
67b460d43c Issue #6848 - Accept MWI subscriptions with no Accept: header
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17050 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-03 10:50:56 +00:00
Olle Johansson
46a1b7c73b Don't add ast_extension_state on re-subscribes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16829 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-01 00:44:36 +00:00
Olle Johansson
2240245389 Reverse revision 16804 that disables authentication
and a lot of other issues...


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16825 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-01 00:24:05 +00:00
BJ Weschke
225d8d5270 Don't process re-subscribes as new subscriptions.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16804 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-31 21:02:23 +00:00
Russell Bryant
e536a9c6df move a NULL check to before the first time the pointer is dereferenced (issue #6832)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16772 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-31 19:14:28 +00:00
Russell Bryant
a13ab2f377 - code formatting tweaks
- use the callno stored in a local variable
- store the result of atoi() so it's only called once
(issue #6833)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16759 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-31 19:02:27 +00:00
Russell Bryant
813c445686 Merged revisions 16744 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r16744 | russell | 2006-03-31 13:42:09 -0500 (Fri, 31 Mar 2006) | 2 lines

fix the situation where bindport is specified but bindaddr is not (issue #6616)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16745 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-31 18:43:45 +00:00
Olle Johansson
83b7de9463 Doxygen fix
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16703 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-31 16:02:29 +00:00
Olle Johansson
2994fa390c Make REG_STATE_* enum
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16690 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-31 15:19:04 +00:00
Olle Johansson
40b71d4b39 Don't accept new INVITE if we already have one pending.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16688 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-31 15:07:36 +00:00
Luigi Rizzo
0b655c3ce9 minor cleanup: localize a variable and replace i++; i++ with i +=2;
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16652 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-31 10:13:22 +00:00
Luigi Rizzo
0ff1c42675 useless 'extern' and trailing whitespace removal
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16651 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-31 10:11:10 +00:00
Joshua Colp
5880a7f513 Do not leave a thread in limbo if an error occurs, or if testing packet loss.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16617 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-31 00:53:32 +00:00
Tilghman Lesher
9a9ab4e7cf Merged revisions 16581 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r16581 | tilghman | 2006-03-30 16:56:35 -0600 (Thu, 30 Mar 2006) | 2 lines

Bug 6853 - Manager fixes: 1) extra ActionID, 2) missing colon

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16600 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-30 23:05:58 +00:00
Luigi Rizzo
c163911efe don't use 8000, use DEFAULT_SAMPLE_RATE
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16560 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-30 21:45:43 +00:00
Luigi Rizzo
6c232811c0 as discussed with Mark a few weeks ago, the 'newstack' argument
in pbx_exec is always 1 so it can be removed.

This change also takes away ast_exec_extension(), and lets all
switch functions (exists, canmatch, exec, matchmore) all use the same
prototype, which makes the code a bit cleaner.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16558 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-30 21:29:39 +00:00
Kevin P. Fleming
4e5ea82b7e deprecate insecure=very and insecure=yes, since we have more explicit versions available now
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16548 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-30 18:17:36 +00:00
Olle Johansson
50f0b12880 Issue #5374 - Enable internal timing of generators (cmantunes)
Thanks everyone involved for hard work, testing and testing!


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16473 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-30 06:07:04 +00:00
Olle Johansson
2c4ebe356e Issue #6450 - Don't remove characters from SIP uri's when not needed
Patch by jcomellas, heavily modified by oej


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16425 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-30 04:16:38 +00:00
Joshua Colp
0c134c5cba Fix IAX2 multithreaded scheduling (issue #6840)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16386 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-30 03:16:09 +00:00
Olle Johansson
3d1f9b747e Formatting fix.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16304 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-30 00:30:49 +00:00
Christian Richter
acacae4e68 fixed no dtmf detect on 64 bit
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16085 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-29 14:26:43 +00:00
Russell Bryant
1caeee1c61 oops! :)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16010 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-29 04:19:23 +00:00
Russell Bryant
6601f4deba conversion from malloc to ast_malloc
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16006 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-29 04:09:31 +00:00
Olle Johansson
b366c4062e Issue #6823 - Registration and port numbers. (from 1.2)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15905 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-29 01:01:09 +00:00
Luigi Rizzo
096bf1511f another batch of cli simplifications
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15857 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-28 23:33:02 +00:00
Luigi Rizzo
b94f6a6df4 normalize/simplify a bit of the command completion code.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15856 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-28 23:20:13 +00:00
Kevin P. Fleming
bb87cd151b make 'sip show subscriptions' include context for subscribed hints
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15819 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-28 22:47:02 +00:00
Luigi Rizzo
e9b7424737 The condition to check the zaptel version was too strict.
If you are compiling with WITHOUT_ZAPTEL=1, you can also
work with older version of zaptel, and there is no reason
not to allow that.

This should help various people mentioning on the -dev
list that there were issues with newer zaptel versions
on FreeBSD, and so they had to use older version.
(This includes me, btw!)



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15785 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-28 21:24:48 +00:00
Luigi Rizzo
f84e5cfd43 fix a bug introduced in 15187 that scrambled the flags and
among other things prevented proper handling of NAT.
Don't think it exist in 1.2 but be careful if 15187 is merged.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15744 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-28 20:22:25 +00:00
Russell Bryant
3de0204481 Merged revisions 15703 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r15703 | russell | 2006-03-28 14:47:03 -0500 (Tue, 28 Mar 2006) | 2 lines

fix Bus Error on sparc (issue #6354)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15704 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-28 19:49:30 +00:00
Russell Bryant
1ddae90e53 only display a debug message if iaxdebug is enabled as well (issue #6673)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15702 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-28 19:31:41 +00:00
Olle Johansson
147ae336d2 Fix NAT support breakage for peers with qualify=yes (imported from 1.2)
- Blame KLM, still jetlagged :-)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15701 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-28 19:09:51 +00:00
Kevin P. Fleming
f7c2eed26a ensure that 'zap show channel' will indicate that the echo canceler has been disabled when CED has been detected on the channel
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15662 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-28 19:00:21 +00:00
Russell Bryant
78f7235d04 store f->callno in a local var (issue #6818)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15619 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-28 18:00:05 +00:00
Kevin P. Fleming
584ab24577 oops :-(
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15618 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-28 17:53:27 +00:00
Russell Bryant
dea8078eef conversions to S_OR (issue #6817)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15617 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-28 17:52:50 +00:00
Luigi Rizzo
45edaa4c3a optimize a bit name completion by avoiding repeated calls to
strlen(word), localize variables and normalize the test
for finding the candidate string.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15516 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-28 13:46:04 +00:00
Luigi Rizzo
bf2ae44338 fix documentation
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15514 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-28 13:23:05 +00:00
Kevin P. Fleming
8410e0d681 support subscription-based MWI, and use proper Call-ID on NOTIFY messages (issue #6390)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15476 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-28 04:21:21 +00:00
Kevin P. Fleming
0b5f2a5d3f use proper file name
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15436 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-28 03:36:17 +00:00
Kevin P. Fleming
278b8e8fc7 improve IP TOS support for SIP and IAX2 (issue #6355, code from jcollie plus modifications)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15435 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-28 03:28:52 +00:00
Olle Johansson
ddaeaae214 Issue #6736 - use flags for OPTIONs messages
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15382 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-27 23:49:44 +00:00
Olle Johansson
2c9ecd7baa Reverting previous patch. Ok, let's take this from 1.2 instead... :-)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15380 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-27 23:41:21 +00:00
Olle Johansson
e4c8021b7d Issue #6736 - Enable NAT flags for OPTIONs requests (Thanks casper!)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15379 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-27 23:39:48 +00:00
Olle Johansson
0b39c35161 Issue #6597 - Show correct port in "sip show registry" - import from 1.2 branch
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15377 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-27 23:32:34 +00:00
Olle Johansson
450bc8dad6 Issue #6409 - Make calls to URI without username go to "s" extension (imported from 1.2)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15375 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-27 23:13:31 +00:00
North Antara
e9cf7dbfff Changed some "register" methods to the proper "unregister" method. This is in a #if 0 block, but it may still be useful someday.
Thanks eliel.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15319 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-27 21:13:54 +00:00
Matt O'Gorman
a5ece3388a Janitor work converting !ast_strlen_zero(a)?a:b
to S_OR functions. from bug note 6805 with minor
modifications.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15283 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-27 19:31:54 +00:00
Christian Richter
f274b642aa fixed bug that we don't allocate the bchan in setup_acknowledge already .. wonder why this wasn't fixed eearlier ..
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15249 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-27 16:15:44 +00:00
Christian Richter
bd4715f3bc fixed hicom busy bug, we now see if the systemphone is busy, also fixed the immediate=yes does not work anymore issue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15220 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-27 10:13:11 +00:00
Kevin P. Fleming
15873eb39c simplify flags/page2_flags stuff by using arrays instead
enhance handle_common_options to be able to set flags in the second set of flags (what used to be page2_flags)
various other minor fixes


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15187 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-27 04:54:06 +00:00
Olle Johansson
83d9331261 Issue #5427
- Enable videosupport per device
- Implement maxcallbitrate setting for video calls

Patch by John Martin, thanks!


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15148 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-27 03:35:49 +00:00
Olle Johansson
18de2b7787 Issue #6705 (oej)
- Implement option for allow/disallow subscriptions
- Implement option for allow/disallow overlap dialling
- Set default to disable overlap dialling in sip.conf.sample for new installations
- Remove overlap dialling from subscription logic


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15107 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-27 02:57:17 +00:00
Russell Bryant
d0b003a427 conversions to S_OR (issue #6803)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15022 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-26 16:08:42 +00:00
Mark Spencer
9164eac21a Add micro-http server and abstract manager interface, make snmp not die
on reload.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14953 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-25 23:50:09 +00:00
Kevin P. Fleming
c26786fd81 compute scheduler thread timeout properly
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14573 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-23 23:57:18 +00:00
Kevin P. Fleming
39464dfe09 commit file's work to convert iax2 multithreading to use pthread conditions instead of signals (with some modifications)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14570 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-23 23:11:09 +00:00
Matthew Fredrickson
ba8f7b8819 Allow channels to be moved if channel change is requested in SETUP_ACK, also add a WAY cool new field to the nsf option
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14521 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-23 21:41:23 +00:00
Olle Johansson
f554c03652 - In response to asterisk-users discussion - show which peers in "sip show peers" and "sip show peer" that are cached realtime peers.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14425 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-23 19:58:32 +00:00
North Antara
2ccaab2ad1 More whitespace and typo fixes for chan_skinny - yay!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14188 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-22 20:45:00 +00:00
Olle Johansson
19af878bac Issue #6766 - Make ;user=phone work again - imported from 1.2
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14141 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-22 09:14:42 +00:00
Olle Johansson
9e1e47450a Issue #6759, generate warning when refusing connection requiring unsupported SIP extensions
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14110 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-22 08:00:32 +00:00
Jim Dixon
7cfb9b3515 Added separate outsignalling specification, and fixed FEATDMF to allow for
international inbound calls.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14079 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-21 22:31:36 +00:00
Russell Bryant
2a00b76ace spelling and formatting fixes (issue #6760)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@13850 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-21 15:12:41 +00:00
Christian Richter
939dda2d6c removed unneeded debugs in level=0
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@13787 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-21 09:47:51 +00:00
Christian Richter
52eb1ad9d1 removed dynamic switching from transparent to hdlc mode. Instead we've got a config option hdlc=yes now which enables the hdlc controller for a data call
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@13637 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-20 18:04:05 +00:00
Olle Johansson
3cb5768016 Don't overwrite ANI if it's already sent with IES (imported from 1.2 branch)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@13635 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-20 17:39:14 +00:00
Olle Johansson
8bb397b439 Import revision 13547 from branch 1.2 - reset global_rtautoclear at reload
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@13548 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-19 09:32:36 +00:00
Olle Johansson
7296dd030e - Remove comment about non-existing XML format ;-)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@13546 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-19 09:08:57 +00:00
Olle Johansson
dbd3fa49fd - change "regcontext" to "global_regcontext" to mark it as a global setting
- show regexten in "sip show peer <name"


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@13545 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-19 09:07:29 +00:00
Russell Bryant
4c49c78e2e Merged revisions 13237 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r13237 | russell | 2006-03-16 12:42:46 -0500 (Thu, 16 Mar 2006) | 3 lines

always use the callerid signalling method set in the zt_pvt strucutre as
opposed to the last one read from the config file (issue #6734, with mods)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@13238 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-16 17:46:15 +00:00
Olle Johansson
1bad801595 Importing "oops" fix from 1.2 branch.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@13206 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-16 08:40:45 +00:00
Olle Johansson
8864646870 Import of rev 13026 from 1.2 branch: Fix parameters to event: header
in SUBSCRIBE request


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@13027 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-15 13:06:48 +00:00
Russell Bryant
9df72acbe9 deprecate the mailboxdetail option and always use its behavior, instead (issue #6665)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12923 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-14 18:05:22 +00:00
Russell Bryant
9bf08efa16 add a missing header to fix building with -Werror (issue #6717)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12894 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-14 16:16:14 +00:00
Russell Bryant
48c85e83bd fix build without SCHED_MULTITHREADED defined (issue #6719)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12878 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-14 16:00:06 +00:00
Russell Bryant
a6f2a3899b add some missing braces
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12688 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-12 21:17:58 +00:00
Olle Johansson
3b67da1362 - Adding some hangupcauses before hangups
- Removing double warning


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12546 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-12 16:47:55 +00:00
Olle Johansson
9bbfae80e0 Issue #5937 - Make sure that SIP CANCEL's are retransmitted properly
Importing revision 12495 from 1.2 with changes for svn trunk


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12496 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-10 12:18:00 +00:00
Olle Johansson
11126fee1d Implement enum for retransmit options to various functions.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12494 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-10 12:13:05 +00:00
Christian Richter
8e7dd52695 added option to change the connected party number dialplan (ton)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12481 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-09 18:01:27 +00:00
Olle Johansson
b27fa8bfc7 Support SIP_CODEC channel variable for early media. (Imported from 1.2, with a small
change for const char* channel variables)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12478 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-09 17:41:38 +00:00
Mark Spencer
0752f8e41e Make sure we clear our sched value before we actually schedule the
dereg.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12476 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-09 12:28:07 +00:00
Olle Johansson
52812c2917 Formatting fix.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12471 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-08 20:42:47 +00:00
Olle Johansson
5a2b0d6c2b Issue #6657 - Ignore 183 Session Progress without SDP (imported from 1.2 rev 12458)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12459 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-08 10:54:40 +00:00
Olle Johansson
06abc680dd Set SIPDOMAIN on 302 redirects.
This way you can catch 302 redirects in the dial plan and see if
the redirect is to a local extension or a remote URI.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12456 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-08 08:36:40 +00:00
Olle Johansson
9a475567bd Issue #6627 - Don't reset port number of active peers at reload
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12400 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-07 20:47:24 +00:00
Christian Richter
2c1cd943d0 fixed #6642 in trunk as well, sorry i really didn't want to copy this issue ... grrrr
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12371 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-07 19:34:23 +00:00
Christian Richter
5cd1828467 when receiving disconnect with inband info, we don't send release immediately, we also don't inform asterisk with hangup or congestion, since we want to hear the inband message.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12315 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-07 12:17:35 +00:00
Christian Richter
bcbcdaa67c added misdn port down to send a L1 Deactivate to a NT Port. changed some default values regarding jitterbuffer.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12288 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-07 11:16:56 +00:00
Christian Richter
21735de56d added a bit more detailed description for the echotraining parameter, also changed the default from 1 to 2000. The default for the upper_threshold is now 0
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12287 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-07 11:08:09 +00:00
Olle Johansson
e3f05acab2 Add accountcode to sip_peer dialplan function
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12260 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-07 09:57:22 +00:00
Tilghman Lesher
9756cec534 Merged revisions 12195 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r12195 | tilghman | 2006-03-06 18:05:27 -0600 (Mon, 06 Mar 2006) | 2 lines

Bug 6020 - Race condition where packet could be lost if first packet on list is acked

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12197 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-07 00:07:27 +00:00
Tilghman Lesher
bbbd23e2bd Bug 6195 - Deadlock solution by Matti
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12136 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-06 21:16:25 +00:00
Olle Johansson
5bf234f2ba Fix bad fix.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@11914 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-05 14:07:06 +00:00
Olle Johansson
13a3c7299a Oops
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@11889 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-05 13:52:26 +00:00
Olle Johansson
6730f817fd Clear almost all of page2 flags at reload (different fix from 1.2 branch)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@11850 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-05 12:57:34 +00:00
Mark Spencer
24c1501690 Fix some whitespace issues
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@11817 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-04 18:12:02 +00:00
Mark Spencer
2639b0a397 Handle disappearing calls for registers
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@11437 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-28 20:58:21 +00:00
Russell Bryant
6cff0b11f0 Merged revisions 11410 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r11410 | russell | 2006-02-28 14:46:04 -0500 (Tue, 28 Feb 2006) | 2 lines

fix the output that indicates whether qualify smoothing is on or not (issue #6608)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@11411 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-28 19:51:23 +00:00
Russell Bryant
f3b1b80b93 fix some build issues on FreeBSD (issue #6614)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@11407 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-28 19:22:25 +00:00
Christian Richter
bd9c89a710 better default values for jitterbuffer in code and config
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@11334 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-28 11:46:55 +00:00
Mark Spencer
ce263dfb94 Oops
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@11315 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-28 04:55:37 +00:00
Mark Spencer
6e9d6fdd0f Fix for GCC 3.2.2
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@11314 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-28 04:32:04 +00:00
Mark Spencer
a26b7f3400 Make sure we clear up schedule numbers before we process schedule
entries.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@11313 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-28 04:27:56 +00:00
Mark Spencer
8913eac229 Keep track of the function we're in the middle of doing
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@11312 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-28 04:20:14 +00:00
Mark Spencer
16109b9d2c Make IAX2 multithreaded
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@11192 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-26 20:27:14 +00:00
Christian Richter
61f1bf14fa added export and import of RDNIS channel variable
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@11017 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-24 17:38:43 +00:00
Christian Richter
df6e9dbd4e removed the misdn Makefile target from channels/misdn/Makefile in favour of a short howto install mISDN/mISDNuser in the doc/misdn.txt file. This helps to make asterisk completely compileable by non-root users
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10914 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-23 20:52:39 +00:00
Kevin P. Fleming
302c943001 add 'consumed' argument to ast_get_time_t, so callers can know how many characters were used in the parser
update pbx_dundi to use ast_get_time_t
eliminate some compiler warnings


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10871 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-23 17:13:57 +00:00
Kevin P. Fleming
6204abdae2 merge rizzo's patch to make compiler warnings stop the build, and fix a bunch of warnings found
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10805 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-22 22:53:49 +00:00
Christian Richter
fdd33866b4 * changed some strncpys to ast_copy_str
* added copying of some IEs (user,rate,urate) with channel vars
* added #6251 



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10787 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-22 21:59:46 +00:00
Christian Richter
c7e0abdfed fixed a ETSI violation (after RELEASE we need to RELEASE_COMPLETE (network side) one needs to upgread mISDNuser for that fix as well. also fixed the reload issue #6547
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10713 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-22 16:48:25 +00:00
Tilghman Lesher
f2be8b518d Bug 6554 - Show all spans statuses with a single command
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10607 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-21 05:41:37 +00:00
Tilghman Lesher
159711c838 Bug 6552 - Be a little more descriptive about which span has the PRI error
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10606 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-21 05:34:52 +00:00
Mark Spencer
894c8401d8 Remove gratuitous -1 (bug #6426)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10536 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-20 06:18:18 +00:00
Mark Spencer
72465ade16 Remove several uses of freed memory
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10512 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-20 05:58:50 +00:00
Matt O'Gorman
d442f57537 add 'blindtransfer' variable to chan iax2 like chan_sip and res_features bug note 6407
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10354 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-16 23:44:09 +00:00
Olle Johansson
98d0d296fb Whitespace cleanup
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10271 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-16 08:19:34 +00:00
Russell Bryant
a0d438fb6c remove the uses of the deprecated STANDARD_LOCAL_USER
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10241 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-15 20:11:56 +00:00
Christian Richter
afaf8e4c04 adde incoming_early_audio option, to avoid sending tone indications to the remote party on incoming calls from the pstn, this shouldnt be enabled, only if the provider allows it
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10227 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-15 19:51:33 +00:00
Christian Richter
f6bd1b8559 added pmp_l1_check option, to avoid l1 checking for group calls on PMP ports
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10225 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-15 19:32:45 +00:00
Kevin P. Fleming
0a9c957764 remove code that does not appear to do anything useful (issue #6059)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10142 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-15 01:55:20 +00:00
Kevin P. Fleming
0aaad7b8b9 Merged revisions 10137 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r10137 | kpfleming | 2006-02-14 19:21:33 -0600 (Tue, 14 Feb 2006) | 2 lines

ensure that agents logged in via the manager interface are stored in the persistence database (related to issue #6301)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10138 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-15 01:22:54 +00:00
Kevin P. Fleming
4662d58b01 add API function for parsing strings to time_t (issue #6320, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10105 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-15 00:24:24 +00:00
Kevin P. Fleming
124b00c4a4 add 'systemname' option to prefix channel unique IDs with (issue #5825)
convert chan->uniqueid to a stringfield from a fixed-size buffer


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10088 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-14 23:42:36 +00:00
Kevin P. Fleming
7616d69a63 Merged revisions 9958 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r9958 | kpfleming | 2006-02-14 12:30:10 -0600 (Tue, 14 Feb 2006) | 2 lines

when answering INVITE, don't send codecs the peer didn't offer (issue #6052)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9959 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-14 18:30:32 +00:00
Christian Richter
b7804137d9 fixed a certain 64bit segfault
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9900 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-14 11:25:35 +00:00
Christian Richter
8d3f63f467 fixed the occasional no audio issue, still need deeper investigation .. echotraining is off by default
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9882 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-14 10:44:00 +00:00
Russell Bryant
4d3c5e39b0 declare function_sipppeer as static (issue #6466)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9758 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-13 17:46:34 +00:00
Russell Bryant
46e43a6a90 remove unneeded var (issue #6466)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9757 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-13 17:43:38 +00:00
Russell Bryant
7946efea57 set peername after recent function updates
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9718 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-12 19:19:19 +00:00
Kevin P. Fleming
e7c198453d ensure that dependencies are rebuilt after 'make update' so that builds don't break when files are removed/renamed
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9691 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-12 16:52:42 +00:00
Kevin P. Fleming
96bf384e7d major dialplan functions update
deprecate LANGUAGE() and MUSICCLASS(), in favor of CHANNEL()


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9674 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-12 04:28:58 +00:00
Russell Bryant
1f23480472 Makefile updates for renaming of chan_misdn_config
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9644 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-11 22:09:31 +00:00
Russell Bryant
1a23f4d092 rename chan_misdn_config.c to misdn_config.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9643 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-11 22:08:12 +00:00
Russell Bryant
452f87a465 Merged revisions 9609 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r9609 | russell | 2006-02-11 14:23:20 -0500 (Sat, 11 Feb 2006) | 2 lines

fix memory leak from not destroying the scheduler context on module unload

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9610 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-11 19:31:11 +00:00
Russell Bryant
20c87064c1 don't try to build a chan_misdn_config.so
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9585 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-11 18:40:42 +00:00
Kevin P. Fleming
1f06418500 remove unused header and channel module
use auto-build for channels


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9569 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-11 17:58:21 +00:00
Mark Spencer
c74856b173 Make IAX2 not try to authenticate when registration info is not changing
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9507 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-11 07:06:23 +00:00
Kevin P. Fleming
7a4b31e515 doh!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9472 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-11 03:28:59 +00:00
Kevin P. Fleming
7b2988821a clean up SMDI support commit:
copyright header format and dates
code formatting and guidelines conformance
use of timeval wrapper functions
use of memory allocation wrappers
propery unref created interface objects during config load
document new variable set by chan_zap in doc/channelvariables.txt
remove useless 'extern' on function prototypes and definitions


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9451 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-10 23:55:47 +00:00
Matthew Fredrickson
c344781c4b Add boost gain option to microphone, also minor bug fixes (#6388)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9449 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-10 23:19:05 +00:00
Matthew Fredrickson
5dd0b76b2d Minor bugfix for #6386
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9436 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-10 22:45:03 +00:00
Matthew Fredrickson
af07dc8883 Add smdi support for asterisk (see doc/smdi.txt for config info) (#5945)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9423 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-10 21:50:56 +00:00
Kevin P. Fleming
cadfcdfe8e Merged revisions 9404 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r9404 | kpfleming | 2006-02-10 14:38:59 -0600 (Fri, 10 Feb 2006) | 2 lines

don't create monitor threads in detached mode, when we need to be able to pthread_join() them later if the module is unloaded (solve crash-on-unload problem for these channel modules)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9405 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-10 20:40:00 +00:00
Kevin P. Fleming
b40bd71a9a restore 'rfc2833' naming for DTMF mode in chan_sip
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9391 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-10 16:33:47 +00:00
Christian Richter
fd9fe21d2c * jb can be configed by misdn_set_opt
* reload does misdn_reload as well



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9378 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-10 14:17:28 +00:00
Christian Richter
0058f40ed5 added Proceeding state, to be more ETSI conform with outgoing setups on the Network side (no release_complete but disconnect or release in proceeding state)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9364 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-10 10:10:58 +00:00
Tilghman Lesher
4f1e5d1aef Bug 6387 - janitor cleanup for linked lists
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9349 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-10 00:20:43 +00:00
Christian Richter
091a14754d still some L1 related fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9309 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-09 16:58:13 +00:00
Olle Johansson
4d07b89fdd - Change "rfc2833" to "rtp" in sip.conf. Keeping backwards compatibility.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9294 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-09 15:40:53 +00:00
Russell Bryant
7529e12ab4 remove unnecessary format check in zt_request so that we will actually accept
a requested format of ALAW (issue #6421, different patch)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9260 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-09 02:21:57 +00:00
Russell Bryant
a8d24df108 clarify return value (issue #6434)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9248 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-09 01:52:09 +00:00
Russell Bryant
14906b3cfc Merged revisions 9246 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r9246 | russell | 2006-02-08 20:24:55 -0500 (Wed, 08 Feb 2006) | 2 lines

reload peercontext on iax2 reload (issue #6442)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9247 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-09 01:33:50 +00:00
Matt O'Gorman
5f0de64f78 Merged revisions 9232 via svnmerge from
https://svn.digium.com/svn/asterisk/branches/1.2

........
r9232 | mogorman | 2006-02-08 16:12:34 -0600 (Wed, 08 Feb 2006) | 4 lines

Make logger report error,warning,notice if logger.conf
not found, also updated chan_oss to give correct
error message if its config file is not found.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9239 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-08 23:14:17 +00:00
Christian Richter
be20a26a35 fix for the L2 Signalling
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9225 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-08 19:51:53 +00:00
Christian Richter
f354a43bd3 L2 Signalling in PTP-TE Mode fixed
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9223 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-08 19:39:37 +00:00
Christian Richter
a43c6c0f49 * dozens of white-space removements
* some // comment removements
* debugging optimization, use port where possible
* fixed  pickup problem (pickup didn't work anymore after mqueue)
* removed some mIDSN_JOLLY defines which are not needed anymore in mqueue
* adapted the new cli.h constifications



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9215 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-08 16:10:21 +00:00
Matthew Fredrickson
556ec7c940 Make sure we output the APDU debug on pri debug commands
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9194 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-07 18:00:42 +00:00
Christian Richter
b42dd639ee default values of jitterbuffer and jitterbuffer_upper_threshold should be > 0, this fixes the tv_fix warnings, because we use ast_read to transmit frames to asterisk in jitterbuffer mode, instead of queueing the audio data with ast_queue_frame.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9186 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-07 13:34:59 +00:00
Kevin P. Fleming
d87a77b89b rename properties for forward-porting fixes so they don't conflict with developer branches
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9163 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-06 20:18:17 +00:00
BJ Weschke
81125d803e Don't set a global variable if the channel you're trying to set CHANLOCALSTATUS on has gone away already.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9139 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-03 22:38:38 +00:00
Kevin P. Fleming
a84d2cf4ea make chan_misdn build on x86-64
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9123 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-02 22:05:47 +00:00
Kevin P. Fleming
ec5dfabc65 updates to compile against current trunk
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9119 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-02 21:49:36 +00:00
Christian Richter
7133d1b006 * removed unnecessary struct elements and functions
* fixed "RETRIEVE does not work" bug
* fixed some NT Mode bugs
* removed some // comments
* added configureable jitterbuffer
* removed own tone-generator, and use asterisks instead, to support 
  asterisks indications
* added more support for hw-bridging, we bridge now every possible call
* fixed some hdlc mode issues, with a patch for chan_zap we can make 
  data calls between chan_zap and chan_misdn now
* completely reworked the config engine, works like a charm now
* fixed SetCallerPres - bug
* added Progress and Proceeding passing
* optimized Ringing Indication handling
* added full ast_send_text support (you can setup nice menus with the dialplan
  now)
* added support to read /etc/misdn-init.conf to clarify the NT+PTP Problem
* we compile now channels/misdn if mISDNuser is installed systemwide


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9114 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-02 21:15:34 +00:00
Matthew Fredrickson
7bed7d9048 Fix w/ string field updates #6397
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9113 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-02 21:02:19 +00:00
Olle Johansson
f1377e3ce1 - Remove "frame relay" from chan_sip !
- Add some comments for the monitoring thread


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9107 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-02 20:51:08 +00:00
Matthew Fredrickson
d65e912816 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9106 65c4cc65-6c06-0410-ace0-fbb531ad65f3 2006-02-02 20:50:29 +00:00
Olle Johansson
2f4524f1df - Add doxygen docs on return values on check_user_full()
- Simplify code in handle_request_subscribe (mailbox subscription)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9105 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-02 20:28:57 +00:00
Olle Johansson
88e37acdcd - Make debug logging for each authentication (twice per call) optional
- Small update to doxygen comment


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9104 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-02 20:18:31 +00:00
Matthew Fredrickson
af52e3fd90 More stringfield related changes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9085 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-02 18:33:23 +00:00
Matthew Fredrickson
35edaf57d6 Fix so that hardhdlc works w/ chan_zap
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9072 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-02 16:09:38 +00:00
Kevin P. Fleming
a16ae226b6 use string fields for some stuff in ast_channel
const-ify some more APIs
remove 'type' field from ast_channel, in favor of the one in the channel's tech structure
allow string field module users to specify the 'chunk size' for pool allocations
update chan_alsa to be compatible with recent const-ification patches


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9060 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-01 23:05:28 +00:00
Matt O'Gorman
7d03c33e0a Allows for user to uninstall asterisk binaries
bug 6177


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9052 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-01 18:39:41 +00:00
Olle Johansson
f0c6fe952e Optimize settings of defaults for a new peer object and make sure
we set the same defaults for autocreated peers and other peers.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9013 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-31 18:40:07 +00:00
Russell Bryant
a228af1dd9 remove some more local declarations of null frames
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9004 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-31 17:57:12 +00:00
Russell Bryant
e01861fafd define a global null_frame object so when queueing a null frame, you don't
have to allocate one on the stack


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9001 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-31 17:18:58 +00:00
Olle Johansson
18eac350af - Moving two session (PVT) flags to peer PAGE2 (DYNAMIC and SELFDESTRUCT) to make room for more session-related flags
This is needed for integrating patches in the bug tracker
- Adding doxygen comments


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8991 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-31 16:02:35 +00:00
Olle Johansson
ea0ac62a1e - Change "prefs" to "default_prefs" and move declaration to "default" group
- Add doxygen comments


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8976 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-31 14:30:09 +00:00
Kevin P. Fleming
d819679da0 Yes Virginia, Zaptel does support native ALAW
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8961 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-31 03:45:09 +00:00
Olle Johansson
19cd118bff - Doxygen and comments updates
- Moving structure declarations to top of file with the rest
- Adding some forward declarations for RTP interface functions

(All these changes to position in file are in preparation for splitting chan_sip up
into several files at some point in the future)



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8932 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-30 20:36:38 +00:00
Olle Johansson
125fd8446c Issue 5892: Set a minimum T1 timer for calls. Reporter: twisted
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8926 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-30 19:50:39 +00:00
Olle Johansson
f3f9230738 Issue #6035 - Don't send 403 on bad auth (correcting one of my old mistakes...) Reported by maik.
Patch inspired by, but not the patch in the bug tracker.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8925 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-30 19:09:08 +00:00
Olle Johansson
81813b42a4 Issue #5793
- simplification of check_auth
- constifications
- whitespace changes
Rizzo's patch with some changes


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8919 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-30 18:51:02 +00:00
Kevin P. Fleming
257212b930 Merged revisions 8905 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r8905 | kpfleming | 2006-01-30 11:08:28 -0600 (Mon, 30 Jan 2006) | 2 lines

disable buggy PRI user-user code until it can be fixed

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8906 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-30 17:09:55 +00:00
Mark Spencer
37815b2cce Merge Rizzo's waitfor update (bug #4584)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8877 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-30 03:13:33 +00:00
Kevin P. Fleming
cde6058aef make ast_read() able to handle channel read()/exception() methods that return a chain of frames
cleanup code in ast_read()
add AST_FRAME_DTMF_BEGIN and AST_FRAME_DTMF_END so that variable-length DTMF events can be supported
teach chan_zap to send DTMF_BEGIN and DTMF_END when appropriate


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8850 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-29 05:07:04 +00:00
Olle Johansson
7b07bf5fc8 - Remove unused "resetinvite" variable
- Use TRUE/FALSE for fastrestart


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8835 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-28 17:17:37 +00:00
Olle Johansson
3009e4004c Change booleans to TRUE/FALSE.
(At some point we should implement these as enums to simplify debugging)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8834 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-28 17:00:05 +00:00
Olle Johansson
0c687996ad Doxygen updates
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8826 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-28 15:34:27 +00:00
Olle Johansson
4a63775523 - Moving forward declarations to one block
- Moving global variables to one block
- Moving global networking variables to one block
- Small whitespace changes
- Renaming a few more global channel settings to global_ for clarity
(No functional changes)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8825 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-28 15:28:58 +00:00
Olle Johansson
7ac422562e Simplify code for building Call ID's, create generic random string function
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8823 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-28 15:02:29 +00:00
Matthew Fredrickson
0296f45bff Add rdnis rx/tx support to chan_iax2 (#6348)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8799 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-27 23:55:37 +00:00
Olle Johansson
6fafc9d4f0 Merged revisions 8785 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r8785 | oej | 2006-01-27 09:02:16 +0100 (Fri, 27 Jan 2006) | 2 lines

Issue 6362 - Register without Contact: and Expires: fails (reporter: op)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8786 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-27 08:07:43 +00:00
Olle Johansson
1a484607a3 - Move two functions to static that wasn't for some reason
- Add doxygen comments
- Remove un-needed assignment at declaration of variable
- Formatting fixes (whitespace)
- Add optin_debug in front of complex debugging output
- Move forward declarations of functions to top of file
- Fix error message for bad allocation in sip registry 
(Note: Review to line 6050 in this too large file)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8750 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-26 21:36:41 +00:00
Olle Johansson
09e357e013 Formatting fixes, speling eror fiksd ;-)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8741 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-26 20:08:53 +00:00
Olle Johansson
25ad6f6ec3 Issue #5954 revisited. Thanks rizzo.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8731 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-26 19:47:40 +00:00
Russell Bryant
99abd45d01 Merged revisions 8729 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r8729 | russell | 2006-01-26 14:42:35 -0500 (Thu, 26 Jan 2006) | 2 lines

fix problem with dtmf on e&m (issue #6364)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8730 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-26 19:44:16 +00:00
Olle Johansson
db97a8d9ce Code clean up, inspired by rizzo's comments in issue 5978.
- Don't check for ignore if ignore is always negative
- Add comments to explain what's going on


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8728 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-26 19:38:11 +00:00
Olle Johansson
0f4b7a78f6 Add some debugging output when reloading, to be able to follow progress at high debug levels
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8712 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-26 14:59:33 +00:00
Olle Johansson
ca81ac1a02 Merged revisions 8710 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r8710 | oej | 2006-01-26 15:39:36 +0100 (Thu, 26 Jan 2006) | 2 lines

Issue 5898: Registrations does not get deleted if there's an active SIP dialog

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8711 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-26 14:44:23 +00:00
Russell Bryant
c1a2631101 Merged revisions 8677 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r8677 | russell | 2006-01-25 14:14:43 -0500 (Wed, 25 Jan 2006) | 3 lines

don't call ast_update_realtime with uninitialized variables if we get a
registration with an expirey of 0 seconds (issue #6173)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8678 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-25 19:16:14 +00:00
Russell Bryant
19f99bee0f use arg parsing macros in the AGENT dialplan function (issue #6236, with small mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8676 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-25 19:06:37 +00:00
Russell Bryant
5370520804 store feature_pvt list using linked list macros
(issue #6351, with additional changes to prevent a memory leak in unload_module)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8665 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-25 18:24:32 +00:00
Russell Bryant
b7ab0d1840 store agent_pvt list using linked list macros (issue #6342)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8664 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-25 18:12:55 +00:00
Kevin P. Fleming
c767a66da5 don't queue a congestion frame on a channel that will be immediately hung up anyway
clean up/organize code block


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8654 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-25 14:52:43 +00:00
Olle Johansson
82f8c9d64d - Remove unused option to transmit_state_notify
- Allow for expiry=0 in subscription requests that only wants *one* update and that's it.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8643 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-25 12:11:30 +00:00
Olle Johansson
b64404e039 From now on, apply maxexpiry and minexpiry to all subscriptions. Thanks to fourcheeze in the IRC channel
for pointing this out.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8642 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-25 12:01:07 +00:00
Olle Johansson
3fbad3f5d3 Don't reset scheduled ID until we actually end the scheduled event.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8574 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-24 20:41:08 +00:00
Olle Johansson
50280803be Issue 6114: Don't hangup on bye/also if there's no channel. (gst)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8561 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-24 19:19:20 +00:00
Olle Johansson
ab04b28196 Issue #6093: Match realtime non-dynamic peers by IP. (siacali).
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8560 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-24 19:08:44 +00:00
Olle Johansson
be28dc1be8 Importing rev #8537 from 1.2, never send response to ACK (issue #6308)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8538 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-24 13:21:13 +00:00
Olle Johansson
9434a05dc1 - Report SIP reload in manager (issue 5742 with small changes)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8531 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-24 12:48:44 +00:00
Olle Johansson
b90a5b0ebd - Adding doxygen comments
- Changing default values set in reload_config to DEFAULT_ #defines to make it more clear what defaults are
- Cleaning up global_ and default_ variable naming. 
- Moving variable and #defines together in the source, adding comments to explain sections

Global_ is used for channel settings that does not apply to peers or users as defaults for their settings
default_ is used both as a channel setting for unknown callers, as well as defaults for peers and users



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8514 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-24 10:19:13 +00:00
Olle Johansson
9cda86f4b2 Remove redundant default default/global settings from declaration, settings are done in reload_config()
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8500 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-23 17:51:15 +00:00
Olle Johansson
4c8b2c62de Remove more unused defines.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8493 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-23 17:19:03 +00:00
Olle Johansson
c3fcb9eaea Doxygen updates
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8492 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-23 17:17:56 +00:00
Olle Johansson
8b42063108 Finally removing SIPDUMPER that hasn't been used for ages. If anyone needs this for some reason,
please tell me and I'll put it back :-)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8490 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-23 17:12:44 +00:00
Olle Johansson
57f0c81518 - Change "call" to "dialog" where use of "call" is confusing, since it may be a register transaction or a subscription.
The word dialog is defined as "a peer-to-peer SIP relationship between two UAs that persist for some time" in RFC 3261.

- Whitespace fixes
- Debugging fixes (adding check of option_debug)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8489 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-23 17:08:19 +00:00
Olle Johansson
814800008d - Debug output fixes
- Whitespace fixes


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8483 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-23 16:41:48 +00:00
Olle Johansson
e2f477175f Doxygen update
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8482 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-23 16:27:01 +00:00
Olle Johansson
e0fe84d1b2 Re-instate sip_addheader() while waiting for a dialplan function. (Issue 6317)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8481 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-23 16:21:51 +00:00
Olle Johansson
50797d7c05 - Adding some white space from my white space reservoir
- Fixing some comment formatting (doxygen fix)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8471 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-23 13:11:04 +00:00
Russell Bryant
7df4257dbb eliminate some compiler warnings
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8443 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-22 18:42:06 +00:00
BJ Weschke
0034a39f29 Correct some scenarios where CALL_LIMIT could not be getting adjusted properly allowing chan_sip to send calls when it really shouldn't. Bug #6111
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8432 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-22 15:08:51 +00:00
Russell Bryant
4414f45393 on this pass, only remove duplicate log messages
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8403 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-21 20:57:06 +00:00
Russell Bryant
9fa6eb5e07 revert my pass through the tree to remove checks of the result of ast_strdupa
(revisions 8378 through 8381)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8387 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-21 17:50:04 +00:00
Russell Bryant
847260bb77 remove some useless checks of the result of ast_strdupa
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8378 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-21 08:01:24 +00:00
Tilghman Lesher
e3e7e1d1b2 Bug 5515 - Devicestate and API documentation update
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8371 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-21 05:15:56 +00:00
Matthew Fredrickson
be910dd5b6 Change chan_alsa to default open the first sound card device
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8346 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-20 18:18:40 +00:00
Kevin P. Fleming
1992ffbdb0 eliminate compiler warnings from recent const-ification
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8338 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-20 17:27:51 +00:00
Matt O'Gorman
bc133ed475 Merged revisions 8320 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r8320 | mogorman | 2006-01-19 19:00:46 -0600 (Thu, 19 Jan 2006) | 3 lines

solved problem with delayreject and iax trunking
bug 4291

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8323 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-20 01:07:46 +00:00
Olle Johansson
ad5eaa9aca More doxygen updates
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8315 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-20 00:18:42 +00:00
Olle Johansson
0fd8b4cb3b Doxygen updates
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8313 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-20 00:08:36 +00:00
Olle Johansson
3d456ce4f0 Add support for "musicclass" instead of "musiconhold" to make chan_zap compatible
with other channels.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8300 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-19 22:41:55 +00:00
Olle Johansson
de72ee118b Enable "musicclass" setting for sip peers
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8282 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-19 19:41:06 +00:00
Russell Bryant
6b46e27bb4 Merged revisions 8242 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r8242 | russell | 2006-01-18 23:56:48 -0500 (Wed, 18 Jan 2006) | 3 lines

fix Message-Account header to use the ip address if the fromdomain 
isn't set (issue #6278)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8243 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-19 04:58:43 +00:00
Russell Bryant
6f71e1178e constify arguments in more places where strings should not be modified (issue #6286)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8203 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-18 22:17:31 +00:00
Kevin P. Fleming
065a368463 remove some more deprecated (pre-1.2) stuff
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8157 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-17 23:45:05 +00:00
Matthew Fredrickson
6ba6a2be1c Fix answeronpolarityswitch and hanguponpolarityswitch when both are yes (#6229)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8155 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-17 23:13:42 +00:00
BJ Weschke
242a478023 Fix compiler warning.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8135 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-17 18:31:03 +00:00
Kevin P. Fleming
21347757ef don't generate any message for native bridge attempts unless all the basic checks have passed and we're actually going to try it
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8120 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-17 05:15:33 +00:00
Russell Bryant
4a7cec937d remove redundant CFLAGS for BSD which are already set in the main Makefile (issue #6250)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8101 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-16 17:51:35 +00:00
BJ Weschke
ec0c939e6f Code cleanup spawned from an earlier commit today r8063. Standardize manager event responses and queue_log behavior on callbacklogoff.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8071 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-14 03:25:38 +00:00
Matt O'Gorman
3928ebd74f Made chan_agent code parsing more robust and
implemented new macro code. from 6228.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8064 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-13 18:30:49 +00:00
BJ Weschke
1874f21ff8 Implement the autologoffunavail option in chan_agent (#6038 with some minor mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8063 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-13 18:23:30 +00:00
BJ Weschke
46b6488927 Address the condition where X-ClientCode could be NULL or an empty string - from a -dev posting.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8058 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-13 17:28:22 +00:00
Matt O'Gorman
ea06844b19 added some minor changes from bug 6046 thanks ppyy
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8049 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-13 06:43:27 +00:00
Russell Bryant
cd28843c19 fix spelling errors (issue #6227)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8048 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-13 06:11:41 +00:00
Matt O'Gorman
d6638d5262 Oops... need to keep my trunk folder clean...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8023 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-12 19:15:20 +00:00
Matt O'Gorman
1dc0312d01 Added option for limiting a user from logging in
as multiple agents at same time. bug 6046 thanks
ppyy


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8021 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-12 19:07:18 +00:00
Matt O'Gorman
57fe2e8ea2 removed unused variable and config parsing for it
as to bug 6219


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8010 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-12 16:00:04 +00:00
Russell Bryant
69c4cefcd4 fix incorrect return value (issue #6202)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7988 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-11 19:23:16 +00:00
Russell Bryant
0318a4b180 Merged revisions 7986 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r7986 | russell | 2006-01-11 14:08:53 -0500 (Wed, 11 Jan 2006) | 2 lines

move variable to correct scope (issue #6197)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7987 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-11 19:13:33 +00:00
Russell Bryant
d7f70ca1c2 Merged revisions 7972 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r7972 | russell | 2006-01-11 00:46:39 -0500 (Wed, 11 Jan 2006) | 2 lines

fix mem leak on module unload (issue #6190)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7973 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-11 05:47:21 +00:00
Russell Bryant
466a062b09 convert some channels to use the memory allocation wrappers.
(This is being added to the janitor projects list.)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7954 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-11 01:20:29 +00:00
Matthew Fredrickson
c2f0133a3b Update chan_phone to indicate FLASH properley (#4935)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7947 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-10 21:34:04 +00:00
Kevin P. Fleming
8d17df65ce Merged revisions 7917 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r7917 | kpfleming | 2006-01-09 16:48:48 -0600 (Mon, 09 Jan 2006) | 2 lines

re-initialize _all_ sequence numbers when transfer completes

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7918 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-09 23:06:28 +00:00
Olle Johansson
8e344385a2 -Move declaration of callevents variable out of the block of function declarations.
-Do not set it to a default value, it's set later on before loading configuration.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7887 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-09 15:20:53 +00:00
Tilghman Lesher
69653d9807 Bug 6150 - do not modify strings after they have been submitted into a string pool
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7872 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-09 06:42:28 +00:00
Mark Spencer
8f00194254 Fix RPID with new string fields (bug #6145)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7862 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-07 21:35:40 +00:00
Mark Spencer
9c3db147ea Handle swapout of "fromdomain" in callid properly (bug #6154)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7861 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-07 21:30:19 +00:00
Mark Spencer
1b57ae8b6c Fix build if RINGBEGIN is not defined (bug #6166)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7860 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-07 20:38:40 +00:00
Mark Spencer
e2ef61814f Add support for H.264 with SIP and recording
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7855 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-07 17:54:22 +00:00
Matthew Fredrickson
4401b7e67f Changes to allow receiving japanese callerid (Bug #5928)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7842 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-06 20:03:20 +00:00
Kevin P. Fleming
95b4988cf5 Merged revisions 7829 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r7829 | kpfleming | 2006-01-05 18:21:00 -0600 (Thu, 05 Jan 2006) | 2 lines

update agent persistence when an agent gets logged off by autologoff

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7830 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-06 00:23:19 +00:00
Kevin P. Fleming
2d4c002a2c Merged revisions 7809 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r7809 | kpfleming | 2006-01-04 18:58:29 -0600 (Wed, 04 Jan 2006) | 2 lines

send device state updates for auto-logoff of agents as well

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7810 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-05 00:58:48 +00:00
Kevin P. Fleming
ce81ea8122 remove deprecated chan_modem drivers
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7802 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-04 23:33:59 +00:00
Kevin P. Fleming
80fa9689b7 add memory-pool based string field management for structures
convert chan_sip sip_pvt and sip_registry structures to use string fields
add 'const' qualifiers to a few API calls that don't modify their input strings
add an asprintf() wrapper to astmm


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7797 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-04 21:54:09 +00:00
Matthew Fredrickson
a14916bfa5 Fixes for bug #6125
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7786 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-04 14:46:41 +00:00
Olle Johansson
72779cd6a0 Issue #5824: Adding more SIP to ISDN Cause code conversions. Thanks mguesdon!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7783 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-04 13:07:34 +00:00
Olle Johansson
b6bd455a7b Missing ">" in XML. Thanks, fenlander, for reporting this on IRC.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7777 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-04 10:16:53 +00:00
Olle Johansson
5462ec082c - Remove "incominglimit" as a configuration option in sip.conf
- Add documentation on call-limit, explaining that there's two counters
  for a type="friend". 
- Document the removval of "incominglimit" in UPGRADE.txt



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7775 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-04 09:10:56 +00:00
Kevin P. Fleming
a4f8d466e8 update copyright headers for files changed this year
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7751 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-03 22:16:23 +00:00
Olle Johansson
38cc562008 Don't check user call limits for outbound calls.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7745 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-03 19:12:50 +00:00
Olle Johansson
1e6ada5f68 Issue #5954: Implement printf-like append_history and implement AST_LIST for SIP history (rizzo)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7734 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-03 12:25:32 +00:00
Olle Johansson
4ef2139916 Bug #6071: Broken rport match in check_via(). (rizzo)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7733 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-03 11:58:10 +00:00
Olle Johansson
3b4f660a85 Bug 5345; Add configuration option for minimum registration time. (folsson)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7731 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-03 11:21:48 +00:00
Russell Bryant
9b8b2c79c6 initialize sip_auth list
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7725 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-02 23:52:33 +00:00
BJ Weschke
7aad650606 Fix compiler warnings.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7705 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-02 01:53:26 +00:00
Russell Bryant
a725468381 update doxygen docs to specify authors
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7682 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-30 21:18:06 +00:00
Russell Bryant
a6d13ff79f Merged revisions 7665 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r7665 | russell | 2005-12-28 12:35:56 -0500 (Wed, 28 Dec 2005) | 2 lines

fix memory leak in build_rpid (issue #6070)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7666 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-28 17:37:35 +00:00
Russell Bryant
37e21fc61c avoid unneeded calls to strlen in iax2 completion functions
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7659 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-27 19:48:44 +00:00
Russell Bryant
e4e5b423a4 avoid repeated calls to strlen in command completion functions and normalize
some loops


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7657 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-27 18:18:41 +00:00
Mark Spencer
63ed37defd Don't do DTMF detect on pseudo's!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7640 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-26 23:56:44 +00:00
Jim Dixon
a945b5598e Added support for Feature Group C CAMA trunks (both DP and MF), and support
for Feature Group D Tamdem trunks inbound (outbound was already there)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7636 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-26 20:01:35 +00:00
Russell Bryant
ef1ce7aec9 Merged revisions 7634 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r7634 | russell | 2005-12-26 13:19:12 -0500 (Mon, 26 Dec 2005) | 2 lines

cast time_t to an int in printf/scanf (issue #5635)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7635 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-26 18:35:28 +00:00
Russell Bryant
b60daeb58f Merged revisions 7599 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r7599 | russell | 2005-12-22 15:36:47 -0500 (Thu, 22 Dec 2005) | 3 lines

revert changes to videosupport to allow per-peer setting, since it isn't quite
complete and there is not an obvious fix at this point

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7600 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-22 20:38:43 +00:00
Russell Bryant
80322c1bdb remove stray unlock (issue #5955)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7594 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-22 16:14:38 +00:00
Kevin P. Fleming
9adc59ca3a forward-port per-peer videosupport changes from branches/1.2
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7590 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-22 03:50:44 +00:00
Russell Bryant
1d498c35cd - construct the difference and have only one call to snprintf in build_via
- convert some while loops to for loops
- localize some variables and remove unneeded initializations
- store result of get_header locally so it only has to be called once
- remove some duplicate calls to strcasecmp by storing result
(issue #5955)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7587 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-22 02:20:44 +00:00
Tilghman Lesher
134c3757d8 Merged revisions 7582 via svnmerge from
/branches/1.2


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7583 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-21 20:02:36 +00:00
BJ Weschke
a3bd5d11d3 Bug #6040 - Documentation correction
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7579 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-21 19:44:51 +00:00
Russell Bryant
9398c57e6f add AGENT function, similar to SIPPEER or IAXPEER (issue #5531)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7554 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-20 19:56:52 +00:00
Mark Spencer
0d32a85be1 Major RTP fixes for using inbound SDP on outbound connection, get rid of
old local rtp stuff...


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7551 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-20 17:52:31 +00:00
Mark Spencer
6322aaad68 Fix reload of peer contexts (bug #6007)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7540 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-20 09:39:31 +00:00