Commit Graph

3769 Commits

Author SHA1 Message Date
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
Mark Spencer 94ba880548 Generate CDR's for failed outbound spool
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4014 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-15 17:51:37 +00:00
Jeremy McNamara ddd6a40a44 stop seg on reload if no h323.conf file and hopefully not break the monitor thread
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4013 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-15 07:07:50 +00:00
Jeremy McNamara 839d68586b stop a seggy..it helps if you dont try to print out something we already know is NULL :)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4012 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-14 23:59:22 +00:00
Mark Spencer def2962670 Fix some small typos (bug #2649)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4004 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-14 18:48:04 +00:00
Mark Spencer f8ee49646c Forget fullcontact when specific number is dialed (bug #2620)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4003 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-14 18:29:47 +00:00
Mark Spencer 4ff125c703 Fix iLBC compiler warnings
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4002 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-14 05:45:34 +00:00
Jeremy McNamara f84de658d4 be more explicit
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4001 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-14 05:32:07 +00:00
Jeremy McNamara 1dfc11aec9 use the right variable to ensure it copied correctly
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4000 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-14 05:29:55 +00:00
Jeremy McNamara 34e4f69f84 document proper usage of Bindaddr and type=peer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3999 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-14 05:24:39 +00:00
Jeremy McNamara 9695141c09 sorta fix External IP Address discovery. We really need a better way than bindaddr, but this hack works, for now
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3998 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-14 05:21:12 +00:00
Mark Spencer d4ff9abc61 Update to new iLBC codec
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3997 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-14 05:15:48 +00:00
Mark Spencer 7c4337dc91 Add option for "show modules like" (bug #2643)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3996 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-14 04:38:29 +00:00