rizzo
ac7e695cf8
make NULL and "" equivalent in cid fields, mark some missing NULL checks.
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21814 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21 10:05:45 +00:00
rizzo
723fba46b4
make NULL and "" equivalent for some cid fields.
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21792 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21 10:00:58 +00:00
rizzo
7eb73ddcb4
Replace three replicas of the same code with a function.
...
Consider NULL and "" as equivalent in cid strings.
On passing, also remove an extra data copy.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21786 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21 09:54:23 +00:00
rizzo
1d299362e5
comment that for callerid field, NULL and "" should be considered
...
equivalent (the reason is, when passing these strings through a
statically allocated buffer, we have no way to tell between NULL and ""
so we would be unable to preserve the difference, if any).
No code changes yet.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21743 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-20 17:39:44 +00:00
oej
8791c86837
Clarify result of sipsock_read
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21707 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 23:49:36 +00:00
russell
5141b94617
add the malloc attribute to the memory allocation wrappers
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21681 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 22:32:07 +00:00
kpfleming
7e5f8397c9
Merged revisions 21638 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r21638 | kpfleming | 2006-04-19 16:10:41 -0500 (Wed, 19 Apr 2006) | 2 lines
support system-specific scripts in safe_asterisk, before starting Asterisk proper
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21639 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 21:11:31 +00:00
tilghman
09d0ad17df
Merged revisions 21597 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r21597 | tilghman | 2006-04-19 13:43:17 -0500 (Wed, 19 Apr 2006) | 2 lines
Bug 6553 - plug memory leaks when ODBC connection is down
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21600 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 18:56:38 +00:00
tilghman
0770086ef6
Oops, wasn't revised the way I thought it was
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21599 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 18:50:51 +00:00
tilghman
cb2026c417
Blocked revisions 21597 via svnmerge
...
........
r21597 | tilghman | 2006-04-19 13:43:17 -0500 (Wed, 19 Apr 2006) | 2 lines
Bug 6553 - plug memory leaks when ODBC connection is down
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21598 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 18:44:58 +00:00
rizzo
6260677f40
move a replicated block of code in the one place where it belongs.
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21596 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 18:15:20 +00:00
rizzo
87ebbc8741
merge two nested 'if' which are really a single block.
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21595 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 18:07:19 +00:00
rizzo
666223ee12
fix indentation of a large block
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21572 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 18:00:32 +00:00
rizzo
518e82afed
start sorting out the duplicated code in the privacy handler
...
for future removal
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21568 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 17:58:07 +00:00
rizzo
b741dee519
merge two nested 'if' which are really a single block.
...
(indentation still to be fixed)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21566 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 17:29:15 +00:00
rizzo
d9253cdc8e
more localization and variable removal
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21538 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 16:54:04 +00:00
rizzo
f29e1b1964
more localization of variables
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21537 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 16:36:15 +00:00
rizzo
a4532658d7
localize one more variable;
...
use ast_strdup as it can handle the NULL argument well.
mark a dubious piece of code with XXX
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21536 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 16:19:52 +00:00
rizzo
7ee16ede87
localize some variables
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21535 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 16:10:11 +00:00
rizzo
14d3d9ccee
extract a common condition.
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21508 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 15:15:03 +00:00
rizzo
fa37f7b8c6
fix indentation of some large blocks after previous changes
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21481 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 14:53:18 +00:00
rizzo
0de7e5711d
more simplifications - use a local variable c instead of o->chan,
...
use S_OR as appropriate.
Still need to fix the indentation of some blocks.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21480 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 14:50:17 +00:00
rizzo
f1040ec28d
more simplifications
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21479 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 14:14:40 +00:00
rizzo
5e2602c190
start cleaning up this code so we can split the 900 lines function
...
into manageable chunks.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21468 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 14:02:49 +00:00
rizzo
fdc5c40dad
support 'languageprefix' in asterisk.conf to modify the algorithm
...
to build pathnames for language-specific files (see file.c for
a description)
Default, of course, to the standard behaviour.
We don't have an asterisk.conf.sample to put an example of use!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21451 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 13:59:34 +00:00
rizzo
27af7fef71
add experimental code for new-style "say" application.
...
The rules for spelling out numbers and dates are in the config
file "say.conf", which can be edited to implement national
or even local language rules.
The new code can be enabled through the cli command
'say load new'
while the old code can be restored with
'say load old'
Eventually, this code should go to a better place,
but for the time being we keep here as it provides
very similar functions.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21421 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 10:27:31 +00:00
rizzo
74f77f2d5c
add example syntax for new-style number and date spelling
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21420 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 10:21:58 +00:00
rizzo
45d0c2be63
one more client for find_context_locked(),
...
plus a few minor fixes.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21393 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 09:31:41 +00:00
rizzo
c8c4bc662e
use a function, set_ext_pri(), to assign extension and priority.
...
On passing, fix a bug in __ast_pbx_run() where the wrong priority
was used in a call to ast_exists_extension() (see comment in the code).
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21392 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 09:18:30 +00:00
rizzo
fb843aa020
replace repeated code to walk contexts with a function,
...
find_context_locked()
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21365 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 08:52:15 +00:00
rizzo
8dc8ee64d0
move to a different file (channel.c for the time being) the
...
wrappers around the basic 'say' functions, and redeclare these
wrappers as ordinary functions rather than function pointers.
This way, alternative implementations of the 'say' functions
will only have to implement the basic functions and not the
wrappers.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21338 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 07:23:22 +00:00
rizzo
e05d203399
- use ast_calloc instead of ast_malloc
...
- use ast_channel_lock/unlock in a few places
- comment some dubious pieces of code
- use memset to zero a buffer
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21311 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 06:58:20 +00:00
oej
053d1ead69
Add reference to RFC for mailbox notification
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21277 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 00:45:37 +00:00
oej
6b7dee41bb
Cosmetic fixes to code...
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21262 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 00:04:03 +00:00
kpfleming
0d9156fc12
fix obvious breakage
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21239 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-18 23:50:59 +00:00
kpfleming
350446cca6
doh! don't double-increment the bracket count for embedded references
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21236 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-18 23:25:22 +00:00
kpfleming
7ddbf31401
don't ignore left-curly-braces when searching for the end of a variable/function reference; match them up with right-curly-braces so we choose the proper brace to end the reference (will still fail to parse properly if the reference contains unbalanced braces)
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21235 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-18 23:24:02 +00:00
kpfleming
fd7889f0d9
correct array index calculation (thanks mtaht3!)
...
update header file comments to reflect new usage of structure field
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21207 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-18 21:39:20 +00:00
russell
184bfd1c04
update res_odbc to support pooled connections
...
(from tilghman's developer branch, res_odbc_rewrite)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21181 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-18 18:16:32 +00:00
oej
ac1154dd82
- call parking improvements (part of the siptransfer branch)
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21157 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-18 15:09:01 +00:00
oej
8864116d9d
Implement somewhat improved support for 481 Call leg does not exist responses...
...
- There are some questions on what to do here, but it is a first step.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21131 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-18 14:50:30 +00:00
file
d982dbbcce
Do not depend on having an end sound for stopping the bridge when time runs out. (issue #6979 reported by ppyy)
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21130 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-18 14:43:32 +00:00
oej
9139d9e123
Clean up handle_response_peerpoke
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21129 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-18 14:41:57 +00:00
oej
141aca445b
Change sip show channels to include refer status
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21128 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-18 14:37:54 +00:00
oej
13a71cab1d
- Deallocate refer structure at sip_destroy time
...
- Implement new sip_transfer() function
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21127 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-18 14:35:15 +00:00
rizzo
232d4d60ba
simplify logic in iax2_bridge()
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21126 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-18 14:23:14 +00:00
rizzo
3f25044e55
simplify logic in various functions, remove unnecessary variables
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21099 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-18 13:37:07 +00:00
rizzo
37bc058d8d
remove a line that was added by mistake
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21098 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-18 13:17:44 +00:00
rizzo
a07c757961
simplify the flow of builtin_atxfer().
...
There is still a lot of similarity with builtin_blindtransfer()
which should be removed by definining functions for the common
pieces of code (eg in the first part).
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21097 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-18 13:05:48 +00:00
oej
8169417975
It's critical that we get an ACK on a 200 OK to an INVITE. If we do not get the ACK,
...
tear down the call. (Discovered at SIPit18)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21061 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-18 07:03:36 +00:00