Jason Parker
d97b6e3d34
This transcoder message needn't be a NOTICE.
...
I've seen it cause confusion more than a few times.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@62173 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-27 16:16:16 +00:00
Olle Johansson
3bafdca29f
Issue #7351 - SIP Cancel fails due to the wrong contact uri. Reported by PPYY, failed to fix by OEJ
...
final fix by wojtekka - THANKS!!!! THis was a hard one to catch.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@62126 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-27 13:57:45 +00:00
Joshua Colp
babe9cbbef
Revert previous fix for when the IAX2 channel goes funky (that's the technical term). This is causing legit calls to be prematurely hung up. (issue #9600 reported by justdave)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@62037 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-26 16:30:57 +00:00
Joshua Colp
897b4c0ca3
Don't count failed include attempts against the configuration include level. (issue #9593 reported by mostyn)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61958 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-26 01:25:03 +00:00
Kevin P. Fleming
cd3ef82ba4
handle a very bizarre race condition with channels being redirected before a simple switch can be started on them (issue #9286 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61913 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-25 22:24:59 +00:00
Russell Bryant
bc604c9e9a
If the callerid= option is specified, but empty, clear any previous data.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61866 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-25 21:55:23 +00:00
Russell Bryant
85cff883ee
Ensure that callerid settings are reset on a reload.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61862 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-25 21:06:22 +00:00
Joshua Colp
6ab97a0292
Merge rewritten group counting support. No more storing data on the variable list of the channels. That was bad, mmmk? (issue #7497 reported by sabbathbh)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61804 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-25 18:52:50 +00:00
Russell Bryant
eab557da86
Fix a typo where cid_num got copied instead of cid_ani.
...
(issue #9587 , reported and patched by xrg)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61798 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-25 16:20:38 +00:00
Russell Bryant
c5a87ff71d
Don't crash if a manager connection provides a username that exists in
...
manager.conf but does not have a password, and also requests MD5
authentication. (ASA-2007-012)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61786 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-24 21:33:59 +00:00
Dwayne M. Hubbard
1cde24d633
removed #if 0 block from chan_phone, chan_zap, and chan_modem restart_monitor()
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61777 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-24 18:20:31 +00:00
Dwayne M. Hubbard
654c04bfc9
removed pthread_join in restart_monitor() to make it like chan_zap and other channel drivers
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61776 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-24 17:42:12 +00:00
Joshua Colp
a31a2ef862
Allow RFC2833 to be sent in the response SDP when an INVITE comes in without SDP. (issue #9546 reported by mcrawford)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61771 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-24 16:05:06 +00:00
Christian Richter
f1edea1129
added lock for sending messages to avoid double sending. shuffled some empty_chans after the cb_event calls, this avoids that a release_complete from a quite different call releases a fresh created setup by accident.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61770 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-24 13:50:05 +00:00
Jason Parker
3682e51ba7
Fix an issue that I noticed while looking over issue 9571.
...
The reload timestamp was getting set after reloading the built-in stuff, and before the modules.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61704 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-20 21:14:27 +00:00
Jason Parker
c28413ff94
If the '* to hangup' option is not enabled, we don't need to disable * as a valid exit key.
...
If it was enabled, this statement would've never been checked in the first place.
Issue #9552
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61692 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-20 19:49:54 +00:00
Olle Johansson
57185823d1
Send NOTIFY to Contact: in SUBSCRIBE
...
- as reported by Intertex and Citel. Fixed during SIPit 20 in Antwerp.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61685 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-19 07:56:21 +00:00
Tilghman Lesher
e4467b3837
Bug 9557 - Specifying the GetVar AMI action without a Channel parameter can
...
cause Asterisk to crash. The reason this needs to be fixed in the functions
instead of in AMI is because Channel can legitimately be NULL, such as when
retrieving global variables.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61680 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-19 02:30:18 +00:00
Olle Johansson
062368a175
Don't stop RTP on errors on INFO messages.
...
Disclaimer: This patch was needed for Edvina AstHoloApp and was
meant to be included in 1.2, but never made it in time so I felt
I could add it now.
No, just joking, patching error found while testing T.140 with Omnitor earlier
this spring.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61663 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-16 14:08:33 +00:00
Joshua Colp
4b17148846
Add OUTBOUND_GROUP_ONCE variable to app_dial. This behaves the same as OUTBOUND_GROUP except it will get unset after use so it won't get accidentally inherited. (issue #BE-140)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61655 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-13 19:15:12 +00:00
Russell Bryant
2128909ad4
If someone sets the "useragent" option in sip.conf to be empty, then don't add
...
the User-Agent header at all. It is an optional header, anyway. Also, the bug
report says that some of Japan's SIP providers don't allow it for some weird
reason. (issue #9488 , reported by makoto, fixed by me)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61476 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-11 16:01:25 +00:00
Russell Bryant
a36f57e7fc
Fix a bug with switching between host=dynamic and using specific hosts for
...
peers. The code would only reset the peer's address when it is dynamic if
it was a new peer structure. Now, it will also reset the address if it was
already in the peer list, but before the reload, it was not dynamic.
(issue #9515 , reported by caio1982, fixed by me)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61426 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-11 15:05:36 +00:00
Russell Bryant
1159b7761a
Remove the attempt at reporting configuration errors in sip.conf. This can
...
cause a bunch of improper messages when using realtime. I give up. As oej
tried to convince me when I put this in, there is just no easy way to do it.
(inspired by a message on the -dev list)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61376 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-11 14:02:54 +00:00
Christian Richter
104b12df79
some fixes for PMP Hold/Retrieve, it should work now, when briding=no
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61357 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-11 12:05:57 +00:00
Nadi Sarrar
1330496973
msns config parameter defaults to '*'
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61170 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-10 12:31:45 +00:00
Olle Johansson
1a92fec845
- Don't send ActionID before Response: header.
...
- Don't use a blank in an AMI header
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61038 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-09 19:38:59 +00:00
Jason Parker
62de701abb
Allow matching on names shorter than 3 chars.
...
This also fixes the case where somebody wants to match on less then 3 chars.
Issue 9071
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60935 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-09 17:22:15 +00:00
Tilghman Lesher
2eaae45f81
Don't check for error when lowering priority (according to the manpage, it should never happen anyway). It might could happen, though, if another thread messed with the priority, so safeguard against that (reported via -dev list).
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60849 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-09 02:49:06 +00:00
Tilghman Lesher
b9ec441aa9
Bug 9505 - If the return value for local_queue_frame is set, then p->lock is no longer valid.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60846 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-09 02:37:18 +00:00
Joshua Colp
f2680a35d4
When calling a device that then forwards us elsewhere... we have to make our channels compatible if it is the only channel being dialed. (issue #9445 reported by marcelbarbulescu)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60797 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-09 00:59:29 +00:00
Tilghman Lesher
2e1fe209de
Gosub called within a Macro resets the arguments improperly and causes general weirdness. (Issue 8329)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60711 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-08 14:00:22 +00:00
Tilghman Lesher
abe55bf16f
Bug 9486 - memory leak when opening a filestream
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60660 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-08 01:39:25 +00:00
Matthew Fredrickson
d971b4ba93
There should only be one code path for doing DTMF conditionals on channels. This fixes it.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60456 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-06 17:03:15 +00:00
Kevin P. Fleming
5cbe22e0f7
remove undocumented 'cardsmode' parameter and stop searching for transcoders during reload()
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60398 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-06 14:41:37 +00:00
Jason Parker
6374772250
Just because we can't find the voicemail configuration file, doesn't
...
mean that the module failed to load. The user could be using realtime.
Issue #9473
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60267 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-05 16:09:41 +00:00
Joshua Colp
dd108f60f3
Only unlock our pvt and net locks if we are actually going to try to lock the owner again. (issue #9472 reported by zoa)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60213 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-05 12:52:50 +00:00
Russell Bryant
2bed78a613
It is valid to redirect channels via the manager interface that are not in the
...
UP state. Instead of checking for that to prevent to ensure a dead channel
doesn't get redirected, just use the ast_check_hangup() API call.
(issue #9457 , reported by Callmewind, patch by me)
(related to issue #8977 )
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60134 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-04 17:38:47 +00:00
Russell Bryant
3f71ad082e
Fix the return value of handle_common_options() so that it always properly
...
indicates whether it handled the option or not.
(issue #9455 , reported by Netview, fixed by me)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60083 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-04 16:37:04 +00:00
Russell Bryant
d0991f6e1f
Add a missing "\r\n" in the body of the NOTIFY that is sent to indicate the
...
status of a transfer. (issue #9388 , reported by rarritt)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60016 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-03 23:23:23 +00:00
Russell Bryant
7a18c89ba8
Use the more generic check for "sed -r" support that was already present in 1.4.
...
(related to issue #9399 )
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60014 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-03 23:00:10 +00:00
Russell Bryant
683a345699
On Darwin, the -r argument to sed is not valid. It has to be -E.
...
(issue #9399 , reported by jcovert)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60012 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-03 22:54:49 +00:00
Russell Bryant
e237711157
Don't attempt to report configuration errors in build_user(). oej pointed out
...
that for a "friend" entry, this won't work, because all user options are valid
for peers, but not the other way around.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59938 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-03 19:15:04 +00:00
Russell Bryant
a19d352438
Make chan_sip report when it encounters an unknown option.
...
(issue #9440 , reported by nightcrawler)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59916 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-03 18:43:54 +00:00
Russell Bryant
f96aef8d79
When doing a built-in blind or attended transfer, restore the ability to use '#'
...
to terminate the number and immediately do the transfer instead of having to
dial the number and just wait for the feature digit timeout.
(issue #8366 , xueliangliang)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59886 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-03 17:58:19 +00:00
Nadi Sarrar
5ded94acbe
ptp is the 5th bit, not the 4th.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59803 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-03 10:40:58 +00:00
Nadi Sarrar
b18a9b92c8
Use the new sysfs way of mISDN 1.2 to check if a port is NT or not.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59788 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-03 09:37:00 +00:00
Joshua Colp
5e01069962
Increase the maximum size for a string of mailboxes to 1024. (issue #9270 reported by rtucker)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59723 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-02 18:55:25 +00:00
Christian Richter
30fd84d952
added option which allows us to accept incoming SETUP Messages without automatically sending Proceeding or Setup Acknowledge, this is useful with some broken switches and if you want to Release incoming calls without previously having acknowledged them. The new option is noautorespond_on_setup=yes|no default is no, so we don't break the existing behaviour
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59639 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-02 12:08:12 +00:00
Christian Richter
e299df7a75
don't be verbose if no need
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59624 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-02 07:25:54 +00:00
Christian Richter
51366b90d0
we can now make 30 channels on a PRI (before we forgot chan 31..)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59623 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-02 07:12:24 +00:00