Commit graph

1046 commits

Author SHA1 Message Date
Russell Bryant
3453e3efa5 Doxygen documentation update from oej (issue #5505)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6847 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-24 20:12:06 +00:00
Mark Spencer
5f78c43950 Fix max forwards interoperability (bug #5474)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6844 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-23 01:31:17 +00:00
Mark Spencer
4e919f337c Fix queue, iax and sip formatting issues (bug #5449)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6811 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-17 22:26:33 +00:00
Kevin P. Fleming
4d1506e64d make chan_sip able to deal with PBX-level call limit being reached (issue #5131)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6788 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-14 01:14:29 +00:00
Kevin P. Fleming
454061ec18 don't force CLID to be a phone-number-looking-thingie (issue #5325)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6778 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-13 23:48:12 +00:00
Mark Spencer
0b265779b2 Fix the ordering of the sscanfs for SDP parsing (bug #AT&T)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6772 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-13 22:56:53 +00:00
Kevin P. Fleming
c05c0c7ce6 clean up pedantic mode tag handling (issue #5125)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6767 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-13 22:03:53 +00:00
Mark Spencer
d75fb48fb8 Display proper error for matching domain registers (bug #5412)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6764 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-13 20:43:33 +00:00
Russell Bryant
1f2943fc0a re-bind the socket if the bindaddr option is changed during reload (issue #5435)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6762 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-13 20:17:21 +00:00
Kevin P. Fleming
04d7bcc757 send "100 Trying" when we receive PROCEEDING, unless "183 Session Progress" has already been sent
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6760 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-13 20:04:38 +00:00
Mark Spencer
7560605ebc Fix "screen" for network numbers (bug #5432)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6750 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-12 14:40:04 +00:00
Mark Spencer
522dfad107 Do *not* default to a max number of registration attempts
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6749 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-12 05:43:21 +00:00
Mark Spencer
65afb68602 Handle yet some SIP contact issue nuances and exceptions (bug #5289 with mods and rant)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6747 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-12 04:59:58 +00:00
Mark Spencer
c07a31e4bc Fix noncecount update (bug #5308, redone fix)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6746 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-12 04:35:10 +00:00
Kevin P. Fleming
8496d5fe92 fix authentication header extra space (issue #5329)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6732 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-05 01:40:01 +00:00
Kevin P. Fleming
d9f508c7f1 fix timer T1 handling (issue #5330)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6730 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-05 01:31:29 +00:00
Kevin P. Fleming
a755500ef8 ensure that the correct flags are always copied from peers/users to private structures (so RPID sending will work properly, issue #5322)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6729 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-05 01:29:02 +00:00
Kevin P. Fleming
d50adefa05 ensure that Remote-Party-ID is sent even on secondary INVITEs within a dialog (issue #5322)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6728 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-05 00:42:09 +00:00
Kevin P. Fleming
aeaf9f4cc6 remove unused config option (issue #5358)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6724 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-05 00:05:13 +00:00
Kevin P. Fleming
7c1bbe6eef handle peer matching for subscriptions by name instead of IP address (issue #5103)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6723 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-04 23:54:04 +00:00
Kevin P. Fleming
6fe572d1a9 fix various state-related bugs (issue #5369, with mod to return AST_DEVICE_INUSE)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6722 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-04 23:38:09 +00:00
Kevin P. Fleming
b7c31babb0 support call duration limits on inbound OSP calls (issue #5346)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6721 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-04 23:28:57 +00:00
Kevin P. Fleming
b1a61a9672 generate fewer 'stale nonce' messages (issue #5381)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6718 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-04 22:42:34 +00:00
Kevin P. Fleming
a0a478a72c don't destroy calls when re-INVITE messages ask for things we can't do (issue #5384)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6714 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-04 22:09:23 +00:00
Kevin P. Fleming
8e4697d8f2 ensure that peer codec preferences take precedence over global preferences
clean and simplify SDP-building code


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6697 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-29 17:41:00 +00:00
Kevin P. Fleming
35b5891b74 don't replace CLID/CNAM when RPID is being generated (issue #5301)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6689 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-29 03:12:46 +00:00
Mark Spencer
ea215f5b7d Remove possibility of manager deadlocks from manager actions
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6687 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-28 23:10:14 +00:00
Mark Spencer
bca61024ca 486 (and friends) are really BUSY (bug #5257)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6674 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-28 04:08:57 +00:00
Kevin P. Fleming
626582a84c store tag in the private structure as formatted text, instead of formatting every time we send a packet
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6672 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-27 02:12:36 +00:00
Kevin P. Fleming
8af7725f98 support optional sending of Remote-Party-ID headers (issue #2471, heavily modified to actually work properly)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6671 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-27 01:54:17 +00:00
Kevin P. Fleming
fdccf66d52 add domains documentation and rename config option
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6669 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-26 23:14:59 +00:00
Kevin P. Fleming
9bbf4c3854 add basic SIP domain support (issue #4466, with major mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6668 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-26 23:07:50 +00:00
Kevin P. Fleming
78fa3593b1 properly ignore retransmitted INVITEs on long latency links (issue #3658)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6660 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-26 03:05:37 +00:00
Kevin P. Fleming
43d43b8b46 properly respond to REGISTER queries (issue #5272)
remove unused sip_peer expiry field


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6656 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-26 01:22:09 +00:00
Kevin P. Fleming
051ddb97f3 clean update devicestate function, ensure that it can return AST_DEVICE_UNKNOWN when call limits are not turned on (issue #5281)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6654 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-25 21:21:47 +00:00
Russell Bryant
bcaaea9ce6 add missing newline (issue #5243)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6624 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-18 22:10:35 +00:00
Kevin P. Fleming
c4d824cf71 error message generated using backwards logic (issue #5224)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6607 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-15 00:05:27 +00:00
Kevin P. Fleming
ff41d6ab6c correct 'progressinband' parsing (issue #5209, different fix)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6604 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-14 22:45:31 +00:00
Kevin P. Fleming
eb332490ff put items in RFC-specified order (issue #5217)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6602 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-14 22:06:00 +00:00
Kevin P. Fleming
02e5af9cf5 proper header name and attribution (issue #5218)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6601 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-14 21:43:55 +00:00
Kevin P. Fleming
e30adc051f various niteroperability fixes (issue #5221)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6600 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-14 21:41:02 +00:00
Kevin P. Fleming
5da915dcfd update MANY more files with proper copyright/license info (thanks Ian!)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6596 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-14 20:46:50 +00:00
Kevin P. Fleming
f2e6ac45ca don't abort Asterisk load if configuration not found (issue #5115)
don't register channel type until after config has been loaded


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6590 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-14 02:52:11 +00:00
Kevin P. Fleming
ee696945de support all OSP authentication models (issue #5159)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6589 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-14 02:45:37 +00:00
Kevin P. Fleming
16cd2019b1 ensure that Manager hold/unhold events are generated even for non-bridged channels (issue #4594)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6585 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-14 02:18:45 +00:00
Kevin P. Fleming
e60671d5bf make RTP handling errors less likely to crash Asterisk (issue #5172)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6584 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-14 02:15:14 +00:00
Kevin P. Fleming
07a06d83a4 handle rport/received in Via headers properly (issue #5037)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6582 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-14 01:53:06 +00:00
Mark Spencer
5600956db8 Handle dialog updates to to tag properly (bug #5166)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6576 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-14 00:43:11 +00:00
Kevin P. Fleming
a1bdc4836a output 'our tag' in proper format
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6573 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-14 00:27:51 +00:00
Josh Roberson
8ac8621f40 don't send a 200 ACK before a 404 on invalid subscriptions (Bug #5198)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6565 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-13 01:38:00 +00:00
Kevin P. Fleming
60ffafcc39 allow users of RTP to know when the peer endpoint is (apparently) behind a NAT
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6558 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-09 19:54:34 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
1bd88c387e don't segfault when peer doesn't send Referred-By (bug #4588)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6038 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-06 01:45:23 +00:00
Russell Bryant
52ef5c7d30 add function to convert a cause code to a string
create MAX_MUSICCLASS instead of using MAX_LANGUAGE


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6024 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-05 17:16:17 +00:00
Kevin P. Fleming
3c91556d2d reset regattempts counter after successful registration (bug #4634)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6023 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-05 15:08:34 +00:00
Kevin P. Fleming
4803ab0bb2 don't use locks when reading usecounts (reading only, not writing)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5994 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-24 02:15:04 +00:00
Mark Spencer
4358089aa7 Fix SIP with OSP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5975 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-22 21:10:02 +00:00
Kevin P. Fleming
369b421b78 make SIP registration accept RFC non-compliant Digest headers (bug #4577)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5970 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-22 19:10:39 +00:00
Kevin P. Fleming
52e26805e7 begin properly supporting 'Supported' and 'Required' headers (bug #4351)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5952 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-21 01:27:54 +00:00
Kevin P. Fleming
4e6d610317 ensure that proper response code is return for unimplemented methods (bug #4512)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5949 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-21 01:07:31 +00:00
Kevin P. Fleming
a752aeb4e8 fix reply_digest breakage from earlier patch
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5941 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-20 17:01:03 +00:00
Mark Spencer
f80df76143 Fix fd's when we release rtp/vrtp
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5940 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-19 22:00:18 +00:00
Mark Spencer
b6ea1bcb29 Attempt to repair SIP parameter gathering brokenness
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5939 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-18 23:30:40 +00:00
Mark Spencer
0c61fc56be Fix via comparison to be case insensitive
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5938 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-18 18:53:16 +00:00
Kevin P. Fleming
2f7e984a31 don't generate 'rport' unless RFC3581 support is enabled (bug #4533)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5931 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-17 15:03:56 +00:00
Kevin P. Fleming
81d1a11ed6 clean up and optimize reply_digest (bug #4447)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5925 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-17 13:29:04 +00:00
Kevin P. Fleming
9a80a7bc2c string/whitespace handling cleanups (bug #4449, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5924 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-17 13:25:01 +00:00
Kevin P. Fleming
f3efc756ad allow transfer-to number for SIP transfers to contain an '@' (and enforce the max-forwards restriction for these transfers) (bug #4048)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5894 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-09 22:41:18 +00:00
Kevin P. Fleming
5736270107 add 'rtignoreexpire' option to allow Realtime addresses to be used regardless of expiration time (bug #4362)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5889 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-09 21:11:30 +00:00
Kevin P. Fleming
e5e64bfd41 header ordering fixes for FreeBSD (pending a global merge into asterisk.h) (bug #4484)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5876 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-07 17:06:33 +00:00
Kevin P. Fleming
7584fac64b various compiler warning fixes (bug #4483)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5875 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-07 16:59:20 +00:00
Kevin P. Fleming
2b8338cb52 more file version tags
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5866 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 22:12:19 +00:00
Kevin P. Fleming
005e436b57 another round of version tag updates, along with 'show version files' pattern filtering
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5865 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 21:09:59 +00:00
Mark Spencer
bccc1171f0 Fix minor OSP compile issue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5852 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 01:28:54 +00:00
Kevin P. Fleming
090f7d278b more cleanups for outbound registrations (bug #4457)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5844 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-05 14:47:09 +00:00
Kevin P. Fleming
d6a2290eb2 use a struct for long parameter list to transmit_invite (bug #4458)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5843 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-05 14:43:49 +00:00
Kevin P. Fleming
420737f3ea correct oops in recent outbound registration rework (bug #4461)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5841 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-05 14:36:56 +00:00
Kevin P. Fleming
c9004afb94 various improvements to outbound registrations and response handling (bug #3850)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5839 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-03 22:15:20 +00:00
Kevin P. Fleming
115e45c7b0 handle stale authentication nonces more properly (bug #4343, with formatting fixes)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5834 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-03 19:16:41 +00:00
Mark Spencer
5b55f3600b Fix attended transfer crash (bug #4404 with changes)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5787 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-30 13:51:04 +00:00
Mark Spencer
db99849187 Fix reply digest selection of size (bug #4409)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5785 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-30 13:27:12 +00:00
Mark Spencer
ed233f7e82 Fix the ordering fo some checks (bug #4406)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5784 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-30 13:23:10 +00:00
Russell Bryant
4e329973eb use DEFAULT_SIP_PORT (bug #4408)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5782 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-29 23:08:12 +00:00
Mark Spencer
a6f2f031b3 Fix typo about maddr (bug #4386)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5772 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-26 15:06:24 +00:00
Josh Roberson
70b3b8730e Fix typo in chan_sip. (Bug #4376).
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5768 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-25 20:03:09 +00:00
Mark Spencer
2df83a9298 Fix SIP registration (bug #4138)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5767 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-25 17:45:31 +00:00
Mark Spencer
41e7cc8154 Use defined AST_MAX_ACCOUNT_CODE (bug #4350)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5765 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-25 17:18:05 +00:00
Kevin P. Fleming
17e476378a make 'sip debug' work again (commands must be registered shortest-first when they start with the same words) (bug #4341)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5746 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-20 03:14:41 +00:00
Kevin P. Fleming
d5b50fc83d formatting cleanup (bug #4330)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5737 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-19 15:19:42 +00:00
Kevin P. Fleming
58a530eba8 remove unnecessary conditional logic (bug #4313, take two)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5735 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-19 12:51:58 +00:00
Kevin P. Fleming
041147243c ensure that peer-level RTP settings are actually used (bug #4313)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5734 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-19 04:49:12 +00:00
Kevin P. Fleming
a1779650de move variable declarations to top of function where they belong (bug #4303)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5724 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-19 02:49:34 +00:00
Kevin P. Fleming
252bf2d652 SIP hold improvements (bug #4290)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5702 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-16 16:16:41 +00:00
Kevin P. Fleming
7bcaa0caa2 code formatting cleanup (bug #4213)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5668 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 04:17:42 +00:00
Kevin P. Fleming
acffa5d930 implement more detailed hangup causes (bug #4214)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5667 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 04:11:01 +00:00
Kevin P. Fleming
6cd4f9a8d3 correct some signed/unsigned issues found by GCC 4 (bug #4237)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5664 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 03:21:51 +00:00
Kevin P. Fleming
0356b70224 add functions to register/unregister multiple CLI commands in a single operation (bug #4255, with minor mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5662 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 03:03:48 +00:00
Kevin P. Fleming
4515e94c39 various minor formatting changes and code cleanups (bug #4262)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5658 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 00:27:18 +00:00
Mark Spencer
82d52ffe35 Use maxdomainlen in chan_sip (bug #4212)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5601 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-08 16:49:28 +00:00
Kevin P. Fleming
4d2537ae11 major re-work of dialplan functions, including:
- locking of functions list during registration/unregistration/searching
 - rename of function description structure to be consistent with the rest of the API
 - addition of 'desc' element to description structure, for detailed description (like applications)
 - addition of 'show function' CLI command to show function details
 - conversion of existing functions to use uppercase names to match policy
 - creation of new 'pbx_functions.so' module to contain standard 'builtin' functions
 - removal of all builtin functions from pbx.c and apps and placement into new 'funcs' directory


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5583 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-05 05:39:33 +00:00
Mark Spencer
0575c11d72 Merge formatting changes (bug #4172)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5578 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-04 19:22:45 +00:00
Kevin P. Fleming
6f118fe66a remove extraneous manual string termination
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5572 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-04 14:03:47 +00:00
Kevin P. Fleming
38c513fd02 ensure the SIP socket is closed on module unload (bug #4149)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5562 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-04 00:14:58 +00:00
Kevin P. Fleming
50b9f0e970 fix breakage when ast_copy_string is used to copy substrings (bug #4146, but a different fix)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5561 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-03 23:51:20 +00:00
Kevin P. Fleming
a813234dcd simplify argument parsing in sip_prune_realtime
don't force register expiration when pruning realtime peers
provide feedback for successful single item prune operations


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5558 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-03 03:22:14 +00:00
Kevin P. Fleming
ba04eb12ef use symbolic constants for RTP method flags, and add debugging output to sip_alloc to indicate when RTP is/is not allocated (bug #3986)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5557 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-03 02:32:50 +00:00
Kevin P. Fleming
98a973007d ensure astdb registration entries are parsed properly (bug #4126)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5555 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-03 02:16:45 +00:00
Kevin P. Fleming
cd9a1226b5 ensure buffer size is computed properly for ast_copy_string
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5554 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-03 02:09:16 +00:00
Kevin P. Fleming
9a7b3b0347 testing has shown that ast_copy_string is nearly twice as fast as strncpy for the common use cases in Asterisk, so convert chan_sip over...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5550 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-02 13:44:38 +00:00
Kevin P. Fleming
fe6517959e change (iax2,sip) show (peers,users) to use 'like <pattern>' for pattern-matching to be consistent with other CLI commands
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5549 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-02 01:34:21 +00:00
Kevin P. Fleming
f0df8b7172 attempt to not allocate RTP ports for SIP private structures unless they are needed (bug #3986)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5548 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-02 01:15:23 +00:00
Kevin P. Fleming
dfd4f13f55 ensure object reference is removed after unlinking from container
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5545 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-01 23:17:12 +00:00
Kevin P. Fleming
f07020fa1c clean up reg_source_db
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5543 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-01 23:07:05 +00:00
Kevin P. Fleming
b1826af735 add SIP_HEADER function, mark SIPGetHeader app deprecated (will be removed on 2005-05-31)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5540 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-01 18:37:37 +00:00
Kevin P. Fleming
7d4b53c57a add direct object unlink macro to ASTOBJ api
various minor cleanups in chan_sip


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5539 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-01 18:08:14 +00:00
Kevin P. Fleming
82f888f457 enhance 'sip prune realtime' to support users as well as peers, and regex-based filtering
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5536 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-29 20:42:48 +00:00
Kevin P. Fleming
8634ef9e4a don't use '%i' at all, since we have no current use cases that need non base-10 parsing (bug #4110)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5533 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-29 17:00:33 +00:00
Kevin P. Fleming
7e058413fb allow fine-grained 'insecure' settings (bug #4024)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5521 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-27 17:04:17 +00:00
Mark Spencer
55a6d4c1b5 Oops :)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5519 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-27 15:11:46 +00:00
Mark Spencer
b99c287ef6 Fix lockup in register timeout
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5518 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-27 15:06:23 +00:00
Kevin P. Fleming
2a4265b406 formatting cleanup (bug #4088)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5505 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-27 01:29:28 +00:00
Kevin P. Fleming
1f9ab2380a use double-quotes instead of angle-brackets for non-system include files (bug #4058)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5490 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-21 06:02:45 +00:00
Mark Spencer
8d1744dd29 Add sched_when function (bug #4022)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5466 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-13 18:46:35 +00:00
Kevin P. Fleming
d254db31c8 *** empty log message ***
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5431 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-06 21:12:32 +00:00
Russell Bryant
c66b66e45f actually space out the registrations :) (bug #3104)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5427 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-06 17:03:50 +00:00
Kevin P. Fleming
c7c20f8656 report non-codec capabilities in 'sip debug' properly (bug #3960)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5416 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-05 23:34:56 +00:00
Anthony Minessale II
c02caf1e91 add missing newlines (part2)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5308 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-30 16:28:28 +00:00
Anthony Minessale II
6afb37c9ae add missing newlines
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5307 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-30 16:20:53 +00:00
Mark Spencer
dc9faa21e4 Fix a bunch of const stuff, merge queue changes, add experimental "hybrid" DTMF mode
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5293 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-28 20:48:24 +00:00
Mark Spencer
5c12ec4755 Clear out received tag in 407/401's (bug #3885)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5292 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-28 19:37:34 +00:00