Luigi Rizzo
bd01d66909
merge two nested 'if' which are really a single block.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21595 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
9476cb356e
fix indentation of a large block
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21572 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
501c9e181c
start sorting out the duplicated code in the privacy handler
...
for future removal
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21568 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
b3343aecdf
merge two nested 'if' which are really a single block.
...
(indentation still to be fixed)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21566 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
73f2d344fb
more localization and variable removal
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21538 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
c9f669e56d
more localization of variables
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21537 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
c6a8784e95
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: https://origsvn.digium.com/svn/asterisk/trunk@21536 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
0f4a1bc9ac
localize some variables
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21535 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
2bdcaa4849
extract a common condition.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21508 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
25eb0525d9
fix indentation of some large blocks after previous changes
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21481 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
25c6ab22f9
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: https://origsvn.digium.com/svn/asterisk/trunk@21480 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
acf0f038dc
more simplifications
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21479 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
3aaaa41609
start cleaning up this code so we can split the 900 lines function
...
into manageable chunks.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21468 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
2745be5b26
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: https://origsvn.digium.com/svn/asterisk/trunk@21451 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
d93234c25b
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: https://origsvn.digium.com/svn/asterisk/trunk@21421 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
64fbe4cbc5
add example syntax for new-style number and date spelling
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21420 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
da7721169d
one more client for find_context_locked(),
...
plus a few minor fixes.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21393 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
065367db37
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: https://origsvn.digium.com/svn/asterisk/trunk@21392 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
91b441abdf
replace repeated code to walk contexts with a function,
...
find_context_locked()
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21365 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
585e50fb38
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: https://origsvn.digium.com/svn/asterisk/trunk@21338 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
52430bda0d
- 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: https://origsvn.digium.com/svn/asterisk/trunk@21311 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
4403905c2d
Add reference to RFC for mailbox notification
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21277 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
d0f254ef61
Cosmetic fixes to code...
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21262 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
cc2fb34bb3
fix obvious breakage
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21239 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
bcecc3d863
doh! don't double-increment the bracket count for embedded references
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21236 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
c87f4bd7a8
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: https://origsvn.digium.com/svn/asterisk/trunk@21235 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
d85073dc1f
correct array index calculation (thanks mtaht3!)
...
update header file comments to reflect new usage of structure field
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21207 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
501ac5189c
update res_odbc to support pooled connections
...
(from tilghman's developer branch, res_odbc_rewrite)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21181 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
fc2d28805b
- call parking improvements (part of the siptransfer branch)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21157 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
2af3d42e9b
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: https://origsvn.digium.com/svn/asterisk/trunk@21131 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
021876711f
Do not depend on having an end sound for stopping the bridge when time runs out. (issue #6979 reported by ppyy)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21130 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
910c44b1b6
Clean up handle_response_peerpoke
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21129 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
60d91caa23
Change sip show channels to include refer status
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21128 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
1fec0e47e7
- Deallocate refer structure at sip_destroy time
...
- Implement new sip_transfer() function
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21127 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
52ac09f78f
simplify logic in iax2_bridge()
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21126 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
9df5296c9b
simplify logic in various functions, remove unnecessary variables
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21099 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
c14427878a
remove a line that was added by mistake
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21098 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
51743a4aea
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: https://origsvn.digium.com/svn/asterisk/trunk@21097 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
177b8e9143
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: https://origsvn.digium.com/svn/asterisk/trunk@21061 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
2c73c08f5a
use XMIT_RELIABLE ...
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21043 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
40161ae947
- Move subscribeuri away from refer-to, since refer-to is moving away from sip_pvt
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21039 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Tilghman Lesher
8a066de957
Merged revisions 21037 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r21037 | tilghman | 2006-04-18 01:26:04 -0500 (Tue, 18 Apr 2006) | 2 lines
Bug 6984 - off by one error in Random()
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21038 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Tilghman Lesher
5bcdea5102
Merged revisions 20966 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r20966 | tilghman | 2006-04-17 12:00:16 -0500 (Mon, 17 Apr 2006) | 2 lines
Bug 6544 - when we remove a music class, the thread servicing it should die
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21002 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
fc071a182b
actually return the number steps... not the number of steps minus 1
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20964 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
2229586d71
more module loader related fixes
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20963 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
987f24840c
add an API so that the number of steps required for a translation path can be acquired
...
don't transcode via SLINEAR when the option is enabled but there is a direct path from the source to the destination
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20962 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
080298dad4
Set timeout timers to Timer A and F in rfc 3261, section 17
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20932 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
ea7f924b30
Change transmit_invite(). SIP Transfers are now broken officially, while
...
waiting for the rest of the patches... This is the dev branch, after all.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20931 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
5320c6b76a
- Add supported header
...
- Send cause codes as well
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20908 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
42918c225a
Add more history on masqs
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20903 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago