Commit graph

2431 commits

Author SHA1 Message Date
Russell Bryant
d0ff6c46f8 add missing break (issue #5154)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6552 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-08 15:34:38 +00:00
Russell Bryant
720272254b initialize these variables because they could be used uninitialized in the
case that the codec capabilities are 0, oops


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6545 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-07 23:29:17 +00:00
Kevin P. Fleming
a51556ff3e don't reject REGREL requests (issue #5152)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6544 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-07 23:18:39 +00:00
Kevin P. Fleming
1e854ea773 remove useless buffer initializations (issue #5134)
convert pbx_dundi to use ast_copy_string) (issue #5134)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6540 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-07 21:01:31 +00:00
Kevin P. Fleming
04a954ae16 ensure debug messages are only output if debug is enabled (issue #5142)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6539 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-07 20:54:19 +00:00
Matthew Fredrickson
6f78afbe00 Revert change that removed q931_call structure too soon
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6538 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-07 20:52:17 +00:00
Kevin P. Fleming
c70e1d1674 handle no-peer-specified-in-dial-string gracefully (issue #5132)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6537 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-07 20:52:03 +00:00
Kevin P. Fleming
836916dab4 add doxygen documentation (issue #5133)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6536 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-07 20:44:57 +00:00
Kevin P. Fleming
1bd1a35a9a factor out INVITE response handling in its own function (issue #5127)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6532 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-07 19:00:31 +00:00
Kevin P. Fleming
7d37750831 remove unneeded variables (issue #5117)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6528 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-07 18:49:32 +00:00
Josh Roberson
8f21e3659b Fix spelling of Accountcode. *wink*
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6524 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-07 04:23:15 +00:00
Kevin P. Fleming
5fdc070109 add new channel option (via ast_channel_setoption()) to let channel drivers adjust txgain/rxgain if they are able (only Zap channels at this time)
modify app_chanspy to use new gain option
reformat app_chanspy to match coding guidelines
add user-controlled volume adjustment to app_meetme (issue #4170, heavily modified to actually work on Zap channels)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6519 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-07 01:30:01 +00:00
Mark Spencer
2f67f66577 Allow "auto" dtmf mode to select between RFC2833 and inband based on peer's offer or answer.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6518 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-06 21:04:40 +00:00
Mark Spencer
bcd06b8582 Don't recreate stuff on authentication (so it works on reinvites)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6517 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-06 20:03:31 +00:00
Matthew Fredrickson
7348cba9c7 Fixed possible hangup race condition that would lead to segfualt with hangups.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6516 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-06 17:50:55 +00:00
Kevin P. Fleming
aa6883aba6 revert unnecessary change
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6513 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-02 19:38:08 +00:00
Kevin P. Fleming
3bad83e0f2 ensure that notify message sent out have the correct state (issue #5088 with minor mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6509 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-02 19:24:32 +00:00
Kevin P. Fleming
6a260b78fe use unsigned char for data elements and native-signed char for strings (issue #5104)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6508 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-02 19:17:19 +00:00
Mark Spencer
0602837f4e Fix vidupdate for chan_zap to eliminate sillyl warning
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6505 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-02 18:43:36 +00:00
Kevin P. Fleming
5f6431a75a factor calling-plan-apply logic into a separate function
apply calling plan to RDNIS


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6504 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-02 18:37:53 +00:00
Kevin P. Fleming
a2be145193 make chan_iax2 rtupdate behave the same as chan_sip
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6501 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-02 14:19:36 +00:00
Kevin P. Fleming
6b76015469 allow for custom URI options to be set (issue #4927 with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6499 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-01 23:01:54 +00:00
Kevin P. Fleming
d3a76999d0 various devicestate fixes (issue #5081, take two)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6496 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-01 22:28:33 +00:00
Kevin P. Fleming
3a31b6ff2d don't try to reference through pvt if it is NULL (issue #5089)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6495 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-01 22:11:02 +00:00
Kevin P. Fleming
8fc8505607 don't send warnings for unhandled indications, let ast_indicate() deal with them (issue #5097)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6491 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-01 21:56:39 +00:00
Kevin P. Fleming
4f493d1126 don't add a colon to the header name (thanks bkw!)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6488 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-01 21:09:34 +00:00
Matthew Fredrickson
c88ab78d47 New, more robust way of doing e&m digit collection. Bug #3805
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6483 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-01 19:02:37 +00:00
Matthew Fredrickson
25d9051633 Make sure we enable echo cancellation on incoming overlapdial calls
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6481 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-01 17:38:25 +00:00
Kevin P. Fleming
e86bb70642 stop adding 'username@' to incoming IAX2 channel names, so that they can be properly matched in the device-state system (issue #5081)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6477 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-31 22:13:40 +00:00
Kevin P. Fleming
050d6c7d34 ensure revents fields are initialized before calling poll()
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6476 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-31 22:12:23 +00:00
Kevin P. Fleming
5b819fc101 stop retransmitting INVITE after we have sent CANCEL for the same call
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6472 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-31 19:53:38 +00:00
Mark Spencer
ac0eaaf1f2 Add support for ring begin event and configurable ringtimeout.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6470 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-31 05:02:33 +00:00
Kevin P. Fleming
f3c46f8f20 deprecate chan_modem and its subdrivers
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6465 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-31 02:54:06 +00:00
Kevin P. Fleming
bef3341975 remove unused define
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6462 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-31 00:27:33 +00:00
Kevin P. Fleming
102ff2d56e preserve user-added headers when outbound INVITE must be authenticated (issue #5070)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6461 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-30 21:59:01 +00:00
Kevin P. Fleming
085ad00ee0 don't terminate subscriptions before they should be (issue #5063)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6459 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-30 21:34:41 +00:00
Kevin P. Fleming
5f07eec58a remove unused 'outgoinglimit' code, rename 'incominglimit' to 'call-limit' (old syntax is still supported) (issue #5068)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6458 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-30 21:26:33 +00:00
Kevin P. Fleming
6d19c704b7 make chan_sip and chan_iax2 less chatty when not in debug mode (issue #5067)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6457 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-30 21:20:59 +00:00
Matthew Fredrickson
98047ff61d Add support for override of the default pri exclusive/preferred channel
selection behavior


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6451 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-30 15:39:43 +00:00
Kevin P. Fleming
9519f6c5f4 clean up, use make functions instead of subshells, remove unused stuff
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6449 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-30 02:54:02 +00:00
Mark Spencer
5d4d2fdfd4 Add SIP video fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6448 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-30 02:12:09 +00:00
Kevin P. Fleming
538e160956 fix error I introduced into oej's patch :-(
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6447 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-30 01:04:17 +00:00
Kevin P. Fleming
388e8bd9a8 massive upgrade to SUBSCRIBE, device state and messaging support (issue #3644)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6446 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-29 23:53:29 +00:00
Kevin P. Fleming
ae1e51c857 use proper next hop in strict routing mode (issue #3609)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6443 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-29 23:03:07 +00:00
Kevin P. Fleming
1824c2f630 encode/decode URIs in 'pedantic' mode (issue #3923)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6441 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-29 22:39:39 +00:00
Kevin P. Fleming
3ac4417753 eliminate warning when !ZAPATA_PRI
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6438 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-29 21:18:20 +00:00
Russell Bryant
14fa6770e4 fix build when NEWJB is not defined (issue #5046)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6434 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-29 16:19:07 +00:00
Kevin P. Fleming
99929b21e4 preserve hint watchers and laststate across 'extensions reload' (issue #2522)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6431 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-27 23:55:14 +00:00
Kevin P. Fleming
ffe23eb007 add AgentCallbackLogin and AgentLogoff manager actions (issue #4766)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6427 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-26 20:24:16 +00:00
Kevin P. Fleming
da627fc643 use case-insensitive comparisons for headears (issue #5023)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6423 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-26 20:04:28 +00:00
Kevin P. Fleming
529fcab374 add T1 timer support for NOTIFY dialogs (issue #5017)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6405 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-25 03:44:22 +00:00
Kevin P. Fleming
1cb8d00523 ensure Asterisk won't segfault during re-registration (issue #5011)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6402 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-25 02:33:21 +00:00
Kevin P. Fleming
bf6bc6d4fd clean up rtcaching config options (issue #4075)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6401 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-25 02:25:30 +00:00
Kevin P. Fleming
60718ec80b handle INVITEs that are asking for authentication that we cannot supply more intelligently (issue #4995)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6399 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-25 02:19:42 +00:00
Kevin P. Fleming
20e887d708 make some messages show up only under debugging and other minor cleanups (issue #5018)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6398 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-25 02:16:25 +00:00
Kevin P. Fleming
fa4b3f8416 fix 'sip debug' vs. reload properly
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6397 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-25 02:12:49 +00:00
Kevin P. Fleming
87f2acf15d don't reset sipdebug to zero during reload (issue #5000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6389 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 17:59:26 +00:00
Kevin P. Fleming
81c127758b ensure buffer is adequately sized for frames with lots of elements (issue #4974)
various minor formatting/cleanup changes


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6386 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 17:38:58 +00:00
Kevin P. Fleming
d86ce557ef allow more adjustability in peer qualification system (issue #4192 with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6385 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 17:11:44 +00:00
Kevin P. Fleming
9a6618e8d8 show global vmexten in 'sip show settings' (issue #5005)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6378 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 14:41:51 +00:00
Kevin P. Fleming
0a3502b592 handle on-/off-hold properly with RTP reinvited streams (issue #3974)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6371 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 01:50:11 +00:00
Kevin P. Fleming
a5b640cb40 add 'sip show settings' CLI command (issue #4806)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6370 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 01:44:28 +00:00
Kevin P. Fleming
0bf1d48e40 support configurable Message-Account value in NOTIFY messages (issue #4801)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6365 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 00:50:38 +00:00
Kevin P. Fleming
3480297607 add preliminary support for SIP timers (issue #4359)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6362 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-22 22:55:06 +00:00
Kevin P. Fleming
09bd4cfb95 add SIPCHANINFO function to retrieve information about the current connected SIP endpoint (issue #4698)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6357 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-22 21:13:37 +00:00
Kevin P. Fleming
97b45d5d6d handle BYE instead of CANCEL from callers (issue #4994)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6354 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-22 19:47:00 +00:00
Mark Spencer
f76171a643 Fix IAX2 Provisioning
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6344 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-19 20:04:58 +00:00
Mark Spencer
47334c3193 Fix language in d-channel (bug #4979)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6342 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-19 04:23:23 +00:00
Kevin P. Fleming
8a2b540f0a protect PRI-specific code with ifdefs
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6341 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-17 17:52:14 +00:00
Matthew Fredrickson
d39d277ada Don't catch digits from zaptel during overlap dialing
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6338 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-16 16:12:22 +00:00
Mark Spencer
3b12e18473 Fix PRI against masquerade
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6335 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-15 14:57:58 +00:00
Ben Kramer
5cd67220f4 / fixed bug introduced during bridge code cleanups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6331 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-14 22:56:34 +00:00
Mark Spencer
f2c72aca7b Fix potential deadlock in asterisk
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6321 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-11 16:43:36 +00:00
Russell Bryant
f3c9715947 fix a little oopsie
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6316 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-09 19:31:54 +00:00
Mark Spencer
97e1ede292 Centralize and fix tos for IAX (bug #4850 inspired)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6315 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-09 16:41:28 +00:00
Mark Spencer
95cf08ee92 Allow ToS to be set in hex (bug #4923)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6314 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-09 16:20:32 +00:00
Kevin P. Fleming
ce7a1e4768 bridging code cleanups:
code style, formatting
	use enum/symbolic constants for return codes
	efficiency improvements
	(zaptel) only disable DTMF detection once per bridge, not every frame
	(zaptel) ensure VPM DTMF detector is turned off during native bridge


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6312 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-09 01:59:59 +00:00
Mark Spencer
6dde38ed52 Be consistent with User/Username (bug #4916)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6305 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-08 00:15:37 +00:00
Mark Spencer
13a0bec612 Merge steve's busy detect stuff (bug #4830)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6304 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-08 00:08:48 +00:00
Mark Spencer
f4a1a05205 Revert improperly applied patch from bug #4771
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6296 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-07 04:56:39 +00:00
Russell Bryant
149168f4a5 remove some sillyness
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6295 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-06 17:09:18 +00:00
Mark Spencer
51c390db61 Fix timestamp + trunking (bug #4891)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6293 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-06 14:53:14 +00:00
Russell Bryant
7564500552 formatting fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6292 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-06 06:40:05 +00:00
Mark Spencer
f08acd7b45 Fix newline issue (bug #4632)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6291 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-05 21:44:19 +00:00
Russell Bryant
52594b6b12 fix a bunch of gcc4 warnings realted to pointer signedness
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6290 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-05 16:29:30 +00:00
Russell Bryant
d0cec3dd99 fix seg fault
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6288 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-05 07:03:35 +00:00
Russell Bryant
c65f1a04ab there is no reason to check the channeltype of the channel calling SIPAddHeader
because it really only matters what the channeltype is of the *created* channel
in the subsequent dial (bug #4896)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6279 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-04 20:03:45 +00:00
Russell Bryant
c3c496512f 'outgress' should be 'egress'
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6278 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-04 17:33:21 +00:00
Mark Spencer
d8a7545a82 Fix documentation of overridecontext (bug #4379)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6274 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-03 19:58:34 +00:00
Mark Spencer
73e21b0ccc Add extra aliases from RFC4028 and RFC3841 (bug #4889)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6272 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-03 18:05:40 +00:00
Mark Spencer
6e825f933d Revert a portion of oej's patch...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6267 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-03 04:32:09 +00:00
Mark Spencer
c57bfc55cf Don't ignore ACk packets (bug #4861)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6266 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-03 04:26:10 +00:00
Mark Spencer
033d64ba42 Move to rizzo's new chan_oss, but leave the old one just in case... (bug #4379 with changes)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6263 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-03 04:11:52 +00:00
Mark Spencer
3a362c7839 Reduce number of calls to get method (bug #4863)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6262 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-03 03:50:53 +00:00
Mark Spencer
50087d3467 Fix qop syntax (bug #4822)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6260 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-03 02:34:57 +00:00
Jeremy McNamara
65f426169d Fix newsignal/newcontrol compile issue. Bug #4867
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6255 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-02 03:25:28 +00:00
Russell Bryant
6f312133ac make sure that iaxs gets initialized (bug #4856)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6251 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-01 14:46:14 +00:00
Russell Bryant
a5f0c99bb3 fix netbsd compilation issue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6246 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-30 19:12:30 +00:00
Mark Spencer
9f136f57fe Don't delete RTP if there is a channel, even if we get REGISTER/SUBSCRIBE (bug #4534)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6243 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-28 18:24:04 +00:00
Jeremy McNamara
adae4181f0 Stomp on deadlock. Bug #4555
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6234 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-27 04:45:11 +00:00
Jeremy McNamara
2fc8abd8ae one-way-audio problem on multihomed host with bind to secondary address. Bug #4505
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6233 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-27 04:39:53 +00:00
Kevin P. Fleming
11891d28da and now we know why #define-ing constants and trying to keep them in sequence is a bad idea...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6232 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-27 02:17:06 +00:00
Kevin P. Fleming
9080884688 fix breakage that was causing PUBLISH to be sent instead of CANCEL
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6231 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-27 00:58:54 +00:00
Kevin P. Fleming
f99dcb7586 add a few const's
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6230 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-27 00:32:37 +00:00
Kevin P. Fleming
b774d41660 enhance SIP_PEER function to return additional items (bug #4816)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6229 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-26 22:13:31 +00:00
Russell Bryant
a657d3a7fa fix build issue for FreeBSD (bug #4802)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6221 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-26 14:40:41 +00:00
Kevin P. Fleming
4df19fa1c2 clean up SIP response and pedantic REGISTER matching (bug #3663)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6218 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 23:26:47 +00:00
Kevin P. Fleming
8703628608 add explanatory comment about timestamp compensation (bug #4763)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6217 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 23:13:20 +00:00
Kevin P. Fleming
9b8ee1f3e4 set the 'number complete' bit properly (bug #4771)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6209 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 22:16:35 +00:00
Kevin P. Fleming
1a5aa9c836 add dedicated function for adding Content-Length header (bug #4795)
use ast_build_string to build large text bodies (bug #4795)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6207 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 21:58:32 +00:00
Kevin P. Fleming
6596f8496e _really_ rewrite get_in_brackets to do the right thing (including skipping escaped double-quote characters)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6205 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 21:40:17 +00:00
Russell Bryant
8223580a4a formatting and callingpres support (bug #4787)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6204 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 20:04:46 +00:00
Kevin P. Fleming
1aa875b656 combine bracket-removing functions (bug #4794, with compiler warning mod)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6197 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 18:36:58 +00:00
Kevin P. Fleming
1e9beaa1d2 ensure that port number in URI is presented when needed (bug #4784)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6194 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 18:11:19 +00:00
Kevin P. Fleming
a953eb06c3 formatting cleanups (bug #4786, with minor mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6193 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 18:09:04 +00:00
Kevin P. Fleming
1153f74259 add plain-text hangup cause private header to outbound BYE/CANCEL (bug #4783 with minor mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6192 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 17:39:48 +00:00
Kevin P. Fleming
5238d544e9 ensure socket address family is copied (bug #4789)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6190 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 17:31:50 +00:00
Kevin P. Fleming
dd1cd37f11 ensure SIP_HEADER does not segfault when called on hung-up channels (bug #4756, different fix than posted patch)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6187 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 17:13:24 +00:00
Russell Bryant
cd17218e59 add line break after show agents output (bug #4768)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6186 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 16:53:28 +00:00
Matthew Fredrickson
6eb0ec533e More minor cleanups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6183 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-22 18:28:19 +00:00
Matthew Fredrickson
0577cdd35f Fixed little oops with DTMF tone duration
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6182 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-22 18:07:53 +00:00
Matthew Fredrickson
23d05a2ebb Get rid of DSP after we don't need it anymore in MF mode
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6181 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-21 15:06:50 +00:00
Kevin P. Fleming
3f5035dce4 _really_ fix IAX2 crazy timestamp problem (bug #4747)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6180 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-20 22:46:58 +00:00
Russell Bryant
bd18858411 more formatting fixes from oej :-) (bug #4757)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6179 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-20 17:05:18 +00:00
Kevin P. Fleming
91e8442629 add SIPPEER dialplan function (bug #4728)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6176 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-20 00:44:35 +00:00
Kevin P. Fleming
0be59a11de simple fix for bug #3638
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6169 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-19 23:55:43 +00:00
Kevin P. Fleming
4dd4428204 split acl and netsock code into separate files, in preparation for new netsock implementation
various minor cleanups


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6165 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-19 23:17:02 +00:00
Matthew Fredrickson
0a4dd9a6b3 Fix for DSP code on 411/406. (Bug 4712). Also a settable tone length
option.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6157 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-19 13:30:37 +00:00
Ben Kramer
c3f1c4da4f / fixed typo bug introduced in fix for bug #4504
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6156 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-19 02:33:46 +00:00
Kevin P. Fleming
22b0f5d306 add a library of timeval manipulation functions, and change a large number of usses to use the new functions (bug #4504)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6146 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 23:00:47 +00:00
Kevin P. Fleming
9d8d86e19d phase two of string portability stuff:
don't need ast_ prefixes on functions
  use individual #defines for function presence
  add vasprintf to portability library


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6143 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 22:06:15 +00:00
Kevin P. Fleming
38598f57b4 make 'Agents' manager action conform to protocol (bug #4723)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6141 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 16:21:41 +00:00
Kevin P. Fleming
904beec507 ensure that format string macros are undef'd after use (bug #4716)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6139 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 16:13:26 +00:00
Kevin P. Fleming
17fee8dc68 various code formatting changes and cleanups related to bug #4706
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6137 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 16:03:02 +00:00
Kevin P. Fleming
f50c27c355 don't ignore hardcoded CLID from zapata.conf when usecallerid=no
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6126 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-13 20:22:29 +00:00
Russell Bryant
f62a613d24 fix big endian compilation issue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6124 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-13 19:21:04 +00:00
Kevin P. Fleming
aaa057778c add create_addr_from_peer, to use an existing peer reference
(solves a deadlock where create_addr was called with the peer already locked)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6123 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-13 18:06:49 +00:00
Matthew Fredrickson
91f84f9098 Update variable name to match docs
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6120 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-13 15:13:12 +00:00
Mark Spencer
3916b7e41b Fix IAX2 encryption (really, bug #4500 for reference)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6103 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 14:46:20 +00:00
Kevin P. Fleming
a803ef7af0 pick up calling ANI information from libpri (bug #4571)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6097 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 02:33:57 +00:00
Kevin P. Fleming
d7e09f233f allow explicit source address/port selection for peers (bug #4257, with minor mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6096 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 02:19:41 +00:00
Russell Bryant
e24821e1cf fix off by one errors in calls to ast_copy_string (bug #4600)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6084 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-11 21:05:35 +00:00
Matthew Fredrickson
e67bc60c40 Make PRI debug easier to read if you're not using NFAS
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6081 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-11 19:23:02 +00:00
Russell Bryant
4c531ca8c0 define an AST_MAX_CONTEXT for use instead of AST_MAX_EXTENSION
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6076 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-10 23:49:57 +00:00
Mark Spencer
80f67ad1fa Pass along proceeding and progress even when overlap mode is not on
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6072 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-10 16:05:59 +00:00
Kevin P. Fleming
c13d601fb4 queue device state changes and handle them serially in a background thread
optimize device state related functions
add ast_get_channel_by_name_prefix to allow searching for matching channels in O(1) operation


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6062 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-08 21:14:34 +00:00
Kevin P. Fleming
f64717b556 clean up compiler warnings during build on 64-bit systems
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6059 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-08 17:06:54 +00:00
Kevin P. Fleming
f268ea2b3c make CLI output use singular/plural when appropriate (bug #4654)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6047 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-07 22:32:20 +00:00
Malcolm Davenport
f1a18b8066 Hardcode urgent messages option in Voice-Message to 0
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6046 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-07 19:51:33 +00:00
Kevin P. Fleming
6b72557890 ensure that AGENTBYCALLERID is set for agents being reloaded from persistent storage
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6039 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-06 14:47:25 +00:00