Kevin P. Fleming
377dac8495
make some more functions static
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@43314 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-20 05:08:05 +00:00
Matt O'Gorman
942768c022
fixes some verbose vs debug issues. patch from bug 2617
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@43269 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-19 16:21:08 +00:00
Olle Johansson
eb4bd38c92
Issue #7682 - don't add contacts to 4xx responses.
...
(Ugly fix, not proud at all)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@43220 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-18 20:08:22 +00:00
Olle Johansson
ed09034360
- Reset proper flag
...
- Don't delete SIP dialog prematurely
Strangely enough imported from svn trunk... It's confusing here in Greenland.
(Committing from 36.000 feet above Greenland, on the way to asterisk@von
http://www.pulver.com/asterisk )
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@42535 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-09 12:14:03 +00:00
Olle Johansson
9eb92ed083
Don't kill the pvt before we have sent ACK on CANCEL (needs more testing before making a release)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@41989 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-04 15:46:07 +00:00
Joshua Colp
1e21d7a537
Only wipe the redirected audio & video IP/port if it's specified, and trigger a reinvite.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@41768 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-01 22:49:07 +00:00
Kevin P. Fleming
abb4e3a3a4
put in proper fix for issue #7294 instead of the broken partial fix that was committed, and thereby also fix issue #7438
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@41716 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-01 17:35:06 +00:00
Olle Johansson
abfcb8d31e
Issue #7572 - Hangup when receiving a buggy 487 response to an INVITE
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@41423 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-30 19:01:55 +00:00
Russell Bryant
e174a3c762
Restore original functionality of 1.2 in places where ANI was not set, but was
...
changed to be set. The original change was done to ensure that the behavior of
the "callerid" option in each channel driver was consistent, but it caused an
unexpected behavior change of CDR records for users, so this change is being
reverted in 1.2. (issue #7695 )
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@41411 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-30 18:59:44 +00:00
Olle Johansson
955aa04edc
Issue 7822 - don't use SRV lookups if it's disabled.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@41334 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-30 14:31:47 +00:00
Joshua Colp
379785c401
Turn media level c= parsing on by default (issue #7725 reported by psm)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@40601 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-20 04:49:48 +00:00
Russell Bryant
b740b45902
Increase the buffer size for the callid (issue #7675 , reported by pssatcs)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@39350 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-08 17:04:10 +00:00
Russell Bryant
54b8d83e4f
don't advertise that this function can set a SIP header when it can only
...
do reads
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@38950 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-05 07:21:12 +00:00
Russell Bryant
66b15a3461
Fix an issue that would cause a NewCallerID manager event to be generated
...
before the channel's NewChannel event. This was due to a somewhat recent
change that included using ast_set_callerid() where it wasn't before. This
function should not be used in the channel driver "new" functions.
(issue #7654 , fixed by me)
Also, fix a couple minor bugs in usecount handling. chan_iax2 could have
increased the usecount but then returned an error. The place where chan_sip
increased the usecount did not call ast_update_usecount()
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@38904 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-05 05:08:50 +00:00
Kevin P. Fleming
8ddb00adaa
fix brain-damage I introduced when trying to fix the CANCEL/BYE sending mechanism for pending INVITES
...
accept unknown 1xx responses as 183 responses (as RFC3261 mandates we should do)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@38731 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-02 19:29:56 +00:00
Kevin P. Fleming
532ff6487b
don't reissue hangup requests for SIP channels that have expired their RTP timeouts (one time is enough)
...
don't rescan the SIP private structure list too fast, it can cause channels to not be able to hang up (issue #7495 , and probably others)
use ast_softhangup_nolock() since we already hold the channel's lock
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@38611 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-31 21:14:11 +00:00
Joshua Colp
1020b9d11a
How many attempts does it take to make a SIP URI parser that works well? I'm up to 5 personally. On to the good stuff - parse the domain first, user second, and get rid of port & options/params last. (issue #7616 reported by andrew)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@38501 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-29 23:18:00 +00:00
Joshua Colp
2e7e645c77
Make a copy of the request URI in check_user_full instead of modifying the one on the structure, and also strip params properly from the user portion of the SIP URI so as to preserve the domain (issue #7552 reported by dan42)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@38420 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-28 18:49:00 +00:00
Russell Bryant
425c51cfd5
fix a crash when MALLOC_DEBUG is enabled and the regexten is enabled. The crash
...
would occur when the extension got removed. (fixes issue #7484 )
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@38288 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-27 01:58:41 +00:00
Joshua Colp
46012df0b6
Put default callerid into contact when the one specified is either NULL or has a zero string length. (issue #7590 reported by key2)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@38234 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-26 15:26:06 +00:00
Kevin P. Fleming
88ccb628f9
report address of peer trying to subscribe to unknown hint
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@37531 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-13 16:44:23 +00:00
Joshua Colp
5a86fcf1f8
Instead of giving the scheduled item ID on a peer expiration, give the time until they expire (issue #7455 reported by slavon)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@37173 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-06 15:48:07 +00:00
Olle Johansson
2211a552d3
Tell clients based on old SIP standard that we only support MD5 digest authentication...
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@36911 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-04 14:45:44 +00:00
Olle Johansson
b8e4f60589
issue #7470 - Need larger buffer for record-route headers...
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@36838 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-03 15:00:50 +00:00
Russell Bryant
99b3637d6a
use ast_set_callerid to be more consistent and to make sure that the
...
"callerid" option in the conf files is always handled the same way and sets ANI
(issue #7285 , gkloepfer)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@36725 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-03 04:19:09 +00:00
Olle Johansson
27aa56e14e
Don't delete scheduled item twice in sip_destroy (already fixed in svn trunk)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@36187 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-28 14:12:43 +00:00
Kevin P. Fleming
3d09ddb98e
ensure that two SIP channels that exist at the same moment will not have the same channel names (issue #7245 , different fix)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@36078 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-26 17:10:12 +00:00
Olle Johansson
bbcb713b68
Issue 6997 maybe, but anyway - don't retransmit responses to NON-invite requests.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@36043 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-26 15:27:58 +00:00
Tilghman Lesher
f6b683b302
Bug 7425 - Size of buffer is passed in by len
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@35915 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-25 15:10:06 +00:00
Olle Johansson
e5505d1baf
Issue #6820 - Possible fix (already implemented in trunk)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@35058 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-20 10:27:44 +00:00
Olle Johansson
3cf57b8066
Issue 7294 - patch by phsultan - Asterisk sends Invite instead of BYE in some cases.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@34306 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-15 14:11:22 +00:00
Olle Johansson
4de28aa7cc
Do not require a context on a domain= setting
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@33235 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-09 15:53:28 +00:00
Kevin P. Fleming
547a070805
allow SIPCHANINFO(peername) to work for calls from users as well (issue #7215 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@30293 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-25 17:18:01 +00:00
Kevin P. Fleming
6b101367b8
oops... make sure to stop processing a request once we have sent an authentication challenge (issue #7220 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@30098 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-24 21:24:45 +00:00
Kevin P. Fleming
5ecca96df5
don't send CANCEL on a pending INVITE if we haven't received a provisional response yet... mark it pending until the first response is received (issue #7079 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@30069 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-24 20:09:24 +00:00
Kevin P. Fleming
76066c2b74
fix for non-OSP builds (issue #7217 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@29959 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-24 12:31:45 +00:00
Kevin P. Fleming
9739139287
add an option to allow the admin to 'hide' SIP user/peer names from systems trying to 'fish' names
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@29904 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-24 03:32:02 +00:00
Kevin P. Fleming
d6873875cc
simplify/fix lock retry, and fix comment
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@29764 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-23 18:16:40 +00:00
BJ Weschke
f84891dfbb
Sanity check code for an extended failure in trying to obtain a channel lock that may have been obtained elsewhere. Prevents the monitor thread of the SIP module from going into an infinite loop, effectively, breaking SIP until you restart Asterisk or the mutex is unlocked, whichever comes first.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@29733 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-23 17:17:02 +00:00
Russell Bryant
ee808b6187
fix the possibility of writing one byte past the end of a buffer.
...
(issue #7189 , Mithraen)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@29052 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-20 19:50:41 +00:00
Kevin P. Fleming
0c4cc3b0ce
use the specified 'subscribecontext' for a peer rather than the context found via the target domain (domain contexts are for calls, not for subscriptions) (issue #7122 , reported by raarts)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@28794 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-19 19:39:55 +00:00
Kevin P. Fleming
89da276678
fix up a few more places to find the SDP properly (fallout from fix for #7124 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@28384 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-18 20:43:42 +00:00
Kevin P. Fleming
53a0b36973
handle incoming multipart/mixed message bodies in SIP and find the SDP, if presnet (issue #7124 reported and patched by eborgstrom, but very different fix)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@28380 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-18 20:24:07 +00:00
Kevin P. Fleming
2ef43a770b
support 'inactive' tag for SDP media streams (simple fix, proper fix will appear in 1.4 release) (issue #7130 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@28335 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-18 19:16:40 +00:00
Olle Johansson
8b96daf53e
Issue #7176 - Crash in expire_register
...
(We need to find out what's causing peer to be undefined, so this
is just a bandaid, not a real fix)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@27927 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-17 19:27:15 +00:00
Olle Johansson
d5d56f98c3
chan_sip did not use the TRANSFER_CONTEXT for transfers, like res_features. Now fixed.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@27723 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-17 09:21:45 +00:00
Kevin P. Fleming
78986fe938
ensure that we send a response to REGISTER requests that are successfully authenticated but contain invalid Contact URIs
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@26760 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-11 08:52:46 +00:00
BJ Weschke
adbfc9d3c7
Add the appropriate jumping behavior that is the standard for 1.2.X to SIPGetHeader that is now deprecated in /trunk. #7111 (blitzrage!!!)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@26090 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-09 14:18:45 +00:00
Olle Johansson
6b93396fb9
Issue 7103 - mikma
...
- The header is named "Require"
- Don't reply to ACK
(Not using patch against trunk)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@25608 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-08 15:09:55 +00:00
Olle Johansson
87d78ee383
Issue #7074 - Problem with long contact lines
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@24381 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-03 12:39:55 +00:00