Mark Spencer
f2e0152108
Fix minor formatting problem
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2935 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-09 19:39:23 +00:00
Mark Spencer
25b07915d6
Remove "jitter"
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2934 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-09 19:18:15 +00:00
Mark Spencer
d2a4408930
Show peers formatting fixes, SIP strlen optimizations, and using ACL for local network matching (bugs #1587 , 1586, 1585, 1584)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2927 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-08 20:58:24 +00:00
Mark Spencer
297e62b8be
Copy musicclass to right field (bug #1582 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2924 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-08 14:45:49 +00:00
Mark Spencer
1d7c058f08
Add sip show peers (trivial zap fix, too) bug #1573
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2915 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-07 18:57:17 +00:00
Mark Spencer
76adf66390
Add "sip show subscriptions" command (bug #1569 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2912 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-06 21:30:45 +00:00
Mark Spencer
efc8c74b9a
Allow global authentication realm to be set (bug #1567 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2905 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-06 20:00:19 +00:00
Mark Spencer
05a87a441c
Don't autodestruct on semi-ack. We'll add it as we need it case-by-case.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2903 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-06 14:41:03 +00:00
Mark Spencer
ab3c603b1c
If user fails host access, search for peers too
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2901 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-06 01:33:24 +00:00
Mark Spencer
cc1da2eb5b
Qualify that SIP INFO stuff is real (bug #1558 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2894 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-05 01:56:03 +00:00
Mark Spencer
cc9ffa5ac1
Fix SIP autohangup mishap
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2893 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-04 20:10:37 +00:00
Mark Spencer
9cc62f6461
Print route when doing sip show channel foo
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2892 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-04 19:41:31 +00:00
Mark Spencer
19a080ddd7
strlen fixes and don't destroy SIP channels that still have pending things on them (bug #1552 et al)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2890 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-04 19:11:25 +00:00
Mark Spencer
d4c439c61d
Use strlen_zero function in chan_sip (bug #1545 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2878 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-03 21:01:14 +00:00
Mark Spencer
ca2069a246
Don't update route once it's set (bug #1491 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2876 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-03 20:06:38 +00:00
Mark Spencer
bbaf536f6a
Add "insecure=very" where we don't authenticate peers who are registered
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2873 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-03 05:14:52 +00:00
Mark Spencer
b50ecc25b2
Merge slepp's sub-second expiration timer although hopefully it will never have to be used.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2872 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-03 05:03:19 +00:00
Mark Spencer
ded7dae112
Merge slepp's REGISTER RFC compliance fixes (bug #1538 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2866 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-03 02:22:19 +00:00
Mark Spencer
c3c38eeeaf
Let OSS know how to deal with indication -1
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2861 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-02 17:52:45 +00:00
Mark Spencer
6cdbd6903c
On a reload, don't stop supporting sip if we can't find our ip.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2860 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-02 17:43:15 +00:00
Mark Spencer
503dbb3d8a
Add new "authname" field so we can authenticate BYE properly on incoming calls (bug #1436 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2859 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-02 16:30:05 +00:00
Mark Spencer
35ca4404f0
On incoming call, set peername to username to properly authenticate BYE (it's not used for anything else, as far as I know)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2858 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-02 16:17:40 +00:00
Mark Spencer
44de97d496
Provide more fine grained control of sip and iax show peers (bug #1470 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2856 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-02 05:38:20 +00:00
Mark Spencer
3c134b6549
Revert earlier changes. The right answer for bug #1436 should be using username=
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2852 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-02 00:51:11 +00:00
Mark Spencer
5b34d11ce9
Allow debug to be enabled on a per-peer or per-IP basis (bug #850 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2845 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-01 21:25:31 +00:00
Mark Spencer
1dbc8e3f0e
Rid compiler warning, make information meaningful in sip debug for codecs
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2844 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-01 20:59:37 +00:00
Mark Spencer
3d16691c9e
Revert routing change
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2835 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-01 03:04:04 +00:00
Mark Spencer
ec6644c146
Only clear route if we have a new one
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2832 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-30 04:05:22 +00:00
Mark Spencer
d106797a26
Add relaxdtmf option to sip
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2824 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-29 22:27:40 +00:00
Mark Spencer
cd788e2ab9
Handle fromdomain properly when there is no @ sign
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2817 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-29 05:01:32 +00:00
Mark Spencer
7e79c52808
Don't double receive INFO or MESSAGE elements (bug #1512 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2808 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-28 22:12:08 +00:00
Mark Spencer
fd9d8ca43b
Run setstate after setting all appropriate variables including callerid
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2797 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-28 14:35:20 +00:00
Mark Spencer
7ca96ea7e5
Add white space condensing to pedantic mode of chan_sip.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2789 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-27 22:32:57 +00:00
Mark Spencer
f4b55b802c
SIP cleanups for database linkage
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2781 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-26 14:54:33 +00:00
Mark Spencer
1511750650
Use proper token for authenticating BYE
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2772 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-26 12:26:02 +00:00
Mark Spencer
f85d0713cf
Clean up SQL queries (bug #1479 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2766 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-26 05:08:30 +00:00
Mark Spencer
64c9e859e0
Also handle properly \r\n instead of just \n...
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2765 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-26 03:45:10 +00:00
Mark Spencer
ed360fcf57
Committed a little bit too quickly there...
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2764 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-26 03:41:07 +00:00
Mark Spencer
c924d1a322
First pass at handling multi-line headers
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2763 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-26 03:38:32 +00:00
Mark Spencer
d3f9887589
gethostbyname isn't reentrant, who knew...
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2734 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-22 00:20:34 +00:00
Mark Spencer
ca493a14e1
Increase buffer size (bug #1459 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2733 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-21 21:55:40 +00:00
Mark Spencer
8e0f9147b2
Fix trailing slash problem (Zap) and making sure refers get ignored the second tiem around.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2712 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-19 22:55:35 +00:00
Mark Spencer
97dd838cda
Fix name properly
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2692 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-15 00:02:07 +00:00
Mark Spencer
5a2c606d94
Keep random data around, we'll need it for certain bogus REGISTER and INVITE network hiccups (bug # 1236)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2648 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-07 15:09:58 +00:00
Mark Spencer
13bca43aa8
Get rid of all that old needlock garbage now that we're using recursive mutexes
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2644 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-06 22:17:32 +00:00
Mark Spencer
1bbf0d2cf6
Bump branch id on INVITE with auth (bug #1313 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2636 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-06 14:02:47 +00:00
Mark Spencer
940a5deb2e
Support some more SIP idiocies
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2623 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-05 05:12:00 +00:00
Mark Spencer
9f726fce46
603 is a busy too
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2618 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-04 22:54:35 +00:00
Mark Spencer
94279f00c1
Various video fixes (bug #688 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2616 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-04 21:54:38 +00:00
Mark Spencer
9c7ffa265e
Fix small SIP issue with SER (bug #1181 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2614 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-04 21:09:22 +00:00
Mark Spencer
7ae1d61120
Provide more useful debugging on retries and scheddestroy()
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2608 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-04 01:55:16 +00:00
Mark Spencer
b285cd40b2
Keep REGISTER dialog open a little longer in case they don't get our 200 OK right away...
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2603 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-02 21:43:07 +00:00
Mark Spencer
3415434e04
When going to in-band, be sure to allocate DSP (bug #1336 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2602 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-02 14:40:21 +00:00
Mark Spencer
a925c1b306
Update security document, work on threading with pbx.c and small SIP fixes
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2600 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-02 07:24:33 +00:00
Mark Spencer
1d53342b18
Expand SIP opaque buffers, prefer recursive to "error checking" mutexes...
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2596 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-01 06:27:10 +00:00
Mark Spencer
71e80e5f62
Leave retry time alone, handle "opaque" stuff in message.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2589 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-31 08:00:26 +00:00
Mark Spencer
3e9c337946
Small SIP fix, voicemail fix, and some delivery fixes on new apps
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2581 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-29 08:20:35 +00:00
Mark Spencer
dbbf64fdd4
Attempt at incrementing branch (or changing it) at the right places (bug #1313 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2577 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-28 04:05:58 +00:00
Mark Spencer
eeb2ca5b26
Make read/write mode have a lock parameter and use it properly.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2572 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-27 06:50:12 +00:00
Mark Spencer
b43c1f054b
Allow expiration of several messages to be non-fatal.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2550 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-24 21:21:59 +00:00
Mark Spencer
747a18f65d
It's okay to send RINGING > 1 time, and don't try to send it in-band
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2537 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-23 18:09:25 +00:00
Mark Spencer
b5d452b1c7
Minor SIP cleanups for valgrind, finally close the coffin on IAX1 and take it ou
...
t of the normal build process.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2532 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-23 05:06:50 +00:00
Mark Spencer
c1c704c042
Fix mysql friends by type
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2517 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-21 21:24:40 +00:00
Mark Spencer
3f5277d57b
Don't reconstruct authentication information on retransmissions.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2515 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-21 19:25:13 +00:00
Mark Spencer
a386f01a7c
Favor requested codec whenever possible (pass #1 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2470 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-19 08:00:13 +00:00
Mark Spencer
8c232e1dbb
Populate DNID for SIP
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2464 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-19 02:04:45 +00:00
Malcolm Davenport
b0d28cedf7
Bug # 1116. CallerID number not hidden when RestrictCID is on, Fixed
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2447 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-16 17:07:51 +00:00
James Golovich
9223055df1
Fixup some pthread_t checking in channels
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2438 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-15 09:14:16 +00:00
James Golovich
0e90480d6b
Fix bug 1217. Change pthread_t initializers to AST_PTHREADT_NULL and
...
AST_PTHREADT_STOP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2434 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-15 07:51:22 +00:00
Malcolm Davenport
89c55fe46c
Bug #1213 . Fix for improperly specified Content-Length header
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2429 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-15 02:06:47 +00:00
Mark Spencer
ea92b714f2
Turn off silence suppression in SDP
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2423 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-14 22:13:18 +00:00
James Golovich
6f0d8022d1
Make mess more informative if non-dynamic sip user registers (bug 1186)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2377 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-09 17:42:29 +00:00
Mark Spencer
e42e998f76
Expand our definition of 3XX responses
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2347 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-05 18:09:35 +00:00
Mark Spencer
806bb3c63f
Add support for parking with IAX2
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2318 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-04 01:11:25 +00:00
Mark Spencer
b82aa22442
Process SDP on 183 session progress (bug #930 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2301 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-02 23:29:00 +00:00
Mark Spencer
a9d042db2c
Handle video codecs properly
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2281 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-01 16:14:41 +00:00
Malcolm Davenport
6023b736d9
Bug # 1052 Got it this time..I'm sure of it ;)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2237 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-25 01:16:45 +00:00
Malcolm Davenport
23eaf5c442
Fix Bug # 935 and Bug # 1052
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2231 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-24 19:48:46 +00:00
Mark Spencer
6724dd1597
Improve SIP friends support (should address bugs #1063 & #1052 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2202 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-20 15:39:43 +00:00
James Golovich
48496a930c
Fix another spelling typo in chan_sip.c (bug #1059 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2196 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-19 00:42:10 +00:00
James Golovich
43e312bd62
Fix spelling typo in chan_sip.c (bug #1059 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2193 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-19 00:14:58 +00:00
James Golovich
7907a37002
Fix typo in chan_sip.c (bug #1037 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2165 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-15 06:35:22 +00:00
Mark Spencer
077975cba7
Fix memory leak with SIP friends (bug #1010 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2145 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-09 06:09:45 +00:00
Mark Spencer
e1df8c9082
Properly fully URL decode the REPLACES in SIP and also watch for edge condition (bug #1015 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2142 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-09 05:38:17 +00:00
Mark Spencer
ae4adad5c4
Insert blank after REFER (bug #997 )
...
Correct path to VM sample (bug #994 )
Make manager interface non-blocking (bug #861 )
Don't bork on empty from in SIP (bug #887 )
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2138 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-07 07:13:33 +00:00
Mark Spencer
1a225306f8
Don't get stuck in loop
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2117 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-02 23:51:25 +00:00
Mark Spencer
2c9585e9f6
Force SIP reload to happen in network thread only
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2116 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-02 23:48:31 +00:00
Mark Spencer
bc06fe3b51
Fix small typos
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2115 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-02 23:22:57 +00:00
Mark Spencer
5bb289262e
Centralize all sip registration around a single lock
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2114 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-02 23:21:36 +00:00
Mark Spencer
8c339b9d63
Perform proper locking on registration on SIP
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2113 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-02 22:35:33 +00:00
Mark Spencer
904027f25f
Release the call when freeing a registry
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2112 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-02 20:50:05 +00:00
Mark Spencer
9c2f131b66
NetBSD portability enhancements (bug #969 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2109 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-02 06:38:08 +00:00
Mark Spencer
12934e17e6
If unregistered, don't consider it valid (bug #956 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2105 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-01 23:55:17 +00:00
Mark Spencer
80f23eb97d
Don't send VMWI when we're not registered
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2078 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-26 19:12:23 +00:00
Mark Spencer
662e7238ef
Send 481 if call leg does not exist on CANCEL, and send 487 before 200 as per rfc3261 (bug #917 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2071 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-26 05:28:14 +00:00
Mark Spencer
785da17231
Properly handle transfer of application (bug #911 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2066 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-25 05:51:49 +00:00
Mark Spencer
1499f1e480
Create individual sip reload command (bug #880 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2062 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-23 15:43:31 +00:00
Mark Spencer
8abe6ccb64
Merge SIP/MySQL friends patch
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2053 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-22 16:29:02 +00:00
Jeremy McNamara
a4cc03ffd9
clean up output and print that we are unregistering a channel type
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2025 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-14 06:10:53 +00:00
Jeremy McNamara
4a558d611b
comment out getsipuri to stop compiler warning
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2001 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-13 02:24:36 +00:00
Jeremy McNamara
226ec5bd25
via z9hG4bK issue. Bug #663
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2000 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-13 02:18:26 +00:00
Jeremy McNamara
3340239733
fix copy/paste error
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1999 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-13 01:59:36 +00:00
Jeremy McNamara
c5dcbb9901
Implement NAT trick for outbound SIP connections
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1998 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-13 01:31:42 +00:00
Jeremy McNamara
aa03b29d77
fix typo. Bug #813
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1987 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-12 21:42:51 +00:00
Jeremy McNamara
d4af3ee3b6
clean up sip debug output. Bug #674
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1986 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-12 21:37:50 +00:00
Mark Spencer
7a39517c94
Add new sound, fix nit picky detail in channel registration
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1985 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-12 19:34:40 +00:00
Jeremy McNamara
92f261cf3b
unregister cli functions and fix monitor thread. Bug #798
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1975 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-12 06:01:46 +00:00
Jeremy McNamara
f102ce6f26
Fix ast-db seeding. Bug #767
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1956 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-11 21:37:50 +00:00
Jeremy McNamara
1e3bd03b92
More buffer overflow checks from Corydon76.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1953 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-11 19:24:15 +00:00
Jeremy McNamara
2eaddaca67
check buffer for possible overflow. Thanks Corydon76 Bug #788
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1951 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-11 18:50:46 +00:00
Mark Spencer
861ed9a339
Cleanup ACL parsing, handle properly reload on sip with ACL
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1918 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-10 21:19:56 +00:00
Malcolm Davenport
d9de4806b0
Bug #765 : Modifying Auto-Congestion to p->maxtime * 4 instead of * 2
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1910 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-09 06:51:25 +00:00
Mark Spencer
d3bf33f9aa
Send date with invite
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1871 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-12-19 17:42:50 +00:00
Mark Spencer
ef6973087b
Fix reload race in SIP
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1870 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-12-19 16:14:51 +00:00
Mark Spencer
1a603dd365
The SIP motto is "There's More Than One Standard for Doing It"
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1856 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-12-13 22:54:37 +00:00
Mark Spencer
23cfe10d94
Don't retransmit INVITE on 407 retransmission
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1849 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-12-09 22:09:05 +00:00
Mark Spencer
72e21db66a
Minor sip fixes
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1848 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-12-09 22:04:23 +00:00
Mark Spencer
1451a407ac
Minor mgcp debuggin changes, sip deadlock improvement
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1841 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-12-09 00:02:06 +00:00
Mark Spencer
9ccfcb3d24
Properly build Contact on INVITE when asking for authentication
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1803 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-11-28 04:01:25 +00:00
Mark Spencer
efc61fe709
Temporarily revert changes, prepare for proper fix (sorry for the cvs spam)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1802 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-11-27 22:09:42 +00:00
Mark Spencer
7d74bcd7bc
Always save the extension
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1801 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-11-27 21:49:34 +00:00
Mark Spencer
37f33c4346
Build contact, don't copy it
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1800 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-11-27 18:27:02 +00:00
Mark Spencer
d4fe6cf255
Have a contact line in responses, merge logging patches
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1799 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-11-26 22:00:07 +00:00
Mark Spencer
6a7ddeb222
limit fixes in SIP
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1798 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-11-26 19:24:57 +00:00
Mark Spencer
e45e601c35
Use global nat settings in auto peers
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1796 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-11-26 18:56:00 +00:00
Mark Spencer
f367a8bd33
Minor 407 improvements
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1795 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-11-25 21:19:25 +00:00
Mark Spencer
3cfe7e6e25
Apply host access rules in SIP
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1790 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-11-24 21:27:51 +00:00
Mark Spencer
55beaa4d47
Increment session version each time we send a new SDP
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1789 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-11-24 19:13:32 +00:00
Mark Spencer
171b29fd4c
Allow SIP/peer/exten like IAX
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1787 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-11-24 01:49:43 +00:00
Mark Spencer
669e957291
Delete on unregister (bug #527 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1770 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-11-21 05:20:43 +00:00
Martin Pycko
e3b0a66805
Don't do reinvite if both parties talk diffrent codecs
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1752 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-11-15 00:52:49 +00:00
Martin Pycko
6f9da41a6c
Do the last thing the right way (thanks Mark)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1751 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-11-14 22:33:47 +00:00
Martin Pycko
2850b4962f
Don't allow to run SIPDtmfMode on other channels than SIP ones.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1750 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-11-14 21:58:54 +00:00
Martin Pycko
265d0a060c
A little oops ...
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1749 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-11-14 17:57:26 +00:00
Mark Spencer
4195115d60
Fix typo
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1733 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-11-13 00:44:31 +00:00
Mark Spencer
d21c6b7c13
Properly decode strings in REPLACES and ignore leading whitespace
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1732 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-11-13 00:43:02 +00:00
Martin Pycko
9d2c55e62a
Fix SIP_CODEC support
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1729 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-11-12 16:36:35 +00:00
Mark Spencer
a2303e3d0f
Don't reinvite if we got a refer
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1724 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-11-12 00:13:55 +00:00
Mark Spencer
027d5bbf30
Add ${SIPDOMAIN} and "dynamic peer" mode
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1722 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-11-11 20:46:41 +00:00
Mark Spencer
9175d0a1ee
If somehow we don't have an answer, set need to destroy on CANCEL
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1717 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-11-10 17:18:09 +00:00
Mark Spencer
b0f482d9b3
Handle 401 for INVITE as well (should we add support for BYE too?)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1714 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-11-10 04:22:33 +00:00
Mark Spencer
1e95c3a4ac
Remove really broke MP3 stuff in favor of G.726 in the near future
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1689 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-11-04 02:40:09 +00:00
Martin Pycko
0c5ee9486b
Make SIP_CODEC warn about not supported/not configured codec
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1687 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-11-04 00:34:17 +00:00
Martin Pycko
da93b54687
Add externip keyword so that it's possible to use asterisk behind a NAT through port forwarding
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1681 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-10-31 16:13:49 +00:00
Mark Spencer
77003fea94
Fix *8# magically (bug #116 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1665 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-10-25 17:41:02 +00:00
Mark Spencer
c6569f5177
Check that there really is a tag
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1663 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-10-24 18:22:45 +00:00
Mark Spencer
37ff334508
Set joint capability as well when checking users
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1662 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-10-23 03:58:40 +00:00
Mark Spencer
67d2608db9
Handle capability on inbound too
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1660 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-10-23 03:50:34 +00:00
Mark Spencer
a1fe10de33
Add language supporrt for SIP (bug #411 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1656 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-10-22 04:19:22 +00:00
Mark Spencer
5e25770a83
Okay, '*' and '#' are still okay in INFO messages
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1642 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-10-21 17:07:18 +00:00
Mark Spencer
bc69cfe5a4
Minor typo fix
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1639 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-10-21 03:10:43 +00:00
Martin Pycko
f59f259586
In the SIP -> SIP if the called party disconnects with 486 make sure that the calling party gets 486 also
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1633 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-10-15 22:12:05 +00:00
Mark Spencer
a32f02162b
Actually add md5secret option to CVS (bug #288 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1632 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-10-15 17:32:19 +00:00
Mark Spencer
c8a93d08eb
Properly strip "from" line
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1626 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-10-12 11:43:18 +00:00
Mark Spencer
1682b2ced8
Strip "sip:" from callerid
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1625 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-10-10 18:58:52 +00:00
Mark Spencer
4966cfa119
Fix typo
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1624 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-10-10 02:05:17 +00:00
Mark Spencer
f537e2e0ec
Consider "from" when getting destination (bug #368 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1623 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-10-09 22:50:42 +00:00
Mark Spencer
1343c2638c
Increase sizes in SIP (bug #352 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1610 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-10-06 00:39:34 +00:00
Mark Spencer
e4b8d32001
Make sip show channel display a given callid when only partly specified
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1602 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-10-02 06:46:19 +00:00
Martin Pycko
c0dde4ac5b
Add 486 message (SIP) to 17 cause (PRI) translation when you call Dial app and then Hangup:
...
exten => _X.,1,Dial(SIP/user)
exten => _X.,2,Hangup()
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1596 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-10-01 16:05:40 +00:00
Mark Spencer
9e68716e0e
Check registry carefully before unlinking
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1592 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-10-01 04:53:53 +00:00
Mark Spencer
d3e0c54f7d
Fix leaking sip channels
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1591 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-10-01 04:43:43 +00:00
Mark Spencer
80f05b38b0
Fix SIP for outbound too
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1590 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-10-01 03:03:42 +00:00
Mark Spencer
694d3435e1
Add sayunixtime, chan_sip updates for codec negotiation
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1589 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-09-30 23:03:57 +00:00
Mark Spencer
b9643771af
Destroy channels on BYE when no owner is present
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1584 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-09-30 04:57:20 +00:00
Mark Spencer
eca42807c3
Fix counter in SIP (bug #291 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1566 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-09-27 02:30:03 +00:00
Mark Spencer
83e9734908
Fix capability lookup failure
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1545 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-09-26 03:31:57 +00:00
Mark Spencer
273e1b07d6
Keep voicemail from segging on a permissions problem (bug #245 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1543 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-09-25 13:18:03 +00:00
Mark Spencer
90f6d836ee
Fix deadlock pointed to by Martin
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1524 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-09-17 20:51:53 +00:00
Mark Spencer
c511b967ed
Outgoing limit updates (bug #98 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1505 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-09-13 20:26:20 +00:00
Mark Spencer
faeb2e28f2
Add extended Matching functionality (bug #97 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1504 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-09-13 20:20:14 +00:00
Martin Pycko
78ef0d0ebe
Add SIPDtmfMode application
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1497 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-09-11 22:41:30 +00:00
Mark Spencer
76b99bb025
Fix typo
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1490 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-09-08 22:37:47 +00:00
Mark Spencer
979dc97f36
Fix "potential" deadlock and make not-a-deadlock
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1487 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-09-08 19:38:24 +00:00
Mark Spencer
479a67e629
BSD portability enhancements (bug #234 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1486 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-09-08 16:48:07 +00:00
Martin Pycko
6e8a074912
Add restrictcid=[yes|no] for chan_zap and chan_sip. You can specify if the sip/zap users will have the callerid transmitted as ANI or CALLERID.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1476 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-09-05 04:00:57 +00:00
Mark Spencer
687a0e76b5
Take URI from responses (bug #215 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1473 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-09-04 04:40:37 +00:00
Mark Spencer
174af33085
Actually use the "get_also" function
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1425 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-08-25 14:17:14 +00:00
Mark Spencer
eeceb89d31
First pass at BYE/Also transfer
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1423 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-08-25 00:05:48 +00:00
Mark Spencer
1d7e348b8f
Make sipdebug default to 0
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1420 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-08-24 22:56:54 +00:00
Mark Spencer
dcb9b8f9a2
Make SIP registration persistent (bug #159 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1419 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-08-24 22:35:06 +00:00
Mark Spencer
2d9561427e
Enable Asterisk to register with itself (with authentication)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1418 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-08-24 22:33:43 +00:00
Mark Spencer
f148fe7e4f
Send registration info on 407 too
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1417 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-08-24 21:47:25 +00:00
Mark Spencer
d6cfcc994d
Use URI in sip, update chan_vpb
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1413 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-08-24 06:24:38 +00:00
Mark Spencer
8d4afb9c19
Fix call pickup with SIP
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1412 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-08-23 22:27:10 +00:00
Mark Spencer
6b8998b8ec
Store password for later authentication needs
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1408 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-08-22 18:51:58 +00:00
Mark Spencer
bc46ece67f
Use "domain" instead of "uri" if supplied
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1407 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-08-22 16:53:36 +00:00
Mark Spencer
438ed9e5f8
Minor fix
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1406 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-08-22 16:36:33 +00:00
Mark Spencer
46059b0714
Reliably transmit BYE always
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1405 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-08-22 16:27:53 +00:00
Mark Spencer
ddb5ae08e8
Small changes that could be useful
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1404 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-08-22 16:12:06 +00:00
Mark Spencer
7d8d7837b4
Never create do initreq with BYE
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1402 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-08-21 23:41:23 +00:00
Mark Spencer
436f02d38a
Don't actually destroy in handle_request
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1397 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-08-21 23:00:22 +00:00
Mark Spencer
4b1baccb2e
In some cases, no need for an initreqprep
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1396 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-08-21 22:20:27 +00:00
Mark Spencer
a869aae156
Only suggest destroy
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1394 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-08-21 16:24:55 +00:00
Mark Spencer
b79a237186
Prefer bind address if specified over our actual route address
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1390 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-08-21 02:27:25 +00:00
Mark Spencer
913a5331b7
Only half-ack provisional responses
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1386 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-08-20 23:03:44 +00:00
Mark Spencer
b938de4ea7
Check for 407 on both outbound and non-outbound calls
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1383 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-08-20 14:28:51 +00:00
Mark Spencer
312760c381
First attempt at fixing bug #131 (authenticate BYE)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1382 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-08-20 05:56:13 +00:00
Mark Spencer
9140063401
Uh, don't lock
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1364 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-08-18 14:05:40 +00:00
Mark Spencer
341c78552d
If we can't transfer, be sure we hangup
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1359 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-08-18 05:23:10 +00:00
Martin Pycko
501c800c5a
Show the names of the codecs instead of the numbers (bug #92 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1348 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-08-16 05:10:35 +00:00
Mark Spencer
4e82233874
Don't lock when soft hanging up
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1346 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-08-15 23:57:13 +00:00
Mark Spencer
3e211c91a2
Make sure strncat is > 0
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1341 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-08-15 18:50:49 +00:00
Mark Spencer
37b7bccc61
Asterisk:
...
#72 - Should eliminate probs on VMWI
#41 - Dynamic add survives reload
#73 - Make festival honor its arguments
#93 - Make events on FXO interfaces more logical
#26 - Prefer "bindaddr" to logical address for registrations
??? - Record crashes AGI
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1338 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-08-15 04:38:39 +00:00
Mark Spencer
1bb58646de
Totally revamp thread debugging to support locating and removing deadlocks
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1310 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-08-13 15:25:16 +00:00
Mark Spencer
e85c9cbc45
Fix typo
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1301 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-08-12 21:18:24 +00:00
Mark Spencer
e4614cf487
Add optional pedantic SIP checking
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1298 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-08-12 16:48:16 +00:00
Mark Spencer
b12891297f
Handle 501 right
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1287 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-08-10 19:36:46 +00:00
Mark Spencer
56f1a46121
Fix TOS bit in SIP when verbose < 2, add support for mgcp TOS bits
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1243 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-07-30 20:49:23 +00:00
Mark Spencer
d407e8e25e
Small SIP simplification
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1242 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-07-30 20:45:17 +00:00
Mark Spencer
5ea641b2d3
If local user not found, allow call to pass
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1239 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-07-30 18:39:41 +00:00
Mark Spencer
70f306e8d8
Revision to SIP
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1225 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-07-26 23:14:27 +00:00
Mark Spencer
ecf50fcee8
Add per-user limits to chan_sip
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1223 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-07-26 15:12:37 +00:00
Mark Spencer
3f1d92ad68
Merge Matteo's INFO patch
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1208 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-07-24 00:36:03 +00:00
Martin Pycko
f2d573fe85
Fix two little things
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1201 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-07-22 22:07:16 +00:00
Mark Spencer
53fab94828
Minor fix for cid name
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1197 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-07-17 18:49:05 +00:00
Martin Pycko
09a80571a5
Fix a segfault with the calls that need to register with the remote gateway (eg: when asterisk has to send REGISTER message in order to place a call)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1190 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-07-15 05:05:19 +00:00
Mark Spencer
817fc344e7
Default to allowing H.263 but not H.261
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1132 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-06-29 03:25:00 +00:00
Mark Spencer
9befc69684
Properly handle broken up packets
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1129 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-06-28 18:35:58 +00:00
Mark Spencer
f5e13431a5
Add SIP/RTP video support, video enable app_echo, start on RTCP
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1128 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-06-28 16:40:02 +00:00
Mark Spencer
733f251743
Turn off moh on SIP transfer
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1121 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-06-25 16:12:23 +00:00
Mark Spencer
0e46787829
Make names more rational
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1114 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-06-24 12:51:28 +00:00
Mark Spencer
4c021fb727
Merge (for the time being) the alert code...
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1107 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-06-18 22:34:55 +00:00
Mark Spencer
2685819181
Minor fix for SIP authentication
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1101 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-06-17 16:36:24 +00:00
Mark Spencer
b04542e11e
Handle registration setups better when username contains an @
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1093 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-06-15 22:53:05 +00:00
Mark Spencer
3664ca0cbb
Remove duplicate define
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1091 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-06-14 23:01:12 +00:00
Mark Spencer
fc8d3631b4
Add SRV code to SIP, cleanup ENUM and make IAX2 do the right thing on dials
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1085 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-06-12 12:48:57 +00:00
Martin Pycko
c680adba74
Fix the segfault in get_calleridname if the From: string starts with "<sip:..."
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1079 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-06-08 16:26:08 +00:00
Martin Pycko
79c8c611db
Add intercepting the calleridname from incoming SIP calls
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1077 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-06-06 00:06:52 +00:00
Mark Spencer
1ba2edcfb2
Fix INFO on SIP with weird hardware
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1068 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-06-02 21:07:34 +00:00
Mark Spencer
acc40fafeb
Enforce mailboxes checked in increasing order
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1054 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-05-24 20:47:25 +00:00
Mark Spencer
38c28eb6cb
Restart faster on checking NOTIFY messages on mailboxes
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1053 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-05-24 20:42:44 +00:00
Mark Spencer
921ffb5dd7
Only send 180 ringing once, fix CTRL+D in main code
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1052 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-05-22 14:24:06 +00:00
Mark Spencer
bbdb142d2e
Always lock call in find_call
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1037 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-05-17 14:47:17 +00:00
Mark Spencer
f345e8a77c
Handle progress in chan_sip properly
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1025 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-05-15 22:39:01 +00:00
Mark Spencer
7c2d9a9302
Clarify check for when to send message
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1022 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-05-14 21:13:53 +00:00
Mark Spencer
377303a391
If we receive OPTIONS as the start of a conversation, kill it immediately after giving our response
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1020 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-05-14 19:17:20 +00:00
Mark Spencer
4f5c46fb20
Implement transfer (first pass) in SIP
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1017 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-05-14 05:52:59 +00:00
Mark Spencer
6642fb0688
Fix get_rdnis typo
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1009 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-05-13 00:17:14 +00:00
Mark Spencer
847f8207f7
Attempt RDNIS support
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1007 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-05-12 21:12:48 +00:00
Mark Spencer
48647bfc08
Make canreinvite globally applicable
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1003 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-05-12 16:16:33 +00:00
Mark Spencer
e0458e4c27
Consider VIA on BYE and CANCEL too
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@997 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-05-11 21:07:53 +00:00
Mark Spencer
067eae567c
Fix potential seg
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@985 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-05-09 19:02:10 +00:00
Mark Spencer
c31ecfba93
Make insecure perform as expected
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@974 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-05-08 03:32:59 +00:00
Mark Spencer
01a79e3adc
Merge tilghman's updates for getourip
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@958 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-05-04 05:52:52 +00:00
Mark Spencer
8162607c58
Fix typo
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@953 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-05-03 03:30:55 +00:00
Mark Spencer
fe7038fb2d
Build tohost on options
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@952 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-05-03 03:29:58 +00:00
Mark Spencer
163898dae7
Release peer/user determination when insecure = yes
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@950 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-05-02 02:37:57 +00:00
Mark Spencer
f0d069772c
Parse first line parts when copying initreq's.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@949 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-05-02 02:18:41 +00:00
Mark Spencer
6abb9f6415
Fix core on initial one
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@944 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-04-30 22:17:21 +00:00