dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

10423 Commits

Author SHA1 Message Date
rizzo 0e4858d26a Bring in the improved internal API for the CLI.
WATCH OUT: this changes the binary interface (ABI) for modules,
so e.g. users of g729 codecs need a rebuilt module (but read below).

The new way to write CLI handlers is described in detail in cli.h,
and there are a few converted handlers in cli.c, look for NEW_CLI.

After converting a couple of commands i am convinced that
it is reasonably convenient to use, and it makes it easier to fix the
pending CLI issues.

On passing, note a bug with the current 'complete' architecture:
if a command is a prefix of multiple CLI entries, we miss some
of the possible options. As an example, "core set debug" can
continue with "channel" from one CLI entry, and "off" or "atleast"
from another one.

We address this problem in a separate commit
(when i have figured out a fix, that is).

ABI issues:
I asked Kevin if it was ok to make this change and he said yes.
While it would have been possible to make the change without breaking
the module ABI, the code would have been more convoluted.

I am happy to restore the old ABI (while still being able
to use the "new style" handlers) if there is demand.




git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47606 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-14 15:23:35 +00:00
oej 8426096bec Adding some debug output to trace bug in realtime
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47600 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-14 13:17:38 +00:00
oej b59f34d960 Adding a new debug line for issue #7351 - trying to find where an ACK can overwrite the initreq...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47599 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-14 12:32:46 +00:00
oej 2b41d1ee70 Issue #8272 imported from 1.2/1.4 - Let the peerpoke system destroy it's own packets, please.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47598 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-14 11:26:06 +00:00
oej 990f79b1f8 Remove flags not used any more (thanks Luigi)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47595 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-14 11:00:33 +00:00
mogorman 2cb1f3cd3a oops no parens
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47587 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 22:40:01 +00:00
mogorman 40c81526fe fix bytesize to 5.3kb for g723 codec and add support for multimode of tc400p
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47586 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 22:01:43 +00:00
file bca8e89c10 Merged revisions 47584 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r47584 | file | 2006-11-13 16:28:57 -0500 (Mon, 13 Nov 2006) | 10 lines

Merged revisions 47583 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r47583 | file | 2006-11-13 16:26:36 -0500 (Mon, 13 Nov 2006) | 2 lines

