Commit graph

3781 commits

Author SHA1 Message Date
Mark Spencer
382bbb68cc Add missing pbx_loopback file...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4071 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-24 03:14:44 +00:00
Mark Spencer
82cbf28993 Add "Loopback" switch
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4070 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-24 02:53:24 +00:00
Anthony Minessale II
4959fb958c Make sure close() is not called on a fd < 1 with a wrapper call
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4069 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-23 22:00:40 +00:00
Mark Spencer
69a8f90814 Fix for FreeBSD (netbsd too?) (bug #2702)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4068 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-23 21:41:17 +00:00
Mark Spencer
d309ffbd0a Fix SMS thingy for Bezeq (bug #2708)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4067 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-23 20:34:40 +00:00
James Golovich
efd028f632 Check return value of malloc before dereferencing ptr in chan_zap.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4066 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-23 20:33:01 +00:00
Mark Spencer
ee52c6062a Fix BSD issue (bug #2668)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4065 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-23 14:15:59 +00:00
Mark Spencer
cf764b8cba Tones for singapore (bug #2688)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4064 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-23 13:08:57 +00:00
Mark Spencer
e21ed1865b First pass at making transfer work within agent (not tested, shouldn't break anything that currently worked)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4061 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-23 12:19:47 +00:00
Mark Spencer
9235f8bda3 Help leanup (bug #2677)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4060 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-23 12:17:46 +00:00
Mark Spencer
3267c78539 Add missing fixup (bug #2667)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4057 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-23 11:50:04 +00:00
James Golovich
73831ac046 More memory checks
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4056 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-23 07:03:01 +00:00
James Golovich
584418a282 Make sure malloc worked before accessing the mem in tdd.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4055 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-23 06:28:19 +00:00
James Golovich
10dfeecffe Make sure malloc worked before accessing the mem in chan_modem.c (bug 2704)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4054 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-23 06:03:29 +00:00
James Golovich
1890e5d87e Cleanup dundi-parser.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4053 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-23 04:53:12 +00:00
Jeremy McNamara
b31c4d7fb9 implement type=alias to deprecate type=h323 and a whole lot more code clean up
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4052 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-23 02:43:41 +00:00
Anthony Minessale II
4f2438acab This patch adds a new api call:
int pbx_builtin_serialize_variables(struct ast_channel *chan, char *buf, size_t size);
takes a chan and a char * 'buf' assumed to be 'size' bytes.

The function fills 'buf' with a <CR>('\n') delimited list of name,value pairs in turn delimeted by '='
eg:
SIPCALLID=f30e4e72-f715193f@1.2.3.4
SIPUSERAGENT=Sipura/SPA2000-2.0.6(c)
SIPDOMAIN=1.2.3.4

It returns the acutal number of variables encountered.
If the attempt to fill 'buf' goes beyond 'size' bytes the operation is halted and the incomplete string is returned as is.

To demonstrate a use for this, the "show channel <channame>" command has been retrofitted with the call so it also dumps all of the chan's vars

*CLI> show channel Zap/5-1
 -- General --
           Name: Zap/5-1
           Type: Zap
       UniqueID: 1098480666.17
      Caller ID: 4999
 Caller ID Name: Tony
    DNID Digits: (N/A)
          State: Up (6)
          Rings: 0
   NativeFormat: 68
    WriteFormat: 4
     ReadFormat: 4
1st File Descriptor: 22
      Frames in: 41969
     Frames out: 83240
 Time to Hangup: 0
   Elapsed Time: 0h13m54s
 --   PBX   --
        Context: phone1
      Extension: 4994
       Priority: 2
     Call Group: 2
   Pickup Group: 2
    Application: Dial
           Data: IAX2/ulaw@cube1/00010014994@croip
          Stack: 0
    Blocking in: ast_waitfor_nandfds
Variables:
DIALEDPEERNUMBER=ulaw@cube1/00010014994@croip
DIALEDPEERNAME=IAX2/cube1/3
CALLTYPE=SPEECH
tempvar=tempval


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4051 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-22 20:59:38 +00:00
Mark Spencer
c4da80e6e0 Fix some callerid output
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4050 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-22 19:45:39 +00:00
Jeremy McNamara
9f0d70a9e6 re-implement callerid, still might not be right. Remove channel limits, in favor to app_groupcount. A lot more code cleanup. Please test and report as I am sure I broke something
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4049 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-22 19:04:02 +00:00
Mark Spencer
031a65ee73 Fix minor OSP issue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4048 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-22 15:28:32 +00:00
James Golovich
487dc0897a Small verbosity fix in chan_iax2.c from bkw_
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4047 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-22 15:02:13 +00:00
James Golovich
4eab504331 Update example dundi.conf docs to include the other 2 variables that can be used in the destination string
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4046 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-22 14:52:42 +00:00
Mark Spencer
8c4657bddf Work on precaching
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4045 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-22 14:19:11 +00:00
Mark Spencer
28e37def56 Fixed in CVS head.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4044 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-22 13:24:00 +00:00
Mark Spencer
3c8a994aed Handle unknown 1xx reponses as 100 (bug #2698)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4043 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-22 13:18:20 +00:00
Mark Spencer
e5091a2b33 Fix the shrink_number to not remove the trailing '.'
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4042 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-22 13:08:35 +00:00
Ben Kramer
898a67b80e / updated caller ID to use the new structures and re-enabled
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4041 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-21 05:03:00 +00:00
Mark Spencer
a73fc9a283 Disable mac lookup, fix compile on NetBSD (bug #2680)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4040 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-20 12:47:03 +00:00
Mark Spencer
0a9fd1435b Fix initialization tiddly bit
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4039 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-20 12:39:22 +00:00
James Golovich
c7c92a9f15 Fix typo and missing format string in a fprintf in lock.h
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4038 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-20 05:45:09 +00:00
Mark Spencer
91cdb43004 Fix potential segfault.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4037 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-20 04:27:31 +00:00
Mark Spencer
96a557c6bf Put Constantine's last name in
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4036 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-19 21:16:46 +00:00
Mark Spencer
7bcb9629fd Send empty frames when missing frames arrive (hope this doesn't break anything)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4035 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-19 21:07:10 +00:00
Mark Spencer
17e80052e5 Don't "ignore" on CANCEL (bug #2670)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4034 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-19 03:17:26 +00:00
Mark Spencer
06dfca5d24 Add DUNDi.... (http://www.dundi.com)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4033 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-18 21:45:13 +00:00
Mark Spencer
8405193cff Delete old app_qcall (obsolete)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4032 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-18 01:32:24 +00:00
Mark Spencer
e1dcf90094 Fix ndbm compile warnings (bug #2540)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4031 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-17 22:24:46 +00:00
Mark Spencer
12e2fe4d94 Thread fixes, vm fix (bug #2665)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4030 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-17 22:13:05 +00:00
James Golovich
9f5f95fe87 Remove late-night excuse for wasting cpu cycles. revert previous res_agi change
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4029 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-17 05:16:22 +00:00
James Golovich
f3ad3d0359 Fix chan_zap reload with pseudo channels (bug 2664)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4028 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-17 05:05:22 +00:00
Mark Spencer
dfdf53c00d Put a real beep...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4026 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-17 00:10:07 +00:00
Mark Spencer
c646d9ce18 Don't restart PRI channels
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4025 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-16 22:44:53 +00:00
Mark Spencer
9b46246c2b Improve peer stats (bug #2635)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4024 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-16 22:40:48 +00:00
Mark Spencer
06857dcdd9 Make chan_zap reloadable (bug #2637)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4023 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-16 22:34:57 +00:00
Mark Spencer
3e5368b763 Provide module command completion (make twisted happy)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4022 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-16 21:14:05 +00:00
Mark Spencer
a3e8fa573c Handle a few more cases of realtime and voicemail (bug #2648)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4021 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-16 20:01:57 +00:00
Mark Spencer
996c8e7126 Add autofallthrough mode
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4020 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-16 19:46:02 +00:00
Mark Spencer
eadd6c5509 Oops it didn't make it in
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4018 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-16 16:00:04 +00:00
Mark Spencer
787822b4c8 Minor improvements to debug output (bug #2644)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4017 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-16 15:36:16 +00:00
Mark Spencer
1e0c75701e Fix hangup handling with chansiavail with agent (bug #2658)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4015 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-16 15:01:59 +00:00