Commit Graph

7185 Commits

Author SHA1 Message Date
Joshua Colp
01a7955445 Use responses rather then replies even though they mean the same thing.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@45265 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-16 19:59:54 +00:00
Joshua Colp
e64fa8614d Add 'ignoreoodreplies' option which will not create a pvt structure on a SIP response but instead basically drop it.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@45260 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-16 19:28:18 +00:00
Steve Murphy
5e3d5c55b4 Made a small update to solve bug 8128; The switch-case fallthru goto to a pattern extension needed to resolved the wildcards to an appropriate digit for extension matching to work
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@45134 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-14 00:16:58 +00:00
Kevin P. Fleming
ce069b0c77 don't drop the entire permit/deny list when an attempt is made to add an invalid entry (BE-92)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@45119 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-13 22:57:42 +00:00
Christian Richter
1775cae084 avoiding warning, fixing potential bug (backported from 1.2)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@45090 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-13 19:27:22 +00:00
Joshua Colp
d0649af76d Turn on volume adjustment if it needs to be on (issue #8136 reported by mnicholson)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@45060 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-13 17:01:22 +00:00
Kevin P. Fleming
170abc16b0 when sending a call to a peer, use the proper socket if we have multiple bindings (reported on asterisk-dev)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@45048 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-13 16:18:08 +00:00
Joshua Colp
58477e2410 Pass the right value to usleep for sleeping, and always add the background refresh item back into the scheduler if enabled since it is deleted during reload. (issue #8142 reported by p_lindheimer)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@45030 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-13 15:49:53 +00:00
Christian Richter
0bd76b00b2 fixed some echocandisable issues when bridged. this caused a kernel panic sometimes..also some minor formatting fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@45020 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-13 13:11:13 +00:00
Christian Richter
4981d1c5dd fixed issue, that the hangupcause got a wrong isdn cause at RELEASE_COMPLETE
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@44993 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-13 07:40:07 +00:00
Kevin P. Fleming
ffb75188e1 ensure that IAX2 and SIP sockets allow UDP fragmentation when running on Linux (thanks to Brian Candler on the asterisk-dev list for the tip)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@44955 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-12 18:31:26 +00:00
Christian Richter
722d56e081 (re)added support of dynamical enabling hdlc on bchannels
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@44785 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-10 13:34:33 +00:00
Olle Johansson
cd79e99638 Issue #8101 - wrong parameter for screening in remote-party-id
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@44757 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-09 14:36:24 +00:00
Joshua Colp
bfbbc4de78 Even more frames to treat as though the remote side disappeared (issue #8097 reported by eldadran)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@44580 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-06 16:52:14 +00:00
Joshua Colp
4e717c8ea6 Treat busy control frames as hangup in the file streaming core (issue #8097 reported by eldadran)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@44501 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-05 19:55:41 +00:00
Christian Richter
8684599f6c fixed segfault which happens during hold/transfer action
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@44460 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-05 10:02:38 +00:00
Kevin P. Fleming
a8c86fb9b2 fix Polycom presence notification again
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@44432 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-05 01:27:57 +00:00
Kevin P. Fleming
87706f538e remove workaround for old Polycom firmware SUBSCRIBE requests
add workaround for new Polycom firmware SUBSCRIBE requests (bug is known to exist in 2.0.1 firmware)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@44392 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-04 21:15:29 +00:00
Steve Murphy
4f0d22fde1 For bug 7776, I have inserted a warning about Macro nesting vs. stack limitations
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@44343 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-04 16:02:22 +00:00
Christian Richter
eae488f164 if INFORMATION Message come with keypad instead of called party number, we just use the keypad as called party number.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@44335 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-04 15:26:59 +00:00
Christian Richter
0b4f47c3c3 added the option 'reject_cause' to make it possible to set the RELEASE_COMPLETE - cause on the 3. incoming PMP channel, which is automatically rejected because chan_misdn does not support that kind of callwaiting. Therefore chan_misdn supports now 3 incoming channels on a PMP BRI Port. misdn_lib_get_free_bc now gets the info if the requested channel is incoming or outgoing to make the 3. channel possible
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@44334 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-04 15:13:58 +00:00
Kevin P. Fleming
9c405de30d fix a logic error in my previous fix to the queue reload code
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@44296 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-03 20:14:13 +00:00
Joshua Colp
e0408416d3 Change the fd on the I/O context in case it changed during the reload, which is indeed possible. (issue #7943 reported by eclubb)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@44213 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-02 20:07:59 +00:00
Joshua Colp
7e7a5bfc73 We should be using $AST_SBIN instead of hardcoding the path for the error message (issue #7942 reported by eclubb)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@44198 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-02 19:39:59 +00:00
Joshua Colp
d1f421a9f6 Shrink when current_ioc is unused. It is set to -1 when unused, not 0. (issue #7941 reported by eclubb)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@44168 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-02 17:22:27 +00:00
Christian Richter
77a645d0c6 fixed the hold/retrieve/transfer issues, removed a useless bc field, added setting of frame.delivery fields, some minor code cleanups
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@44149 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-02 13:28:14 +00:00
Russell Bryant
73138db44a Fix the name of the "eventmemberstatus" option in the sample queues.conf
(issue #8065, adamg)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@44110 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-01 15:19:23 +00:00
Kevin P. Fleming
02ae73bd6a proper fix for ast_group_t change
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@43977 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-29 13:44:12 +00:00
Joshua Colp
87803a8ac6 Put in missing \ns on the end of ast_logs (issue #7936 reported by wojtekka)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@43924 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-28 18:00:30 +00:00
Kevin P. Fleming
7620e04612 fix buggy (and overly complex) loop used during reload of app_queue for static member list updating
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@43916 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-28 17:31:57 +00:00
BJ Weschke
fb599cc53e app_queue is comparing the device names incorrectly while checking their statuses. It's internal list of interfaces includes the dial string, while the argument passed to this function does not have the dial string (/n for a local channel). This causes it to ignore the device state changes because it thinks it belongs to none of its members. (#8040 reported and patch by tim_ringenbach)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@43897 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-28 16:37:15 +00:00
Kevin P. Fleming
dc268f1e6e eliminate compiler warning introduced by recent changes
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@43895 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-28 16:32:44 +00:00
Joshua Colp
34adb7efe6 Stop the stream after waitstream returns so that our formats get restored. (issue #7370 reported by kryptolus)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@43891 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-28 16:13:55 +00:00
BJ Weschke
f6ddf4e7d4 Fix race condion crash with get_member_status (#7864 - tim_ringenbach reported and patched)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@43871 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-28 15:18:05 +00:00
Tilghman Lesher
a2d98d6c7c Avoid inability to lock directory log message by creating the directory ahead of time. (Issue 7631)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@43815 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-27 20:20:35 +00:00
Jason Parker
e247b8ab33 Playback() wasn't setting PLAYBACKSTATUS under several circumstances.
Playback() returns -1 on missing args - so should Background()


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@43800 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-27 19:35:09 +00:00
Russell Bryant
0d9ea31f3a Fix a problem that occurred if a user entered a digit that matched a bridge
feature that was configured using multiple digits, and the digit that was
pressed timed out in the feature digit timeout period.  For example, if blind
transfer is configured as '##', and a user presses just '#'.  In this situation,
the call would lock up and no longer pass any frames.
(issue #7977 reported by festr, and issue #7982 reported by michaels and
 valuable input provided by mneuhauser and kuj.  Fixed by me, with testing help
 and peer review from Joshua Colp).

There are a couple of issues involved in this fix:

1) When ast_generic_bridge determines that there has been a timeout, it returned
   AST_BRIDGE_RETRY.  Then, when ast_channel_bridge gets this result, it calls
   ast_generic_bridge over again with the same timestamp for the next event.
   This results in an endless loop of nothing until the call is terminated.
   This is resolved by simply changing ast_generic_bridge to return 
   AST_BRIDGE_COMPLETE when it sees a timeout.

2) I also changed ast_channel_bridge such that if in the process of calculating
   the time until the next event, it knows a timeout has already occured, to
   immediately return AST_BRIDGE_COMPLETE instead of attempting to bridge the
   channels anyway.

3) In the process of testing the previous two changes, I ran into a problem in
   res_features where ast_channel_bridge would return because it determined
   that there was a timeout.  However, ast_bridge_call in res_features would
   then determine by its own calculation that there was still 1 ms before the
   timeout really occurs.  It would then proceed, and since the bridge broke
   out and did *not* return a frame, it interpreted this as the call was over
   and hung up the channels.

   The reason for this was because ast_bridge_call in res_features and
   ast_channel_bridge in channel.c were using different times for their
   calculations.  channel.c uses the start_time on the bridge config, which
   is the time that the feature digit was recieved.  However, res_features
   had another time, 'start', which was set right before calling 
   ast_channel_bridge.  'start' will always be slightly after start_time in the
   bridge config, and sometimes enough to round up to one ms.

   This is fixed by making ast_bridge_call use the same time as 
   ast_channel_bridge for the timeout calculation.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@43778 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-27 16:54:30 +00:00
Christian Richter
630930dd7f fixed a bug which led to chan_list zombies, when the call could not be properly established in misdn_call. also removed the ACK_HDLC stuff which is not really needed.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@43764 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-27 12:51:03 +00:00
Russell Bryant
8c2fee974a Back in revision 4798, this message was changed from using ast_cli() to directly
calling write().  During this change, checking if this was a remote console was
removed.  This caused this message about using "exit" or "quit" to exit an
Asterisk console to come up in times where it did not make sense.  This change
restores the check to see if this is a remote console before printing the
message.  (fixes BE-4)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@43708 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-26 20:49:21 +00:00
Joshua Colp
ff41b0ae36 I changed the channel structure... let's be sure this gets updated!
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@43706 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-26 20:38:42 +00:00
Joshua Colp
12afd66083 Use proper type to represent the group variable (issue #8025 reported by makoto)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@43705 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-26 20:38:06 +00:00
Russell Bryant
a0da756f2a When parsing the sections of voicemail.conf that contain mailbox definitions,
don't introduce a length limit on the definition by using a 256 byte temporary
storage buffer.  Instead, make the temporary buffer just as big as it needs
to be to hold the entire mailbox definition.
(fixes BE-68)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@43699 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-26 20:23:15 +00:00
Tilghman Lesher
83b377451c Two bugs when forwarding voicemail (Issue 7824):
1) delete=yes was ignored
2) maxmessages was ignored


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@43634 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-25 21:14:41 +00:00
Russell Bryant
00ca92aeee Check to see if the channel that is activating the IAXPEER function is actually
an IAX2 channel before proceeding to process it to avoid crashing.
(issue #8017, reported by admott, fixed by myself)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@43552 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-24 13:50:30 +00:00
Joshua Colp
c6e25717b4 Yay another 'round of spy fixes! This fixes a small logic flaw with the cleanup function and a memory allocation issue. (issue #7960 reported by jojo & issue #7999 reported by aster1) Special thanks to csum77 for letting me into a box where this issue was happening.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@43509 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-22 21:53:51 +00:00
Tilghman Lesher
e095711654 Whitespace change... really just an excuse to test repotools
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@43420 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-21 17:01:48 +00:00
Tilghman Lesher
a6751ecf3a TDS 0.64 updates
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@43409 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-21 16:18:19 +00:00
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
Tilghman Lesher
6728ebb72c cid is passed to a destructive function; thus a copy is needed (issue 7961)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@43248 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-19 12:28:55 +00:00