Initialize global pointers for connection and result to NULL. (issue #8356 reported by james)

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47585 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 21:32:13 +00:00
tilghman bbd7578ad2 Merged revisions 47581 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r47581 | tilghman | 2006-11-13 14:20:01 -0600 (Mon, 13 Nov 2006) | 10 lines

Merged revisions 47580 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r47580 | tilghman | 2006-11-13 14:18:30 -0600 (Mon, 13 Nov 2006) | 2 lines

Having more than 255 old messages caused corruption in the new/old count

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47582 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 20:21:33 +00:00
oej 61fb405acd Small fix for uncommon scenario.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47579 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 19:20:54 +00:00
murf df34be1201 Blocking 47576 from merging into trunk. Already done in 47577
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47578 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 19:19:16 +00:00
murf 6e9131d2e7 This solves bug 8342, whereby a crash occurs under certain circumstances while reading a config file with comments-- a call to CB_ADD shouldn't happen if withcomments is zero
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47577 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 19:15:45 +00:00
file 2ebbeceba3 Make chan_h323 build again and make the CLI commands work. (reported on asterisk-dev mailing list by Di-Shi Sun)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47575 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 19:14:39 +00:00
tilghman 48c789f43e Blocked revisions 47573 via svnmerge
........
r47573 | tilghman | 2006-11-13 13:11:15 -0600 (Mon, 13 Nov 2006) | 2 lines

Re-enable old deprecated commands

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47574 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 19:12:23 +00:00
murf d0b7a4baec blocked 47564 from 1.4 to be merged onto trunk; 47566 already did it
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47568 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 18:24:20 +00:00
file 46489d816d Add 'loose' option to joinempty and leavewhenempty which is almost exactly like 'strict' except it does not count paused queue members as unavailable. (issue #8263 reported by gnarf)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47567 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 18:23:55 +00:00
murf d9a503cf36 Eager people beat me to fixing the messed if, but we all forgot to update the regressions. Until now.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47566 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 18:20:56 +00:00
file caa25dd02a Don't play the "entering conference number <insert number here>" prompts if the 'q' option is used. If others believe this should be in 1.2/1.4 then we can put it in, but I'm uncomfortable doing so right now as it is a change of behavior. (issue #8138 reported by tmancill)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47560 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 17:55:24 +00:00
file 6539de0a92 Blocked revisions 47558 via svnmerge
........
r47558 | file | 2006-11-13 12:38:44 -0500 (Mon, 13 Nov 2006) | 2 lines

Clean up last commit to better conform to standards.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47559 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 17:41:22 +00:00
file 289bbd4bb1 Clean up last commit to better conform to standards.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47556 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 17:36:28 +00:00
murf 88101c7d3d Blocking 47553 from 1.4 to trunk... 47554 is done for it.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47555 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 17:36:01 +00:00
murf 95c4f20c77 AEL need not complain about parkedcalls not being found... just confuses users
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47554 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 17:32:16 +00:00
file 334bc5ed8e Merged revisions 47551 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r47551 | file | 2006-11-13 12:08:07 -0500 (Mon, 13 Nov 2006) | 10 lines

Merged revisions 47549 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r47549 | file | 2006-11-13 12:05:32 -0500 (Mon, 13 Nov 2006) | 2 lines

When sending an SMS with a user data header properly set the UDH flag in the first byte. (issue #8347 reported by hoffmeis)

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47552 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 17:10:21 +00:00
file 5159dc5744 Return module show to a working state. (issue #8353 reported by jserve)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47544 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 16:41:45 +00:00
file 46b271a1cf Blocked revisions 47542 via svnmerge
........
r47542 | file | 2006-11-13 11:30:38 -0500 (Mon, 13 Nov 2006) | 2 lines

Free full command string upon unregistering of CLI command. Backported from revision 47536 from rizzo.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47543 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 16:33:46 +00:00
oej 79b5b078e8 Only produce error message once, don't fill the screen with them...
(Testing SIPP thanks to JerJer and Greg)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47541 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 16:08:12 +00:00
rizzo b01f2aed4f merge from astobj2-r47450: use UNLINK to remove a packet from its queue,
and related code rearrangement.

Approved by: oej

This could be made better if we declared

	struct sip_pvt *dialpg = pkt->owner;

at the beginning of the function, and use it throughout the function.
I'll let the boss decide :)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47539 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 14:29:31 +00:00
rizzo e015f38800 merge from codename-pineapple and astobj2 47499:
simplify __sip_ack() removing a strcmp for looking up packets.

no functional change, only performance, so don't need to merging
to earlier branches now.

Approved By: oej



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47538 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 14:14:54 +00:00
rizzo 20893eb9b2 stop looking for new entries when we know we are done.
there is no functional change, so it is not necessary to
bother merging this to 1.4 now.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47537 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 12:04:05 +00:00
rizzo 7b4d165daf free memory when unregistering an entry.
needs to be merged to 1.4



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47536 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 12:01:25 +00:00
tilghman ce5fb49475 Feature: allow the sanity SQL to be customized per connection class (Issue 6453)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47530 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 05:58:14 +00:00
russell da354ac2dc Merged revisions 47527 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47527 | russell | 2006-11-13 00:48:18 -0500 (Mon, 13 Nov 2006) | 5 lines

AC_PROG_SED is included in autoconf 2.60, but apparently it is not included
in 2.59.  So, to maintain compatability with 2.59 since it is a small change,
copy this macro into acinclude.m4 and rename it to AST_PROG_SED.
(issue #8345)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47529 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 05:51:30 +00:00
tilghman 4842de7af9 Merged revisions 47526 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r47526 | tilghman | 2006-11-12 23:46:18 -0600 (Sun, 12 Nov 2006) | 10 lines

Merged revisions 47525 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r47525 | tilghman | 2006-11-12 23:45:11 -0600 (Sun, 12 Nov 2006) | 2 lines

If the execute fails a second time, make sure that we don't pass back a stale handle

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47528 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 05:48:27 +00:00
tilghman 438ce2cd40 Merged revisions 47523 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r47523 | tilghman | 2006-11-12 19:12:01 -0600 (Sun, 12 Nov 2006) | 10 lines

Merged revisions 47522 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r47522 | tilghman | 2006-11-12 18:34:44 -0600 (Sun, 12 Nov 2006) | 2 lines

Don't play dialtone if the seizing the channel fails (Bug 7754)

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47524 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 01:16:30 +00:00
oej 1def9ea826 Part of patch in #7403 to improve tag checking in pedantic mode (stephen_dredge)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47521 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-12 20:47:25 +00:00
russell c01dbd5df9 The use of an ifdef to check for FreeBSD is useless here because the two
versions of the format string are identical.  Also, since each format is only
used once, get rid of the use of defines all together.  (issue #8344, julieng)

In passing, also clean up the formatting a but to get rid of the nesting
without the use of braces, as defined in the coding guidelines.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47520 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-12 19:22:19 +00:00
oej a4a189a21e Restore auto-framing (DEA). Imported from 1.4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47514 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-12 16:15:49 +00:00
oej 819723f810 - Support UDPTL as well as udptl in T38 sdp.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47512 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-12 15:40:03 +00:00
oej d738b50d7f - Don't hangup because of failed re-invite. Go back to previous state.
- Keep RTP running during T.38 session
  We might improve the code to issue ast_rtp_stop if T.38 re-invite not fails
  later on in the code, but I don't see many reasons to.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47510 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-12 15:30:48 +00:00
oej 63fd05e1d5 - Add some comments to t.38 code
- Remove improper blocking of ptime: in SDP


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47508 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-12 15:14:35 +00:00
russell 026703da23 Merged revisions 47497 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r47497 | russell | 2006-11-12 01:23:23 -0500 (Sun, 12 Nov 2006) | 12 lines

Merged revisions 47496 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r47496 | russell | 2006-11-12 01:09:03 -0500 (Sun, 12 Nov 2006) | 4 lines

Only do the check to determine whether the channel calling this function is an
IAX2 channel when getting the IP address using the special argument, 
CURRENTCHANNEL.  (issue #8341, jcovert)

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47498 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-12 06:31:39 +00:00
russell 7b8b1285b7 Merged revisions 47494 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47494 | russell | 2006-11-11 10:31:08 -0500 (Sat, 11 Nov 2006) | 6 lines

Add the target "menuconfig" as an alias for the "menuselect" target.  This is
just a favor to users so that if you accidentally type "make menuconfig"
instead of "make menuselect", it still works.
(inspired by a comment on IRC from wangster calling me an "especially devious
asterisk developer" for having it be menuselect instead of menuconfig. :) )

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47495 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-11 15:33:06 +00:00
russell 3eb38fa3bf Merged revisions 47492 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47492 | russell | 2006-11-11 10:18:02 -0500 (Sat, 11 Nov 2006) | 2 lines

Tweak the formatting of this new function to better conform to coding guidelines.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47493 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-11 15:22:08 +00:00
mogorman d1557a9c08 safe terminal output is sweet.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47491 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-11 02:12:27 +00:00
mattf cd1b5fdda1 Make sure we don't use 32bits for a value that only requires 1 bit. Also, fix a compiler warning for one of the SS7 functions.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47478 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-10 22:06:11 +00:00
oej 185973285b Add some history and fix some debug output for autodestruct.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47477 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-10 21:55:31 +00:00
oej e30ea886fa Proper fix for adding debug...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47475 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-10 21:39:58 +00:00
oej 31b1d8b124 Make sure we destroy dialog in case of loop
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47468 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-10 20:31:57 +00:00
oej 80b2150063 Cleanup imported from 1.4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47467 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-10 20:25:32 +00:00
file f3a3df4b82 Fine, take this.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47465 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-10 20:05:31 +00:00