Archived
14
0
Fork 0
Commit graph

4786 commits

Author SHA1 Message Date
mmichelson
852aa2966e Merged revisions 81120 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r81120 | mmichelson | 2007-08-27 16:08:48 -0500 (Mon, 27 Aug 2007) | 7 lines

DTMF begin frames should be ignored so that when an agent acks a call with the '#' key,
he doesn't cause a queue's announce file to be interrupted. Also went ahead and did the
same for the '*' key and for ending a call.

(closes issue #10528, reported by deskhack, patched by me)


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@81121 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-27 21:09:37 +00:00
file
b4447a632b Merged revisions 81012 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r81012 | file | 2007-08-27 12:01:59 -0300 (Mon, 27 Aug 2007) | 6 lines

(closes issue #10561)
Reported by: jesselang
Patches:
      chan_sip-ChannelReload-20080825.patch uploaded by jesselang (license 202)
Remove an extra \r\n to make the ChannelReload event conform with every other event.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@81013 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-27 15:03:41 +00:00
file
def2098ac0 Remove places that say if no language is specified it will default to english... since on some setups this is untrue.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@80991 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-27 13:35:16 +00:00
russell
2397e363d1 Merged revisions 80932 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80932 | russell | 2007-08-26 13:11:26 -0500 (Sun, 26 Aug 2007) | 3 lines

Remove an extra signal_condition() for the scheduler thread.
(closes issue #10564, patch from casper)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@80933 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-26 18:12:58 +00:00
russell
2183a8268c Merged revisions 80895 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80895 | russell | 2007-08-25 12:37:39 -0500 (Sat, 25 Aug 2007) | 7 lines

Fix some issues with the handling of the scheduler in chan_iax2.  Most of the
places that scheduled items to be executed by the scheduler thread did not
signal the scheduler thread to wake up so that it could recalculate the time
until the next action.  These changes will make the scheduler thread more
responsive and ensure that actions get executed as close to when intended as
possible instead of it being possible for very long delays.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@80898 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-25 17:55:45 +00:00
russell
a0f7d738db Merged revisions 80849 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80849 | russell | 2007-08-24 16:22:50 -0500 (Fri, 24 Aug 2007) | 5 lines

If dnsmgr is in use, and no DNS servers are available when Asterisk first
starts, then don't give up on poking peers.  Allow the poke to get rescheduled
so that it will work once the dnsmgr is able to resolve the host.
(closes issue #10521, patch by jamesgolovich)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@80850 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-24 21:23:14 +00:00
mattf
54c444e390 Add VMWI chan_zap support #9909
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@80778 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-24 18:05:11 +00:00
phsultan
a742ddbae5 Merged revisions 80661 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80661 | phsultan | 2007-08-24 13:42:46 +0200 (Fri, 24 Aug 2007) | 9 lines

Closes issue #10509

Googletalk calls are answered too early, which results in CDRs wrongly
stating that a call was ANSWERED when the calling party cancelled a
call before before being established.

We must not answer the call upon reception of a 'transport-accept' iq
packet, but this packet still needs to be acknowledged, otherwise the
remote peer would close the call (like in #8970).
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@80662 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-24 11:49:36 +00:00
kpfleming
2bd1fa599b Merged revisions 80501 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80501 | kpfleming | 2007-08-23 12:08:25 -0500 (Thu, 23 Aug 2007) | 2 lines

report the actual channel number that was unregistered, instead of assuming that the interface list consists of channels 1 through <x> with no gaps in the sequence

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@80508 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-23 17:18:29 +00:00
russell
96b0dde6d9 Merged revisions 80499 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80499 | russell | 2007-08-23 12:02:50 -0500 (Thu, 23 Aug 2007) | 3 lines

Fix some code where it was possible for a reference to a peer to not get
released when it should.  Thank you to Marta Carbone for pointing this out!

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@80500 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-23 17:04:04 +00:00
file
1344508165 If no default language has been specified print out that it will default to english when using sip show peer or sip show user.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@80468 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-23 15:48:35 +00:00
russell
c5747a3589 allow peers and users to go into a hash table
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@80408 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-22 21:35:08 +00:00
russell
1a733d34e5 Merged revisions 80390 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80390 | russell | 2007-08-22 16:00:44 -0500 (Wed, 22 Aug 2007) | 3 lines

Don't crash when using realtime in chan_sip without an insecure setting in the database.
(closes issue #10348, reported by link55, fixed by me)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@80391 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-22 21:03:27 +00:00
russell
4a6f77fa79 Unsubscribe from MWI events in the peer destructor
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@80388 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-22 20:46:16 +00:00
russell
72b013760e Merged revisions 80362 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80362 | russell | 2007-08-22 15:21:36 -0500 (Wed, 22 Aug 2007) | 34 lines

Merge changes from team/russell/iax_refcount.

This set of changes fixes problems with the handling of iax2_user and iax2_peer
objects.  It was very possible for a thread to still hold a reference to one of
these objects while a reload operation tries to delete them.  The fix here is to
ensure that all references to these objects are tracked so that they can't go away
while still in use.

To accomplish this, I used the astobj2 reference counted object model.  This
code has been in one of Luigi Rizzo's branches for a long time and was primarily
developed by one of his students, Marta Carbone.  I wanted to go ahead and bring
this in to 1.4 because there are other problems similar to the ones fixed by these
changes, so we might as well go ahead and use the new astobj if we're going to go
through all of the work necessary to fix the problems.

As a nice side benefit of these changes, peer and user handling got more efficient.
Using astobj2 lets us not hold the container lock for peers or users nearly as long
while iterating.  Also, by changing a define at the top of chan_iax2.c, the objects
will be distributed in a hash table, drastically increasing lookup speed in these
containers, which will have a very big impact on systems that have a large number of
users or peers.

The use of the hash table will be made the default in trunk.  It is not the default
in 1.4 because it changes the behavior slightly.  Previously, since peers and users
were stored in memory in the same order they were specified in the configuration file,
you could influence peer and user matching order based on the order they are specified
in the configuration.  The hash table does not guarantee any order in the container,
so this behavior will be going away.  It just means that you have to be a little
more careful ensuring that peers and users are matched explicitly and not forcing
chan_iax2 to have to guess which user is the right one based on secret, host, and
access list settings, instead of simply using the username.

If you have any questions, feel free to ask on the asterisk-dev list.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@80387 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-22 20:44:23 +00:00
russell
2bd12b8be0 Merged revisions 80183 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80183 | russell | 2007-08-21 13:42:15 -0500 (Tue, 21 Aug 2007) | 7 lines

Don't record SIP dialog history if it's not turned on.  Also, put an upper
limit on how many history entires will be stored for each SIP dialog.  It is
currently set to 50, but can be increased if deemed necessary.
(closes issue #10421, closes issue #10418, patches suggested by jmoldenhauer,
 patches updated by me)
(Security implications documented in AST-2007-020)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@80184 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-21 18:49:23 +00:00
russell
fe145669ee Merged revisions 80132 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80132 | russell | 2007-08-21 10:22:22 -0500 (Tue, 21 Aug 2007) | 3 lines

Don't try to dereference the owner channel when it may not exist
(issue #10507, maxper)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@80133 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-21 15:23:12 +00:00
file
2cc108ce10 Fix random segfault issue when loading chan_zap. Trying to access a configuration structure that has already been destroyed is bad, mmmk?
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@80023 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-20 14:15:30 +00:00
file
4e358ef926 (closes issue #10495)
Reported by: stevedavies
Make sure context pointer is valid or else chan_iax2 will go kaboom.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79990 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-20 00:54:19 +00:00
file
6935f942e7 Fix building of trunk. I'm doing work on a Sunday night just to avoid watching Snakes on a Plane which my roommate is watching.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79988 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-20 00:37:12 +00:00
tilghman
9d218d354a We weren't properly encapsulating the mtime ignores of config files (closes issue #10488)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79940 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-18 13:52:44 +00:00
russell
60264f8549 Merged revisions 79912 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79912 | russell | 2007-08-17 16:01:43 -0500 (Fri, 17 Aug 2007) | 4 lines

Avoid a crash in the handling of DTMF based Caller ID.  It is valid for
ast_read to return NULL in the case that the channel has been hung up.
(crash reported by anonymouz666 on IRC in #asterisk-dev)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79913 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-17 21:04:33 +00:00
qwell
3a9bc6fc81 Merged revisions 79904 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue #10430)
........
r79904 | qwell | 2007-08-17 14:12:19 -0500 (Fri, 17 Aug 2007) | 11 lines

Don't send a semicolon over the wire in sip notify messages.
Caused by fix for issue 9938.

I basically took the code that existed before 9938 was fixed, and
 copied it into a new function - ast_unescape_semicolon

There should be very few places this will be needed (pbx_config
 does NOT need this (see issue 9938 for details))

Issue 10430, patch by me, with help/ideas from murf (thanks murf).

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79905 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-17 19:13:25 +00:00
qwell
75e0fdb010 Merged revisions 79902 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue #10485)
........
r79902 | qwell | 2007-08-17 12:44:22 -0500 (Fri, 17 Aug 2007) | 4 lines

Re-add the setting of callerid name and number.

Issue 10485, reported by and fix explained by paradise.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79903 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-17 17:45:01 +00:00
russell
907112a201 Make use of ast_sched_replace() in some places in chan_iax2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79862 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-17 14:14:59 +00:00
russell
d023eb5b70 This commit adds a scheduler API call, ast_sched_replace that can be used
in place of a very common construct.  I also used it in a number of places
in chan_sip.

  if (id > -1)
     ast_sched_del(sched, id);
  id = ast_sched_add(sched, ...);

changes to:

  ast_sched_replace(id, sched, ...);


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79861 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-17 14:07:44 +00:00
russell
4f60f2c1aa Merged revisions 79857 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79857 | russell | 2007-08-17 08:37:08 -0500 (Fri, 17 Aug 2007) | 5 lines

Fix some crashes in chan_sip.  This patch changes various places that add items
to the scheduler to ensure that they don't overwrite the ID of a previously
scheduled item.  If there is one, it should be removed.
(closes issue #10391, closes issue #10256, probably others, patch by me)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79858 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-17 13:39:17 +00:00
crichter
4a28e4da48 Merged revisions 79833 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79833 | crichter | 2007-08-17 10:22:36 +0200 (Fr, 17 Aug 2007) | 1 line

sometimes we don't need to signal dtmf tones to asterisk, we just want them to go through as inband. Otherwise they might be generated by the other channel partner and then there is a double tone.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79841 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-17 08:29:56 +00:00
file
2bc2de065f Fix building of chan_zap under development mode without libpri and libss7 installed.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79824 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-17 01:19:04 +00:00
russell
b23ebc68ce Merged revisions 79756 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79756 | russell | 2007-08-16 16:29:24 -0500 (Thu, 16 Aug 2007) | 11 lines

Fix more deadlocks in chan_iax2 that were introduced by making frame handling
and scheduling multi-threaded.  Unfortunately, we have to do some expensive
deadlock avoidance when queueing frames on to the ast_channel owner of the IAX2
pvt struct.  This was already handled for regular frames, but ast_queue_hangup
and ast_queue_control were still used directly.  Making these changes introduced
even more places where the IAX2 pvt struct can disappear in the context of a
function holding its lock due to calling a function that has to unlock/lock it
to avoid deadlocks.  I went through and fixed all of these places to account for
this possibility.
(issue #10362, patch by me)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79764 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-16 21:33:38 +00:00
mmichelson
3e27eafe7b Merged revisions 79748 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79748 | mmichelson | 2007-08-16 16:16:40 -0500 (Thu, 16 Aug 2007) | 8 lines

Fixes a problem where agents would get stuck busy due to their wrapuptime being longer than the queue's wrapuptime and
ringinuse=no for the queue.

(closes issue #10215, reported by Doug, repaired by me)

Special thanks to fkasumovic for pointing out the source of the problem and to bweschke for helping to come up with a solution!


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79749 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-16 21:21:35 +00:00
tilghman
dbec3d56c1 Don't reload a configuration file if nothing has changed.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79747 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-16 21:09:46 +00:00
dhubbard
f31085f99c added counter for iax2 show registry CLI output, closes issue 10461, thanks junky
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79725 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-16 18:23:39 +00:00
crichter
d913db99c9 Merged revisions 79642 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79642 | crichter | 2007-08-16 10:21:21 +0200 (Do, 16 Aug 2007) | 1 line

0x80 + protocol is wrong for USERUSER when we want to send IA5 Chars.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79660 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-16 09:22:23 +00:00
file
b7282377b9 Merged revisions 79523 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79523 | file | 2007-08-15 11:18:44 -0300 (Wed, 15 Aug 2007) | 6 lines

(closes issue #10456)
Reported by: irroot
Patches:
      sip_timeout.patch uploaded by irroot (license 52)
Change hardcoded timer value to defined value. I'm doing this in 1.4 as well so if it needs to be changed in the future this place would not have been forgotten.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79524 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-15 14:20:36 +00:00
crichter
5b558b0820 Merged revisions 78936 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78936 | crichter | 2007-08-10 15:24:03 +0200 (Fr, 10 Aug 2007) | 1 line

fixed a bug with the useruser information element. We send them now also in the disconnect message.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79507 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-15 11:27:51 +00:00
russell
600ef2b1ef Merged revisions 79470 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79470 | russell | 2007-08-14 13:49:10 -0500 (Tue, 14 Aug 2007) | 2 lines

Fix another spot where an iax2_peer would be leaked if realtime was in use.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79471 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-14 18:50:12 +00:00
russell
6805b4f295 Merged revisions 79436 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79436 | russell | 2007-08-14 12:31:39 -0500 (Tue, 14 Aug 2007) | 3 lines

Fix some memory leaks throughout chan_iax2 related to the use of realtime.
I found these while working on iax2_peer object reference tracking.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79437 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-14 17:33:12 +00:00
murf
3f5588297e Don't ask me why, but waitfordigit will immediately return a 1 on my system, unless the outfd is initialized to -1 before calling the nandfds func
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79378 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-14 13:46:58 +00:00
russell
f8f162f4c7 Merged revisions 79301 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79301 | russell | 2007-08-13 15:37:50 -0500 (Mon, 13 Aug 2007) | 3 lines

Don't call find_peer in registry_authrequest with the pvt lock held to avoid a
deadlock.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79306 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-13 20:40:47 +00:00
russell
791fc1faf7 Merged revisions 79276 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79276 | russell | 2007-08-13 15:18:30 -0500 (Mon, 13 Aug 2007) | 4 lines

Release the pvt lock before calling find_peer in register_verify to avoid a
deadlock.  Also, remove some unnecessary locking in auth_fail that was only done
recursively.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79277 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-13 20:20:43 +00:00
russell
d2622ed6e6 Merged revisions 79274 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79274 | russell | 2007-08-13 15:02:57 -0500 (Mon, 13 Aug 2007) | 3 lines

Don't call find_peer within update_registry with a pvt lock held.  This can
cause a deadlock as the code will eventually call find_callno.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79275 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-13 20:06:19 +00:00
russell
633a42b7b5 Merged revisions 79272 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79272 | russell | 2007-08-13 14:27:39 -0500 (Mon, 13 Aug 2007) | 9 lines

I am fighting deadlocks in chan_iax2.  I have tracked them down to a single
core issue.  You can not call find_callno() while holding a pvt lock as this
function has to lock another (every) other pvt lock.  Doing so can lead to a
classic deadlock.  So, I am tracking down all of the code paths where this
can happen and fixing them.

The fix I committed earlier today was along the same theme.  This patch fixes
some code down the path of authenticate_reply.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79273 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-13 19:29:30 +00:00
russell
67e6033b80 Merged revisions 79214 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79214 | russell | 2007-08-13 10:28:13 -0500 (Mon, 13 Aug 2007) | 4 lines

Fix a potential deadlock in socket_process.  check_provisioning can eventually
call find_callno.  You can't hold a pvt lock while calling find_callno because
it goes through and locks every single one looking for a match.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79222 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-13 15:32:05 +00:00
file
2ca342ce99 Merged revisions 79174 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79174 | file | 2007-08-13 11:18:04 -0300 (Mon, 13 Aug 2007) | 4 lines

(closes issue #10437)
Reported by: haklin
Don't set the callerid name and number a second time on a newly created channel. ast_channel_alloc itself already sets it and setting it twice would cause a memory leak.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79175 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-13 14:22:46 +00:00
qwell
dd4bd2227b Use localized softkey labels.
Add some information about localization "codes".


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79109 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-10 21:29:31 +00:00
russell
24aa12a370 When looking up a mailbox, use the default context if not specified as something else
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78824 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-09 19:35:07 +00:00
russell
633c98f1bc Restore the ability to have multiple mailboxes listed for the mailbox option
in sip.conf.  chan_sip now maintains separate internal MWI subscriptions for
each one.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78807 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-09 19:11:53 +00:00
russell
5448fa9f9e Fix a problem that I had introduced into MWI handling. I had ignored
the mailbox context.  Now, all related MWI event dealings pay attention
to the context as well.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78747 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-09 17:07:36 +00:00
file
30a230172d Minor fix for building under dev mode when byteswapping macro header files are not available.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78685 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-08 21:58:12 +00:00
file
a4803d15a2 Add support for using epoll instead of poll. This should increase scalability and is done in such a way that we should be able to add support for other poll() replacements.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78683 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-08 21:44:58 +00:00
file
21b3ffbe75 HAVEL_SS7 should be HAVE_SS7. Reported by kwallace.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78679 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-08 20:49:07 +00:00
file
ef6eae917d Correct spelling. s/threaads/threads/
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78637 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-08 19:03:46 +00:00
qwell
12fd31de8b Merged revisions 78375 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78375 | qwell | 2007-08-07 13:25:15 -0500 (Tue, 07 Aug 2007) | 3 lines

Properly check the capabilities count to avoid a segfault.
(ASA-2007-019)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78378 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-07 18:26:19 +00:00
russell
a4b09e8d28 Merged revisions 78371 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r78371 | russell | 2007-08-07 12:45:30 -0500 (Tue, 07 Aug 2007) | 12 lines

Merged revisions 78370 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r78370 | russell | 2007-08-07 12:44:04 -0500 (Tue, 07 Aug 2007) | 4 lines

Revert patch committed for issue #9660.  It broke E&M trunks.
(closes issue #10360)
(closes issue #10364)

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78372 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-07 17:46:00 +00:00
file
5c63d5ac16 Can't forget outsignaling!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78347 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-07 16:17:08 +00:00
file
4d4645bc66 Just for jsmith... make signaling a valid option that acts like signalling.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78346 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-07 16:09:27 +00:00
qwell
91a236213c Add a TalkingToChan to the response of the "agents" manager action.
This is similar to the existing "talking to" that you see what using the "agent show" CLI command.

Closes issue #10102


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78312 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-06 23:00:35 +00:00
russell
858fd60436 Merged revisions 78242 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78242 | russell | 2007-08-06 15:44:09 -0500 (Mon, 06 Aug 2007) | 4 lines

Fix an issue where dynamic threads can get free'd, but still exist in the 
dynamic thread list.
(closes issue #10392, patch from Mihai, with credit to his colleague, Pete)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78243 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-06 20:45:09 +00:00
mmichelson
59d1fbc49c Fixing a compiler warning which warns that a variable may be used unitialized. Thanks to mvanbaak for pointing this out.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78192 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-06 17:51:09 +00:00
mmichelson
dddfa496c5 Merged revisions 78103 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78103 | mmichelson | 2007-08-03 15:25:22 -0500 (Fri, 03 Aug 2007) | 7 lines

Changed the behavior of sip's realtime_peer function to match the corresponding way of matching for non-realtime peers.
Now matches are made on both the IP address and port number, or if the insecure setting is set to "port" then just match on the
IP address.

In order to accomplish this, I also added a new API call, ast_category_root, which returns the first variable of an ast_category struct


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78186 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-06 16:54:51 +00:00
file
a7d42fa130 Merged revisions 78182 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78182 | file | 2007-08-06 13:32:44 -0300 (Mon, 06 Aug 2007) | 2 lines

It is possible for a transfer to occur before the remote device has our tag in which case they send none in the transfer. In this case we need to not fail the transfer dialog lookup. 

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78183 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-06 16:34:15 +00:00
qwell
bb1ec156f2 Implement setvar functionality in chan_skinny
Closes issue #10379, patch by mvanbaak.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78179 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-06 16:08:11 +00:00
tilghman
170557257a Merged revisions 78139 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78139 | tilghman | 2007-08-04 22:29:01 -0500 (Sat, 04 Aug 2007) | 2 lines

If peer is not found, the error message is misleading (should be peer not found, not ACL failure)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78140 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-05 03:42:35 +00:00
russell
dbb9124503 Merged revisions 78063 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78063 | russell | 2007-08-03 12:01:07 -0500 (Fri, 03 Aug 2007) | 4 lines

Only pass through HOLD and UNHOLD control frames when the mohinterpret option
is set to "passthrough".  This was pointed out by Kevin in the middle of a
training session.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78064 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-03 17:02:00 +00:00
russell
997720dcb5 Merged revisions 78028 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78028 | russell | 2007-08-02 21:04:22 -0500 (Thu, 02 Aug 2007) | 6 lines

Don't reuse the timespec that was set to 0 in the previous timedwait as it
will just return immediately.  Also, fix some logic so the thread's lock
isn't unlocked twice in the weird case of dynamic threads getting acquired
right after a timeout.
(pointed out by SteveK)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78029 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-03 02:05:02 +00:00
qwell
77570c9824 Merged revisions 77996 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue #9779)
........
r77996 | qwell | 2007-08-02 16:53:39 -0500 (Thu, 02 Aug 2007) | 5 lines

Make sure we actually allow 6 chars to be sent.
Also make note of the "A" option of date format.

Issue 9779, modifications by DEA, wedhorn, and myself.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77997 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-02 21:54:54 +00:00
qwell
edb9246c66 Merged revisions 77993 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue #10325)
........
r77993 | qwell | 2007-08-02 15:22:40 -0500 (Thu, 02 Aug 2007) | 5 lines

If a device disconnects, the session will go away.
If this happens during call setup, we need to give up.

Issue 10325.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77994 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-02 20:23:20 +00:00
russell
ec5c90ad63 Merged revisions 77949 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r77949 | russell | 2007-08-02 14:25:14 -0500 (Thu, 02 Aug 2007) | 5 lines

Fix the case where a dynamic thread times out waiting for something to do
during the first time it runs.  This shouldn't ever happen, but we should
account for it anyway.
(pointed out by pete, who works with mihai)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77950 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-02 19:26:12 +00:00
qwell
0ec95aa98e Merged revisions 77947 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue #10299)
........
r77947 | qwell | 2007-08-02 13:42:36 -0500 (Thu, 02 Aug 2007) | 5 lines

Make sure we clear the prompt status message on a hangup.
Also rearrange messages to better fit with what a wireshark trace shows it should be.

Issue 10299, initial patch and solution by sbisker, modified by me to fit with wireshark trace.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77948 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-02 18:43:29 +00:00
russell
4c19db0577 Merged revisions 77943 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r77943 | russell | 2007-08-02 13:04:43 -0500 (Thu, 02 Aug 2007) | 9 lines

Fix another race condition in the handling of dynamic threads.  If the dynamic
thread timed out waiting for something to do, but was acquired to perform an
action immediately afterwords, then wait on the condition again to give the
other thread a chance to finish setting up the data for what action this thread
should perform.  Otherwise, if it immediately continues, it will perform the
wrong action.
(reported on IRC by mihai, patch by me)
(related to issue #10289)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77944 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-02 18:05:23 +00:00
russell
0a070184a3 Fix an issue that Simon pointed out to me on IRC. There were cases in the
trunk version of find_idle_thread() where the old full frame processing
information was not cleared out.  This would have caused full frames to get
deferred for processing by threads that weren't actually processing frames for
that call.  Nice catch!!


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77941 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-02 17:09:42 +00:00
russell
593e2c31da Merged revisions 77939 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r77939 | russell | 2007-08-02 11:56:04 -0500 (Thu, 02 Aug 2007) | 4 lines

Add another sanity check to vnak_retransmit().  This check ensures that frames
that have already been marked for deletion don't get retransmitted.
(closes issue #10361, patch from mihai)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77940 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-02 16:58:26 +00:00
qwell
74872c1bc8 Merged revisions 77894 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue #10358)
........
r77894 | qwell | 2007-08-02 10:15:45 -0500 (Thu, 02 Aug 2007) | 5 lines

Make sure that we show the correct extension if dialed from a macro
"From: 5555" rather than "From: s"

Issue 10358, initial patch by DEA, reworked by me to use S_OR, tested by sbisker

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77895 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-02 15:16:53 +00:00
qwell
ea685dcaa0 Merged revisions 77890 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue #10291)
........
r77890 | qwell | 2007-08-01 17:28:56 -0500 (Wed, 01 Aug 2007) | 4 lines

Put in some additional debug information for softkey/stimulus messages.

Issue 10291, patch by DEA.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77891 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-01 22:31:07 +00:00
russell
37f2a147df Merged revisions 77887 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r77887 | russell | 2007-08-01 17:16:17 -0500 (Wed, 01 Aug 2007) | 23 lines

Fix some race conditions which have been causing weird problems in chan_iax2.
The most notable problem is that people have been seeing storms of VNAK frames
being sent due to really old frames mysteriously being in the retransmission
queue and never getting removed.

It was possible that a dynamic thread got created, but did not acquire its lock
before the thread that created it signals it to perform an action.  When this
happens, the thread will sleep until it hits a timeout, and then get destroyed.
So, the action never gets performed and in some cases, means a frame doesn't
get transmitted and never gets freed since the scheduler never gets a chance
to reschedule transmission.

Another less severe race condition is in the handling of a timeout for a dynamic
thread.  It was possible for it to be acquired to perform at action at the same
time that it hit a timeout.  When this occurs, whatever action it was acquired
for would never get performed.

(patch contributed by Mihai and SteveK)
(closes issue #10289)
(closes issue #10248)
(closes issue #10232)
(possibly related to issue #10359)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77889 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-01 22:24:23 +00:00
qwell
bc9d4d6d51 Merged revisions 77883 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r77883 | qwell | 2007-08-01 16:08:42 -0500 (Wed, 01 Aug 2007) | 7 lines

Fix an issue that caused one-way audio on some newer devices (specifically the 7921),
 due to sending packets in the wrong order during hangup.

Also make sure we clear tones/messages on the correct line/instance.

Issue 10291, patch by DEA, tested by sbisker and myself.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77884 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-01 21:12:02 +00:00
file
b758097d02 Merged revisions 77869 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r77869 | file | 2007-08-01 14:56:59 -0300 (Wed, 01 Aug 2007) | 2 lines

Add some fixes for building on Solaris.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77870 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-01 18:01:33 +00:00
russell
b3ceaa6a9e Convert code that checks the _softhangup member of ast_channel directory to use
the ast_check_hangup() funciton.  This function takes scheduled hangups into
account.
(closes issue #10230, patch by Juggie)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77858 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-01 15:39:54 +00:00
murf
90284124ca thanks to Russel, for pointing out that the dialoglist_lock/unlock routines also need to be macros if DETECT_DEADLOCKS is set
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77829 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-31 15:59:01 +00:00
mmichelson
9c4617aa6b Merged revisions 77824 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r77824 | mmichelson | 2007-07-31 10:21:22 -0500 (Tue, 31 Jul 2007) | 6 lines

This patch makes Asterisk send 100 Trying provisional responses upon receipt of re-invites. This makes it so that if there are two or more Asterisk
servers between endpoints, the Asterisk servers will not keep retransmitting the re-invites.

(closes issue #10274, reported by cstadlmann, patched by me with approval from file)


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77825 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-31 15:22:32 +00:00
kpfleming
7de96f9ecb there is no use in having functions that have no code in them, and hide the locking info when DEBUG_THREADS is enabled... i could have fixed this to be dependent on DEBUG_THREADS, but it would be just as easy for someone to add their test/debugging code to the macros as it would have been to the functions
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77821 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-31 15:01:27 +00:00
kpfleming
b54bd0c037 use a different method for overriding the send_digit_begin pointer, as the old one fails to compile on my 64-bit system with gcc-4.1 and --enable-dev-mode turned on
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77820 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-31 14:55:37 +00:00
murf
323862f56b Discovered in experiments on core files: if you wrap the lock and unlock calls with sip_pvt_lock and sip_pvt_unlock, you lose the tracing info you would normally get via DETECT_DEADLOCKS; so I turn these two functions into macros when DETECT_DEADLOCKS is called. This way, you get meaningful stuff in the file and func slots in the lock_info struct.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77810 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-31 03:32:04 +00:00
russell
b6354a43bb Change another unnecessary use of the increment operator to explicitly set the var to 1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77800 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-30 20:36:18 +00:00
russell
c3341e57b8 Explicitly set a variable to 1 instead of using the increment operator.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77799 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-30 20:33:44 +00:00
russell
9a90df4ba7 Merged revisions 77794 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r77794 | russell | 2007-07-30 15:16:43 -0500 (Mon, 30 Jul 2007) | 8 lines

Fix an issue that could potentially cause corruption of the global iax frame
queue.  In the network_thread() loop, it traverses the list using the
AST_LIST_TRAVERSE_SAFE macro.  However, to remove an element of the list within
this loop, it used AST_LIST_REMOVE, instead of AST_LIST_REMOVE_CURRENT, which I
believe could leave some of the internal variables of the SAFE macro invalid.
Mihai says that he already made this change in his local copy and it didn't help
his VNAK storm issues, but I still think it's wrong.  :)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77797 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-30 20:21:05 +00:00
rizzo
47edc75d59 minor code rearrangements:
+ place the link field at the beginning of struct sip_pvt, 
  and not somewhere in the middle;
 
+ in __sip_reliable_xmit, remove a duplicate assignment, and
  put the statements in a more logical order (i.e. first copy
  the payload and associated info, then copy arguments from the
  caller, then finish initializing the headers...)
 
nothing to backport.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77766 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-30 10:55:37 +00:00
rizzo
5c0f3661d0 rename handle_request() to handle_incoming(), as the former
was misleading - the function deals with all incoming packets, be
them requests or responses.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77753 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-30 08:07:00 +00:00
rizzo
6e518972b8 move some dialog-only flags to proper variables, namely
SIP_NOVIDEO, SIP_DIALOG_ANSWEREDELSEWHERE, SIP_PAGE2_NOTEXT,
SIP_PAGE2_OUTGOING_CALL
These are seldom used so the diff is relatively small.

Note that 'OUTGOING_CALL' is dangerously similar to another
dialog flag, 'SIP_OUTGOING', so the description will need to
clarify the different meaning of the two.

Also note that the description of NOTEXT is a bit unclear - does
it mean we don't support it, or 'not requested or not supported' ?


On passing fix a comment referring to video instead of text.

Finally, mark with XXX a possibly misleading debugging message.
(maybe the latter is worth backporting).



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77739 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-29 21:24:56 +00:00
rizzo
630c2fe170 use a function, cli_yesno(), to produce the output Yes or No for
CLI lines. This helps maintaining consistency on output, slightly
improves readability, and maybe one day will make it easier to
translate the output in other languages (though i have a hard time
believing that a CLI user who needs 'yes' and 'no' to be translated
can actually figure out what he/she is doing!)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77726 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-29 20:55:20 +00:00
rizzo
9e3cbecf60 move the two remaining peer flags to proper variables.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77725 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-29 20:28:02 +00:00
rizzo
f6df7a334b move RT_FROMCONTACT to a proper sip_peer field.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77712 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-29 20:13:32 +00:00
rizzo
bdac8e1d85 Move some global 'flags' to individual variables.
Start putting these variables in a single struct (called 'sip_cfg' for the time
being, but it could as well be 'global' or some other name) so it
is easy, when reading the code, to figure out what they are for.

The downside of using struct fields instead of individual global
variables is that the compiler cannot tell if there are unused fields.
But the advantage of not cluttering the namespace and manilpulating
all these variables at once certainly overcome the disadvantagess.

Nothing to backport, again.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77711 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-29 20:01:36 +00:00
rizzo
3bc3a2126a minor simplification of a conditional statement
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77697 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-29 10:49:32 +00:00
rizzo
d26ece9321 build the version of sip_tech with no send_digit_begin
at load time instead of duplicating the initializer.
This should remove the risk of forgetting fields in the
initializer.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77684 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-29 10:13:14 +00:00
rizzo
78580ac8ab remove bit position from description of SIP_* flags.
use AST_FORMAT_AUDIO_MASK instead of playing with AST_FORMAT_MAX_AUDIO
to determine audio formats.
There is a dubious use of AST_FORMAT_MAX_AUDIO in sip_request_call()
which surely needs fixing, namely: 
 
        /* mask request with some set of allowed formats.
         * XXX this needs to be fixed.
         * The original code uses AST_FORMAT_AUDIO_MASK, but it is
         * unclear what to use here. We have global_capabilities, which is
         * configured from sip.conf, and sip_tech.capabilities, which is
         * hardwired to all audio formats.
         */
 
The latter is possibly something to backport when fixed.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77682 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-29 09:27:30 +00:00
rizzo
af22787d09 back on cleaning up the usage of flags.
Move together flags used in the same way (e.g. dialog only,
dialog-peer, ...) so it will become easier to deal with them
in a more systematic way.
This is being done in stages so it will be easier to detect
breakage, if any should occur.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77669 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-29 08:58:10 +00:00
rizzo
fa819e4866 more documentation on internal representation of incoming SIP messages.
Remove definitions for now-unused flags, and add references to print
routines for other flags.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77668 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-29 08:19:19 +00:00
rizzo
7a29f51638 make register_unref() return NULL so it is easy to cleanup
the original pointer while calling the function.

on passing add some comments on one of the places where it
is used, and explain why it is safe there.

again, a no-op for practical purposes.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77654 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-29 00:06:35 +00:00
rizzo
3507ec0ea0 add some documentation to auto_congest(), and some
dialog_ref/unref (they are a no-op at the moment).
Also clean a pointer after freeing memory to avoid
dangling references, and write a for() loop in canonical form.

In practice, everything in this commit is a no-op.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77653 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-28 23:43:35 +00:00
rizzo
a55e6f98f4 more dialog_ref()/dialog_unref() calls
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77650 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-28 17:16:24 +00:00
rizzo
eb4b25c9f2 more dialog_ref()/dialog_unref() calls
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77648 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-28 16:38:07 +00:00
rizzo
67512cc71b start introducing hooks for reference counts on dialog descriptors.
This commit is, for all practical purposes, a no-op, as it only
introduces the dialog_ref() and dialog_unref() methods, and uses them
in a few places (not all the places where they would be needed).

The goal is to start annotating the code with these calls, so the transition
to a proper container will be easier.

Nothing to backport.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77647 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-28 16:25:25 +00:00
rizzo
5e683b02a3 remove an unused string
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77631 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-28 09:32:10 +00:00
rizzo
f9b96fa2fb simplify a conditional expression using S_OR
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77630 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-28 09:29:22 +00:00
rizzo
81bccfe9d9 make use of received= and rport= fields in sip replies.
In a nutshell, these fields are used to tell a sip entity
the address and port its request came from, and are extremely
useful in the presence of NATs, especially with symmetric NATs
where STUN is totally ineffective.

This patch stores the address and port in the 'ourip' field of
the dialog descriptor, so they can be reused in subsequent transactions.
As it is, it works well for things like REGISTER requiring authentication,
because the second REGISTER request (with auth credentials) will carry
the correct address. Maybe it can also be useful, in case of an address
change, to do one or both of the following:

+ propagate the new address to the parent user/peer descriptor so that new
  dialogs will use the correct address from the beginning.
  This is trivial to implement, I am just waiting for feedback on this.

+ re-issue a request in case of an address change. This a lot less trivial,
  maybe unnecessary, and probably covered by the previous item.

I would seriously consider this patch for addition to 1.4 and 1.2.
The code is very little intrusive, and it would solve in a correct
way the nat traversal problems for which externip/externaddr/stunaddr
are only a partial and expensive workaround.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77616 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-28 07:44:16 +00:00
file
9f83c7c5d3 Turn 4 lines of code into 1 line that does the same thing.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77538 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-27 16:31:55 +00:00
file
f54aa54210 Merged revisions 77536 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r77536 | file | 2007-07-27 13:27:16 -0300 (Fri, 27 Jul 2007) | 6 lines

(closes issue #10323)
Reported by: julianjm
Patches:
      chan_sip_device_state_hold_fix.v1.diff.txt uploaded by julianjm (license 99)
Clear ONHOLD flag when decrementing the onHold peer count. If we did not do this the count may keep decreasing.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77537 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-27 16:29:40 +00:00
mmichelson
04a8d2dc08 Merged revisions 77490 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r77490 | mmichelson | 2007-07-27 09:30:43 -0500 (Fri, 27 Jul 2007) | 3 lines

"re-invite" was misspelled


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77491 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-27 14:31:35 +00:00
russell
4f3c4dc7f2 Do a massive conversion for using the ast_verb() macro
(closes issue #10277, patches by mvanbaak)

Basically, this changes ...

if (option_verbose > 2)
   ast_verbose(VERBOSE_PREFIX_3, "Something\n");

to ...

ast_verb(3, "Something\n");


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77299 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-26 15:49:18 +00:00
russell
0725d883ea Revert some changes to call abs() on the result of ast_random().
* random() is defined to return a positive result, and now ast_random()
   will always do so as well


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77269 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-26 13:26:44 +00:00
tilghman
dca94b12c1 Things expecting a positive result from ast_random() should not be surprised (closes #10308)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77267 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-26 13:19:07 +00:00
rizzo
dbf2283861 silence a warning in ast-devmode on a potentially uninitialized var.
At first sight (but the function is very large so i am not 100% sure)
the code seems correct, so maybe my compiler is just not smart
enough to figure that out at the optimization level it has.

Not worthwhile merging to 1.4 i believe.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77156 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-25 21:58:13 +00:00
murf
8d815f3940 Merged revisions 76983 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r76983 | murf | 2007-07-24 18:18:32 -0600 (Tue, 24 Jul 2007) | 9 lines

Merged revisions 76978 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r76978 | murf | 2007-07-24 18:07:24 -0600 (Tue, 24 Jul 2007) | 1 line

this fixes bug 10293, where the error message because defaultzone or loadzone was not defined was confusing
........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76984 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-25 00:34:42 +00:00
qwell
de6f2c7578 Revert trivial whitespace change (for testing)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76852 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-24 17:43:36 +00:00
qwell
d7693880d6 Trivial whitespace change to test comitting...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76841 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-24 17:23:16 +00:00
tilghman
d34875fdbe Merged revisions 76803 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r76803 | qwell | 2007-07-24 11:32:20 -0500 (Tue, 24 Jul 2007) | 3 lines

Don't create the Asterisk channel until we are starting the PBX on it.
(ASA-2007-018)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76807 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-24 17:05:10 +00:00
qwell
59a670d923 The chan_skinny Dial() syntax was funky. You had to do Dial(Skinny/line@device)
This allows you to just Dial(Skinny/line), as long as line isn't ambiguous.

Note that this does not remove or deprecate the "old" syntax, as it's still
 quite useful - even moreso if shared lines get implemented.


Initial patch by me, with some changes and suggestions from wedhorn.
(closes issue #10263)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76785 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-24 15:35:58 +00:00
rizzo
8fbdf6a98c two small fixes when using stun (reported by Marta Carbone):
+ externexpire was not initialized properly;
+ stunaddr was not handled properly on a sip reload



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76770 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-24 14:49:49 +00:00
tilghman
fd0b69a4e7 Merge the dialplan_aesthetics branch. Most of this patch simply converts applications
using old methods of parsing arguments to using the standard macros.  However, the big
change is that the really old way of specifying application and arguments separated by
a comma will no longer work (e.g. NoOp,foo|bar).  Instead, the way that has been
recommended since long before 1.0 will become the only method available (e.g. NoOp(foo,bar).


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76703 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-23 19:51:41 +00:00
qwell
b5741f9dd4 Merged revisions 76656 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r76656 | qwell | 2007-07-23 13:59:28 -0500 (Mon, 23 Jul 2007) | 3 lines

Fix some incorrect softkey labels in messages.
Don't try to play dialtone in some unimplemented features.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76657 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-23 19:00:19 +00:00
file
0bf27c80f0 Merged revisions 76654 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r76654 | file | 2007-07-23 15:29:48 -0300 (Mon, 23 Jul 2007) | 12 lines

Merged revisions 76653 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r76653 | file | 2007-07-23 15:28:13 -0300 (Mon, 23 Jul 2007) | 4 lines

(closes issue #5866)
Reported by: tyler
Do not force channel format changes when a generator is present. The generator may have changed the formats itself and changing them back would cause issues.

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76655 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-23 18:31:06 +00:00
qwell
295fce6985 Merged revisions 76620 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue #10276)
........
r76620 | qwell | 2007-07-23 12:57:53 -0500 (Mon, 23 Jul 2007) | 4 lines

Don't try to queue up hold/unhold frames on a non-existent channel.

Issue 10276.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76621 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-23 17:58:46 +00:00
rizzo
1043987fff add two missing entries in the replica of the sip_tech that
does not use  DTMF BEGIN frames.

1.4 seems correct (it does not have the two fields).

However, as this bug shows, the current way of creating the sip_tech
replica is too error-prone, one can easily forget to update one of
the two entries.  Perhaps it would be better to create sip_tech_info
expliclty at module load, by doing

	sip_tech_info = sip_tech;
	sip_tech_info.send_digit_begin = NULL

(in this case, this is something applicable to 1.4 as well).



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76564 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-23 14:45:22 +00:00
file
6b2784bedb Merged revisions 76561 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r76561 | file | 2007-07-23 11:34:21 -0300 (Mon, 23 Jul 2007) | 14 lines

Merged revisions 76560 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r76560 | file | 2007-07-23 11:32:07 -0300 (Mon, 23 Jul 2007) | 6 lines

(closes issue #10236)
Reported by: homesick
Patches:
      rpid_1.4_75840.patch uploaded by homesick (license 91)
Accept Remote Party ID on guest calls.

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76563 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-23 14:38:35 +00:00
russell
5b1638231a Mark str2dtmfmode() as currently unused to resolve a compiler warning and
allow building under dev mode


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76562 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-23 14:37:26 +00:00
russell
88c6359e5b (closes issue #10271)
Reported by: snuffy
Patches:
      doxygen-updates.diff uploaded by snuffy (license 35)

Another big batch of doxygen documentation updates


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76559 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-23 14:32:04 +00:00
rizzo
9be597bb66 introduce two functions, map_x_s() and map_s_x(), to map
between integers and strings using a single translation table,
and use them in a few places instead of ad-hoc routines
that duplicate the table.

On passing, note that REFER_CONFIRMED is never used, and add a
few comments.

Nothing to backport here.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76547 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-23 14:18:04 +00:00
russell
c303e37b20 Remove an unused function to resolve a compiler warning
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76524 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-23 14:02:21 +00:00
file
9286652123 Use autoconf logic to determine byte swapping macro presence. This should now also use other macros if present.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76523 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-23 13:46:57 +00:00
rizzo
c5fd13bbcd move "sip prunte realtime ..." and "sip set debug ... " to NEW_CLI style.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76521 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-23 13:29:06 +00:00
file
ffce3b29bc Merged revisions 76519 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r76519 | file | 2007-07-23 10:23:09 -0300 (Mon, 23 Jul 2007) | 6 lines

(closes issue #10268)
Reported by: mvanbaak
Patches:
      chan_skinny_openbsd.diff uploaded by mvanbaak (license 7)
Add another OS that has to use the Macros for byte ordering.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76520 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-23 13:24:03 +00:00
russell
76f932803e Merged revisions 76485 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r76485 | russell | 2007-07-23 07:25:01 -0500 (Mon, 23 Jul 2007) | 6 lines

Use a signed integer for storing the number of bytes in the packet read from
the network.  Using an unsigned value here made it impossible to handle an
error returned from recvfrom().  Furthermore, in the case that recvfrom()
did return an error, this would cause a crash due to a heap overflow.
(closes issue #10265, reported by and fix suggested by timrobbins)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76486 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-23 12:29:46 +00:00
rizzo
f94bc4e1fd Add some documentation on the sipregistry states and the
handling of the sip_register structures.
This commit only changes comments and whitespace.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76467 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-23 03:10:31 +00:00
rizzo
b29db1dc8c add a bit of comments on internal functions.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76458 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-23 02:46:10 +00:00
rizzo
5ba59b2577 rewrite "sip show {channels|subscriptions}" CLI handler
using the new-style cli format.
No functional changes, nothing to backport.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76408 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-22 21:38:26 +00:00
rizzo
afb0c1dbf9 Make sip_destroy() return NULL so the caller can do things like
foo = sip_destroy(foo);
and reduce the chance of bugs due to dangling pointers.

Also remove a duplicate prototype for the function.

nothing to backport.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76392 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-22 21:00:10 +00:00
rizzo
76dd871e99 add two comment blocks, one on reusing nonces, and one on the handling
of an 'authpeer' local variable.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76390 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-22 20:44:06 +00:00
rizzo
70040480cf comment and slightly restructure handle_request() in the part that handles
responses, so that there is a common exit point.
Mark two places where probably we could return -1 instead of 0 to report
an error to the caller.
(change triggered by investigations on how the 'SIP_PKT_IGNORE' field was used).

nothing to backport from this commit



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76371 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-22 19:08:37 +00:00
rizzo
a96340ce79 remove unused argument from handle_invite_replaces(), and also leftover
SIP_PKT_* stuff from the previous commit.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76366 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-22 18:46:52 +00:00
rizzo
956b3e9485 Cleanup of flags used in struct sip_request, moving them to
individual variables. Apart from SIP_PKT_IGNORE which was used
a zillion times, the other two are used seldom.

On passing:
- move the arrays to the end of struct sip_request, so a (small)
  buffer overflow is less likely to overwrite the other fields;
- note that the 'ignore' argument to handle_invite_replaces() is not
  used and should be removed (will be done in a separate commit).

Nothing to backport in this change.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76365 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-22 18:41:57 +00:00
rizzo
16d792ae36 move two per-packet flags to proper variables.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76349 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-22 18:03:07 +00:00
rizzo
090dad3516 minor clarification on the usage of SIP_* flags.
Also correct some items that were misclassified.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76348 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-22 17:27:52 +00:00
rizzo
3f377c27ad document the way sipdebug works, and implement it through
variables and not flags.

NOTE:
The old behaviour (preserved in this commit) is that if sipdebug
is set in the config file, it can only be disabled by reloading the
config.  I am not sure if this is accidental or voluntary, but it
is really unconvenient and I think it should be handled in the same
way as other options i.e. consider requests from the config file
or the cli (or the command line) to be fully equivalent and act on
the same status variable.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76330 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-22 08:42:24 +00:00
rizzo
610c6562f9 move the SIP_REALTIME flag to a field in the user/peer structure.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76314 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-21 17:57:47 +00:00
rizzo
340ad4be77 Add a note to document how the temporary 'pvt' should be initialized
before using it.
I am unclear on the details right now so i hope someone can comment
more. The obvious (and lazy) approach would be to bzero() all of it
(except for the string pool), but isn't that too much work ?
Feedback wanted here...



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76313 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-21 17:32:00 +00:00
rizzo
704310b667 whoops... was setting needdestroy on the wrong dialog.
(spotted by a diff with my own branch)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76279 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-21 09:35:48 +00:00
rizzo
1ba68e33ae more two more flags to proper variables: ALREADYGONE and NEEDDESTROY.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76278 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-21 09:18:50 +00:00
rizzo
098ca9176a use explicit variables for things that don't need to
be stored in ast_flags. First victim is 'SIP_NO_HISTORY'
replaced by a 'do_history' field in the sip_pvt structure.




git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76231 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-21 03:53:17 +00:00
rizzo
e89d2140cf Use ast_str_append() instead of ast_build_string() to construct
the sdp messages. Overall the code is slightly more readable
(because the string is fully described by a single pointer),
and more efficient (because the length is stored explicitly
so you don't need to do strlen()).
(I have been using this code for almost a year now.)

I wish we had infix string operators to do this sort of things!

Nothing to backport from this change.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76229 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-21 02:33:25 +00:00
rizzo
35344904c3 We have two 'technology' descriptors for a SIP channel, so
define and use a macro to determine whether we are pointing to
one of them, so when one goes away (or a new one appears) we don't
have to touch all the code.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76224 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-21 01:25:13 +00:00
rizzo
07754d5dfd Enhance NAT support as discussed on the -dev list, i.e.:
+ extensive documentation changes both in sip.conf.sample and in the source;

+ allow "externip" and "externhost" to include a port number as well;

+ allow "bindaddr" to have a port number (making bindport unnecessary,
  even though it is still present for backward compatibility);

+ introduce the new "stunaddr" parameter to specify an STUN server to
  be used from the main SIP socket;

+ extend the "sip show settings" output to show all the above.

Internally:

+ change related data structures from struct in_addr to struct sockaddr_in
  to store the port numbers as well;

+ reorganize ast_sip_ouraddrfor() (should also be renamed to sip_ouraddrfor()
  because it is not a generic API, though it might become so if called with
  a socket as an additional argument, in which case it can be moved elsewhere).

As mentioned in the documentation, media sessions still do not use STUN so the
port numbers may still be incorrect when Asterisk is behind a NAT

On passing, some of the debugging messages printing media addresses are
probably using the wrong values, but this will be checked/fixed in a
subsequent commit if needed.

Part of the following chunk in the function that handles a "sip reload" is
probably needed on previous versions as well, to avoid leaking the memory
used for the "localaddr" list:

@@ -17244,13 +17274,17 @@
 
        /* Reset IP addresses  */
        memset(&bindaddr, 0, sizeof(bindaddr));
+       memset(&stunaddr, 0, sizeof(stunaddr));
+       memset(&internip, 0, sizeof(internip));
+       /* Free memory for local network address mask */
+ --->  ast_free_ha(localaddr);					<-----
        memset(&localaddr, 0, sizeof(localaddr));
        memset(&externip, 0, sizeof(externip));
        memset(&default_prefs, 0 , sizeof(default_prefs));



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76221 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-21 01:01:10 +00:00
qwell
f9dbcf1104 Merged revisions 76174 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r76174 | qwell | 2007-07-20 15:32:55 -0500 (Fri, 20 Jul 2007) | 2 lines

It's possible for sub->owner to be NULL here if you cancel the call immediately after/during sending a digit.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76175 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-20 20:33:34 +00:00
file
ae747fb447 Merged revisions 76087 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r76087 | file | 2007-07-20 14:20:09 -0300 (Fri, 20 Jul 2007) | 14 lines

Merged revisions 76080 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r76080 | file | 2007-07-20 14:16:48 -0300 (Fri, 20 Jul 2007) | 6 lines

(closes issue #10247)
Reported by: fkasumovic
Patches:
      chan_sip.patch uploaded by fkasumovic (license #101)
Drop any peer realm authentication entries when reloading so multiple entries do not get added to the peer.

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76091 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-20 17:21:23 +00:00
file
8a72f0f554 It is impossible for the externhost variable to not exist, it is however possible for it to be empty.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76056 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-20 16:51:09 +00:00
rizzo
54978f7c76 Don't use a field size for the last argument of printf format,
because in this case the string is left-aligned and it is not
truncated anyways.

Omitting the field size prevents the generation of trailing whitespace,
which makes the string fit in smaller windows.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76037 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-20 15:06:54 +00:00
rizzo
06259ea2eb Extend the 'network settings' section with indication on the
localnet settings (requires the change in SVN 76034), and also
give an indication on whether/why/how the remapping of addresses
in SIP message is done or not.

I think this is especially useful for debugging the configuration,
as the address remapping depends on a combination of at least 3
parameters (localnet, externhost, externip) and successful DNS lookup.

An example of the output of this section is below:

	Network Settings:
	---------------------------
	  SIP address remapping:  Enabled using externhost
	  Externhost:             foo.dyndns.net
	  Externip:               80.64.128.23:0
	  Externrefresh:          10
	  Internal IP:            12.34.56.78:5060
	  Localnet:               192.168.0.0/255.255.0.0
				  10.0.0.0/255.0.0.0

I leave to the community the judgement if the above info is a
useful addition for 1.4. It is not a bugfix, but it is neither a
new feature, only a useful diagnostic tool.

Note that I would like to move there also the bindaddress/port
information, in the usual addr:port format e.g.

          Bindaddress:            0.0.0.0:5060

so that network information is all in one place.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76035 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-20 14:54:01 +00:00
murf
77f799ff1e After some study, thought, comparing, etc. I've backed out the previous universal mod to make ast_flags a 64 bit thing. Instead, I added a 64-bit version of ast_flags (ast_flags64), and 64-bit versions of the test-flag, set-flag, etc. macros, and an app_parse_options64 routine, and I use these in app_dial alone, to eliminate the 30-option limit it had grown to meet. There is room now for 32 more options and flags. I was heavily tempted to implement some of the other ideas that were presented, but this solution does not intro any new versions of dial, doesn't have a different API, has a minimal/zero impact on code outside of dial, and doesn't seriously (I hope) affect the code structure of dial. It's the best I can think of right now. My goal was NOT to rewrite dial. I leave that to a future, coordinated effort.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75983 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-19 23:24:27 +00:00
russell
ca87ea6a1b Merged revisions 75928 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r75928 | russell | 2007-07-19 10:53:15 -0500 (Thu, 19 Jul 2007) | 14 lines

Merged revisions 75927 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r75927 | russell | 2007-07-19 10:49:42 -0500 (Thu, 19 Jul 2007) | 6 lines

When processing full frames, take sequence number wraparound into account when
deciding whether or not we need to request retransmissions by sending a VNAK.
This code could cause VNAKs to be sent erroneously in some cases, and to not
be sent in other cases when it should have been.
(closes issue #10237, reported and patched by mihai)

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75929 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-19 15:53:50 +00:00
rizzo
0840ee9397 print more of the network settings (externip, externhost etc.)
in the "sip show settings" cli output. I have put these in a
separate section, probably even bindaddr and SIP port should go
there.

There are more things to add here e.g. localnet and so on.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75878 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-19 08:07:04 +00:00
rizzo
a09795a098 document the use of externip, externhost and other nat-related options,
as well as the handling of the sip socket.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75875 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-19 08:00:03 +00:00
rizzo
a1491ab895 ast_sip_ouraddrfor() never fails, so make it void
and remove the code that would never be called.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75874 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-19 07:51:34 +00:00
rizzo
18adc5c6d5 portability fix: use %f instead of %lf when printing double.
The l is useless.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75873 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-19 07:41:45 +00:00
tilghman
84d19a874d Allow chan_misdn to build in dev-mode
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75857 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-19 04:45:20 +00:00
qwell
42d31eb833 Merged revisions 75807 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r75807 | qwell | 2007-07-18 17:59:18 -0500 (Wed, 18 Jul 2007) | 1 line

Need to make sure we set milliseconds and timestamp - pointed out by the recent ast_ time stuff from Tilghman
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75808 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18 23:00:30 +00:00
russell
9adde0ba11 I thought I noticed a memory leak earlier when I saw that the contents of this
list were not destroyed when the module is unloaded.  However, after reading
the code related to the use of this list a lot today, I realized that it isn't
necessary.  So, I have added a comment to explain why it isn't necessary.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75806 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18 22:52:54 +00:00
tilghman
20d96a5123 Change IAX variables to use datastores (closes issue #9315)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75805 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18 22:40:03 +00:00
russell
d25b5bd7b0 Merged revisions 75759 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r75759 | russell | 2007-07-18 16:09:46 -0500 (Wed, 18 Jul 2007) | 13 lines

Merged revisions 75757 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r75757 | russell | 2007-07-18 16:09:13 -0500 (Wed, 18 Jul 2007) | 5 lines

When traversing the queue of frames for possible retransmission after
receiving a VNAK, handle sequence number wraparound so that all frames that 
should be retransmitted actually do get retransmitted.
(issue #10227, reported and patched by mihai)

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75761 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18 21:10:27 +00:00
qwell
2597fd7b5a Merged revisions 75732 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r75732 | qwell | 2007-07-18 15:17:27 -0500 (Wed, 18 Jul 2007) | 1 line

Umm, why are we transmitting dialtone on cfwdall?
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75734 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18 20:18:00 +00:00
qwell
41ce098672 Merged revisions 75711 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue #9245)
........
r75711 | qwell | 2007-07-18 14:54:32 -0500 (Wed, 18 Jul 2007) | 4 lines

Fixes for 7935/7936 conference phones.

Issue 9245, patch by slimey.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75714 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18 20:05:45 +00:00
qwell
ebc703fc53 Merged revisions 75707 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue #9887)
........
r75707 | qwell | 2007-07-18 14:48:12 -0500 (Wed, 18 Jul 2007) | 4 lines

Fix issues with new 79x1 phones.

Issue 9887, patches by DEA

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75710 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18 19:51:18 +00:00
russell
1b6cece23e convert some lines indented with spaces to tabs
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75709 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18 19:50:21 +00:00
tilghman
74c2948c22 Merge in ast_strftime branch, which changes timestamps to be accurate to the microsecond, instead of only to the second
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75706 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18 19:47:20 +00:00
file
456bbb0886 Merged revisions 75623 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r75623 | file | 2007-07-18 12:44:02 -0300 (Wed, 18 Jul 2007) | 2 lines

Few more places that needs to check for onhold state.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75624 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18 15:45:18 +00:00
file
e9af4467cd Merged revisions 75621 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r75621 | file | 2007-07-18 12:41:06 -0300 (Wed, 18 Jul 2007) | 5 lines

(closes issue #10165)
Reported by: elandivar

It is possible for hold status to exist without call limits set, so we need to ensure update_call_counter is executed regardless.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75622 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18 15:42:11 +00:00
file
899643789e Merged revisions 75619 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r75619 | file | 2007-07-18 12:25:45 -0300 (Wed, 18 Jul 2007) | 2 lines

Don't bother reloading chan_h323 if it did not load successfully in the first place. This would otherwise cause a crash.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75620 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18 15:26:52 +00:00
murf
7a12ef01a3 This corrects the problem with flags and %lld formats on 64-bit machines, where uint64_t is NOT acceptable for %lld, and also works on 32-bit machines. At least, with gcc.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75585 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18 14:35:07 +00:00
file
d8ab156cba Minor code tweaks. Variables were being checked wrong in some situations and didn't need to be checked in others.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75566 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18 13:59:01 +00:00
russell
9ebff1afc5 Merged revisions 75450 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r75450 | russell | 2007-07-17 15:57:56 -0500 (Tue, 17 Jul 2007) | 11 lines

Merged revisions 75449 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r75449 | russell | 2007-07-17 15:57:09 -0500 (Tue, 17 Jul 2007) | 3 lines

Properly check for the length in the skinny packet to prevent an invalid memcpy.
(ASA-2007-016)

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75451 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-17 20:58:40 +00:00
russell
94cdda3f04 Merged revisions 75445 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r75445 | russell | 2007-07-17 15:48:21 -0500 (Tue, 17 Jul 2007) | 13 lines

Merged revisions 75444 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r75444 | russell | 2007-07-17 15:45:27 -0500 (Tue, 17 Jul 2007) | 5 lines

Ensure that when encoding the contents of an ast_frame into an iax_frame, that
the size of the destination buffer is known in the iax_frame so that code
won't write past the end of the allocated buffer when sending outgoing frames.
(ASA-2007-014)

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75446 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-17 20:49:09 +00:00
russell
ed46a261f3 Merged revisions 75441 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r75441 | russell | 2007-07-17 15:42:12 -0500 (Tue, 17 Jul 2007) | 12 lines

Merged revisions 75440 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r75440 | russell | 2007-07-17 15:41:41 -0500 (Tue, 17 Jul 2007) | 4 lines

After parsing information elements in IAX frames, set the data length to zero,
so that code later on does not think it has data to copy.
(ASA-2007-015)

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75442 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-17 20:42:50 +00:00
murf
cdfb9990ad via 10206, I have added an option (e) to Dial to allow the h exten to get run on peer. Had to upgrade ast_flag stuff to 64 bits to do this.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75400 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-17 19:40:29 +00:00
russell
4898d3cdcc Merged revisions 75053 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r75053 | russell | 2007-07-13 14:11:26 -0500 (Fri, 13 Jul 2007) | 20 lines

Merged revisions 75052 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r75052 | russell | 2007-07-13 14:10:00 -0500 (Fri, 13 Jul 2007) | 12 lines

(closes issue #9660)
Reported by: mmacvicar
Patches submitted by: bbryant, russell
Tested by: mmacvicar, marco, arcivanov, jmhunter, explidous

When using a TDM400P (and probably other analog cards) there was a chance that
you could hang up and pick the phone back up where it has been long enough to
be not considered a flash hook, but too soon such that the device reports that
it is busy and the person on the phone will only hear silence.  This patch
makes chan_zap more tolerant of this and gives the device a couple of seconds 
to succeed so the person on the phone happily gets their dialtone.

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75054 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-13 19:19:51 +00:00
mmichelson
e3fad44b06 Merged revisions 74997 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@74999 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-12 23:02:33 +00:00
murf
c09a8dbf7d Merged revisions 74955 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r74955 | murf | 2007-07-12 14:42:08 -0600 (Thu, 12 Jul 2007) | 1 line

This patch resolves 10143; thanks to irroot for the patch; looked acceptable. Let the community decide if it messes things up
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@74956 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-12 20:46:32 +00:00
qwell
50eddc0ff4 Merged revisions 74866 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r74866 | qwell | 2007-07-12 11:53:35 -0500 (Thu, 12 Jul 2007) | 1 line

It helps if I actually add this stuff for the 7921 too - otherwise it won't actually do much of anything.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@74867 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-12 16:54:02 +00:00
qwell
0091e55bb0 Merged revisions 74864 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r74864 | qwell | 2007-07-12 11:48:49 -0500 (Thu, 12 Jul 2007) | 1 line

Add device ID for 7921 wireless skinny phone
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@74865 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-12 16:49:17 +00:00
russell
ce7dacebba Merged revisions 74767 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r74767 | russell | 2007-07-11 17:57:07 -0500 (Wed, 11 Jul 2007) | 13 lines

Merged revisions 74766 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r74766 | russell | 2007-07-11 17:53:26 -0500 (Wed, 11 Jul 2007) | 5 lines

The function make_trunk() can fail and return -1 instead of a valid new call
number.  Fix the uses of this function to handle this instead of treating it
as the new call number.  This would cause a deadlock and memory corruption.
(possible cause of issue #9614 and others, patch by me)

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@74769 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-11 23:05:34 +00:00
mmichelson
1361d9ee53 Merged revisions 74722 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r74722 | mmichelson | 2007-07-11 16:14:09 -0500 (Wed, 11 Jul 2007) | 13 lines

Merged revisions 74719 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r74719 | mmichelson | 2007-07-11 16:12:30 -0500 (Wed, 11 Jul 2007) | 5 lines

The cli command "agent logoff Agent/x soft" did not work...at all. Now it does.

(closes issue #10178, reported and patched by makoto, with slight modification for 1.4 and trunk by me)


........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@74726 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-11 21:15:47 +00:00
file
f0ef34826c Merged revisions 74572 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r74572 | file | 2007-07-11 14:03:08 -0300 (Wed, 11 Jul 2007) | 2 lines

Instead of figuring out kernel versions that have compiler.h and not... let's just use autoconf to check for it's presence. (issue #10174 reported by francesco_r)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@74575 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-11 17:06:54 +00:00
file
8a7b7f8004 Change header a bit to get rid of a doxygen parse error. (issue #10177 reported by snuffy)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@74519 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-11 14:38:01 +00:00
file
3c6aba1a6f Merged revisions 74515 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r74515 | file | 2007-07-11 11:09:13 -0300 (Wed, 11 Jul 2007) | 2 lines

Only check if we need to do a SIGMA based tone generation if we have a card. (issue #10179 reported by mikowhy)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@74516 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-11 14:10:38 +00:00
qwell
3b401be742 Merged revisions 74379 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue #10169)
................
r74379 | qwell | 2007-07-10 14:06:24 -0500 (Tue, 10 Jul 2007) | 12 lines

Merged revisions 74376 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r74376 | qwell | 2007-07-10 14:03:45 -0500 (Tue, 10 Jul 2007) | 4 lines

Fix an issue with wrapuptime not working when using AgentLogin.

Issue 10169, patch by makoto, with a minor mod by me to not re-break issue 9618

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@74382 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-10 19:07:25 +00:00
qwell
03dd41e54a Fix building that was broken by recent monitor.h changes. Thanks Russell for pointing this out (and pointing out what I probably did to prevent gcc from fixing it - don't ctrl-C builds)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@74272 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-10 15:07:25 +00:00
qwell
66be536ad1 Merged revisions 74159 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

Closes issue #9186
................
r74159 | qwell | 2007-07-09 15:19:28 -0500 (Mon, 09 Jul 2007) | 16 lines

Merged revisions 74158 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r74158 | qwell | 2007-07-09 15:18:15 -0500 (Mon, 09 Jul 2007) | 8 lines

Several chan_zap options were not working on reload because they were arbitrarily
 disallowed when reloading some/most PRI options (such as signalling) was disallowed.

Options such as polarityonanswerdelay and answeronpolarityswitch can safely be changed on a reload.
This corrects that behavior.

Issue 9186, patch by tzafrir.

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@74160 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-09 20:21:13 +00:00
russell
e1baa0a2b7 remove an unused variable
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@74125 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-09 18:58:09 +00:00
file
bcfcd17b4b Merged revisions 74082 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r74082 | file | 2007-07-09 12:32:43 -0300 (Mon, 09 Jul 2007) | 2 lines

Only destroy the scheduler context if it was allocated. (issue #10124 reported by gzero)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@74083 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-09 15:34:54 +00:00
file
3621e1d82d Merged revisions 74045 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r74045 | file | 2007-07-09 11:49:05 -0300 (Mon, 09 Jul 2007) | 2 lines

Few minor thread synchronization tweaks. (issue #10124 reported by gzero)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@74046 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-09 14:50:04 +00:00
oej
5638666a77 Implementation of a feature that will disable "missed calls" counters on SIP phones.
If the call is answered by another phone, other phones won't display the call as "missed".
You can also add an option to the dial command so that you can have a "followme"
scenario and not count the calls as "missed" when you cancel the call.

Thanks to Ramon and Frank for feedback on this feature.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@74024 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-09 08:27:37 +00:00
tilghman
15a49ab01c Merged revisions 73985 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r73985 | tilghman | 2007-07-08 23:03:20 -0500 (Sun, 08 Jul 2007) | 2 lines

Doxygen formatting fixes; fixes errors while 'make progdocs'.  (Closes issue #10104)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@73994 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-09 04:09:16 +00:00
oej
8298b7fe56 Merged revisions 73849 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r73849 | oej | 2007-07-08 11:47:31 +0200 (Sun, 08 Jul 2007) | 2 lines

While tracking down a bug, I need some more history. Dumphistory is very useful, indeed.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@73850 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-08 09:49:21 +00:00
russell
77bdc5a4fc Merged revisions 73769 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r73769 | russell | 2007-07-06 18:02:58 -0500 (Fri, 06 Jul 2007) | 12 lines

Merged revisions 73768 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r73768 | russell | 2007-07-06 18:01:22 -0500 (Fri, 06 Jul 2007) | 4 lines

If a sip_pvt struct has already registered an extension state callback,
remove the old one before adding a new one.  If this isn't done, Asterisk
will crash.  (issue #10120)

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@73771 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-06 23:05:24 +00:00
russell
3baf660612 Merged revisions 73679 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r73679 | russell | 2007-07-06 10:57:25 -0500 (Fri, 06 Jul 2007) | 15 lines

Merged revisions 73678 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r73678 | russell | 2007-07-06 10:55:41 -0500 (Fri, 06 Jul 2007) | 7 lines

(closes issue #10125)
Reported by: makoto
Patches submitted by: makoto

This fixes a crash in chan_sip that happens when the bindaddr setting is not
valid on Asterisk startup, gets fixed, and then a reload gets issued.

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@73680 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-06 16:00:03 +00:00
kpfleming
533501bcc1 it really seems pointless to run gentone to create these header files every time we build Asterisk...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@73677 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-06 15:47:16 +00:00
mmichelson
9f38683033 Merged revisions 73675 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r73675 | mmichelson | 2007-07-06 10:27:28 -0500 (Fri, 06 Jul 2007) | 13 lines

Merged revisions 73674 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r73674 | mmichelson | 2007-07-06 10:26:40 -0500 (Fri, 06 Jul 2007) | 5 lines

Fixed a bug wherein agents get stuck busy. (issue 9618, reported by jiddings, patched by moi)

closes issue #9618


........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@73676 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-06 15:28:28 +00:00
russell
1622932cd5 Merged revisions 73598 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r73598 | russell | 2007-07-05 18:59:22 -0500 (Thu, 05 Jul 2007) | 3 lines

Fix a crash in chan_sip.  Don't try to stop the monitor thread if it was never
started.  (closes issue #10124, reported by gzero, fixed by me)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@73599 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-05 23:59:50 +00:00
russell
afee3acc96 Merged revisions 73555 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r73555 | russell | 2007-07-05 18:05:33 -0500 (Thu, 05 Jul 2007) | 3 lines

copy from the correct buffer when deferring a full frame
(related to issue #9937)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@73557 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-05 23:06:01 +00:00
russell
702f344a43 Merged revisions 73551 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r73551 | russell | 2007-07-05 17:31:31 -0500 (Thu, 05 Jul 2007) | 6 lines

* Store the call number that a thread is processing without the full frame bit
  set to ease debugging
* When deferring a full frame for processing, stick it into the queue for the
  thread that is processing frames for that call, not the one that read the
  current frame and is about to go back into the idle list
(related to issue #9937)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@73552 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-05 22:32:30 +00:00
kpfleming
c89c773de4 Merged revisions 73548 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r73548 | kpfleming | 2007-07-05 17:20:44 -0500 (Thu, 05 Jul 2007) | 10 lines

Merged revisions 73547 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r73547 | kpfleming | 2007-07-05 17:11:51 -0500 (Thu, 05 Jul 2007) | 2 lines

we shouldn't allow G.723.1 endpoints to use VAD, just like we don't support it for G.729

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@73550 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-05 22:29:37 +00:00
file
c1b9d9c92b Merged revisions 73467 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r73467 | file | 2007-07-05 16:18:02 -0300 (Thu, 05 Jul 2007) | 10 lines

Merged revisions 73466 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r73466 | file | 2007-07-05 16:15:18 -0300 (Thu, 05 Jul 2007) | 2 lines

Copy language information to the dialog structure when calling a peer for situations where a PBX may be started on the dialed channel. (issue #10121 reported by clegall_proformatique)

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@73468 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-05 19:20:12 +00:00
russell
c171af506b Merged revisions 73398 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r73398 | russell | 2007-07-05 10:28:27 -0500 (Thu, 05 Jul 2007) | 2 lines

Make this module build for me in dev-mode

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@73399 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-05 15:29:24 +00:00
file
aec54ca7a6 Merged revisions 73319 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r73319 | file | 2007-07-05 10:27:40 -0300 (Thu, 05 Jul 2007) | 10 lines

Merged revisions 73318 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r73318 | file | 2007-07-05 10:26:02 -0300 (Thu, 05 Jul 2007) | 2 lines

Actually check to make sure a PBX was started on one of the Local channels instead of blindly assuming it was. (issue #10112 reported by makoto)

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@73320 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-05 13:28:41 +00:00
crichter
177aff2f30 added general Jitterbuffer Implementation. #9960
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@73298 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-05 07:45:21 +00:00
crichter
a828695fa9 Merged revisions 73253 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r73253 | crichter | 2007-07-04 16:53:48 +0200 (Mi, 04 Jul 2007) | 9 lines

Merged revisions 73252 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r73252 | crichter | 2007-07-04 16:50:58 +0200 (Mi, 04 Jul 2007) | 1 line

bchannel configurations like echocancel and volume control, need to be setuped on inbound calls too.
........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@73254 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-04 14:58:58 +00:00
crichter
0d723e0358 Merged revisions 73208 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r73208 | crichter | 2007-07-04 10:27:44 +0200 (Mi, 04 Jul 2007) | 9 lines

Merged revisions 73207 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r73207 | crichter | 2007-07-04 10:20:54 +0200 (Mi, 04 Jul 2007) | 1 line

bad bug in overlapdial case, we called start_pbx multiple times, because the state wasn't changed..
........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@73209 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-04 08:43:27 +00:00
crichter
38e686ac7e Merged revisions 73005 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r73005 | crichter | 2007-07-03 10:17:06 +0200 (Di, 03 Jul 2007) | 9 lines

Merged revisions 73004 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r73004 | crichter | 2007-07-03 10:04:35 +0200 (Di, 03 Jul 2007) | 1 line

fixed issue, that misdn_l2l1_check could only be called from mISDN Source channels.. #9449
........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@73006 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-03 08:22:13 +00:00
file
f3c5a95dc9 Yet another Solaris tweak...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72936 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-02 20:35:35 +00:00
crichter
0eee25c2c9 Merged revisions 72852 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r72852 | crichter | 2007-07-02 10:41:08 +0200 (Mo, 02 Jul 2007) | 9 lines

Merged revisions 72585 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r72585 | crichter | 2007-06-29 15:08:26 +0200 (Fr, 29 Jun 2007) | 1 line

check if the bchannel stack id is already used, if so don't use it a second time. Also added a release_chan lock, so that the same chan_list object cannot be freed twice. chan_misdn does not crash anymore on heavy load with these changes.
........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72869 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-02 09:34:19 +00:00
crichter
e4c9785284 Merged revisions 72851 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r72851 | crichter | 2007-07-02 10:27:19 +0200 (Mo, 02 Jul 2007) | 9 lines

Merged revisions 72099 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r72099 | crichter | 2007-06-27 15:22:37 +0200 (Mi, 27 Jun 2007) | 1 line

simplified generation for dummy bchannels, also we mark them as dummies, so they are not used later as real-bchannels, optimized the RESTART mechanisms, we block a channel now on cause:44, and send out a RESTART automatically, then on reception of RESTART_ACKNOWLEDGE we unblock the channel again.
........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72868 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-02 09:23:08 +00:00
crichter
1b1439e80e Merged revisions 72850 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r72850 | crichter | 2007-07-02 10:14:43 +0200 (Mo, 02 Jul 2007) | 9 lines

Merged revisions 72087 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r72087 | crichter | 2007-06-27 11:26:53 +0200 (Mi, 27 Jun 2007) | 1 line

simplified channel finding and locking a lot. removed unnecessary #ifdefed areas.
........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72867 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-02 09:17:07 +00:00
qwell
08bed64d92 Add support for regcontext and regexten to chan_skinny
Issue 9762, patch by mvanbaak.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72741 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-29 21:37:43 +00:00
qwell
19dd1526bc Fix building with -Wdeclaration-after-statement, here too
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72491 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-28 19:35:23 +00:00
rizzo
86416cfc91 move variable declarations to the beginning of the block
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72456 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-28 19:01:43 +00:00
mattf
6e0e033e94 Fix bug where point code gets corrupted on CPG
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72437 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-28 16:35:38 +00:00
file
d2aea5fe95 Silly jingle...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72358 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27 23:14:39 +00:00
file
0b3770075d Add SIPREFERRINGCONTEXT and SIPREFERREDBYHDR variables when a transfer takes place. (issue #8378 reported by jcovert)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72354 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27 23:13:09 +00:00
file
a3bf60df13 Merged revisions 72331 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r72331 | file | 2007-06-27 18:58:02 -0400 (Wed, 27 Jun 2007) | 2 lines

Make payload IDs for iLBC/Speex match to our list. Since these are dynamic payloads the other side shouldn't care. (issue #9426 reported by irroot)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72332 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27 22:58:53 +00:00
mattf
cab774c60a Let's NOT create a deadlock scenario here
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72304 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27 21:44:13 +00:00
kpfleming
9ca6486a2f Merged revisions 72205 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r72205 | kpfleming | 2007-06-27 14:13:21 -0500 (Wed, 27 Jun 2007) | 2 lines

use the proper type for storing group number bits so that if someone specifies 'group=42' it will actually work instead of being silently ignored

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72207 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27 19:13:54 +00:00
qwell
c7c4b670f7 Merged revisions 72125 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r72125 | qwell | 2007-06-27 12:10:32 -0500 (Wed, 27 Jun 2007) | 4 lines

Don't modify a variable that we don't want modified.  Make a copy of it instead.

Issue 10029, patch by phsultan with slight modifications by me (to remove needless casts).

Note: chan_jingle in trunk does not appear to have the same bug.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72134 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27 17:14:31 +00:00
crichter
bfa7331627 Merged revisions 72042 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r72042 | crichter | 2007-06-27 09:58:06 +0200 (Mi, 27 Jun 2007) | 13 lines

Merged revisions 72040-72041 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r72040 | crichter | 2007-06-27 09:49:27 +0200 (Mi, 27 Jun 2007) | 1 line

for inbound TE calls, we setup the bchannel when we get the CONNECT_ACKNOWLEDGE, to make sure mISDN has everything ready. removed some #if 0 areas which weren't used anymore.
........
r72041 | crichter | 2007-06-27 09:54:30 +0200 (Mi, 27 Jun 2007) | 1 line

isdn_lib.c didn't compile
........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72052 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27 08:08:58 +00:00
file
b401a5b5e5 Add rtpdest option to SIP CHANNEL() dialplan function to return the IP address and port that RTP (be it audio/video/text) is going to.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71988 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-26 23:31:23 +00:00
file
f8bdb914c3 Tweak CLI command completion and some help text. (issue #10049 reported by IgorG)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71613 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-25 15:35:10 +00:00
file
dfd569c434 Merged revisions 71576 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r71576 | file | 2007-06-25 10:13:45 -0400 (Mon, 25 Jun 2007) | 2 lines

Build a peer as well when hash323 is enabled in users.conf (issue #9599 reported by asagage)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71577 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-25 14:15:05 +00:00
file
0d58f906de Merged revisions 71522 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r71522 | file | 2007-06-25 09:03:03 -0400 (Mon, 25 Jun 2007) | 2 lines

Minor tweak for queueing up the unhold frame... this will teach me to do bugs while half asleep. (issue #10046 reported by dimas)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71525 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-25 13:04:36 +00:00
crichter
ed57a7b881 Merged revisions 71214 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r71214 | crichter | 2007-06-23 00:44:42 +0200 (Sa, 23 Jun 2007) | 9 lines

Merged revisions 70341 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r70341 | crichter | 2007-06-20 17:29:09 +0200 (Mi, 20 Jun 2007) | 1 line

fixed a bug that was introduced by copy and paste in the last commit ..bchannels weren't cleaned properly.
........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71500 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-25 09:46:18 +00:00
crichter
57a0fbd0a8 Merged revisions 71123 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r71123 | crichter | 2007-06-22 17:38:08 +0200 (Fr, 22 Jun 2007) | 9 lines

Merged revisions 70672 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r70672 | crichter | 2007-06-21 15:11:29 +0200 (Do, 21 Jun 2007) | 1 line

we activate the bchannels in TE mode on incoming calls only when we want to connect the call.
........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71499 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-25 09:44:35 +00:00
crichter
169c558088 Merged revisions 71122 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r71122 | crichter | 2007-06-22 17:34:31 +0200 (Fr, 22 Jun 2007) | 9 lines

Merged revisions 70342 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r70342 | crichter | 2007-06-20 17:42:39 +0200 (Mi, 20 Jun 2007) | 1 line

forgot one place .. 
........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71498 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-25 09:42:15 +00:00
crichter
ef8b248790 Merged revisions 71121 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r71121 | crichter | 2007-06-22 17:32:54 +0200 (Fr, 22 Jun 2007) | 9 lines

Merged revisions 70311 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r70311 | crichter | 2007-06-20 16:47:59 +0200 (Mi, 20 Jun 2007) | 1 line

on receiption of cause:44 we mark the channel as in use and inform the user about the situation, we need to test the RESTART stuff then. Also shuffled the empty_chan_in_stack function after the bchannel cleaning functions, to avoid race conditions.
........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71497 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-25 09:37:49 +00:00
crichter
08cf0cf5c0 Merged revisions 71120 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r71120 | crichter | 2007-06-22 17:30:08 +0200 (Fr, 22 Jun 2007) | 9 lines

Merged revisions 69887 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r69887 | crichter | 2007-06-19 15:23:04 +0200 (Di, 19 Jun 2007) | 1 line

when we send out a SETUP, but get no response, we should cleanup everything after reception of a hangup.
........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71496 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-25 09:34:05 +00:00
crichter
24961b1ac2 Merged revisions 71118 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r71118 | crichter | 2007-06-22 17:27:53 +0200 (Fr, 22 Jun 2007) | 9 lines

Merged revisions 69053 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r69053 | crichter | 2007-06-13 11:55:54 +0200 (Mi, 13 Jun 2007) | 1 line

restart indicator 0x80 is correct, at least that's what libpri does.
........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71483 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-25 09:06:56 +00:00
crichter
05e0a4ce02 Merged revisions 71106 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r71106 | crichter | 2007-06-22 17:22:06 +0200 (Fr, 22 Jun 2007) | 9 lines

Merged revisions 68887 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r68887 | crichter | 2007-06-12 10:35:22 +0200 (Di, 12 Jun 2007) | 1 line

if the bridged partner is mISDN too we should not send dtmf tones, they are transmitted inband always
........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71476 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-25 08:57:06 +00:00
crichter
b28758ea69 Merged revisions 71096 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r71096 | crichter | 2007-06-22 17:17:04 +0200 (Fr, 22 Jun 2007) | 9 lines

Merged revisions 68874 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r68874 | crichter | 2007-06-12 09:48:52 +0200 (Di, 12 Jun 2007) | 1 line

if we have already some digits, we just stop the tones.
........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71475 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-25 08:53:47 +00:00
file
fb0c27fed7 Merged revisions 71430 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r71430 | file | 2007-06-24 21:10:06 -0400 (Sun, 24 Jun 2007) | 10 lines

Merged revisions 71414 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r71414 | file | 2007-06-24 21:02:49 -0400 (Sun, 24 Jun 2007) | 2 lines

Ignore other URIs after the first in a 300 Multiple Choice response. (issue #10041 reported by homesick)

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71434 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-25 01:11:47 +00:00
file
c05d3473b9 Merged revisions 71412 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r71412 | file | 2007-06-24 20:49:21 -0400 (Sun, 24 Jun 2007) | 2 lines

Check to make sure the channel pointer is present before queueing up an unhold frame on it. (issue #10046 reported by dimas)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71413 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-25 00:52:03 +00:00
russell
972f877bc5 Merged revisions 71003 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r71003 | russell | 2007-06-21 22:14:41 -0500 (Thu, 21 Jun 2007) | 3 lines

Fix a small typo which ... well ... completely broke chan_iax2.  oops!
(issue #9937, patch by me)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71004 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-22 03:15:34 +00:00
russell
6128082778 Merged revisions 70883 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r70883 | russell | 2007-06-21 16:14:53 -0500 (Thu, 21 Jun 2007) | 3 lines

Put the thread reading from the socket back in the idle list if it deferred the
processing of a full frame to another thread

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@70887 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-21 21:16:36 +00:00
russell
fd11fb4061 Merged revisions 70866 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r70866 | russell | 2007-06-21 16:07:04 -0500 (Thu, 21 Jun 2007) | 5 lines

If a full frame is received while one of the iax2 threads is in the middle
of handling a full frame for the same call, queue it up for processing by that
same thread later instead of dropping it.
(issue #9937, patch by me)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@70877 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-21 21:12:03 +00:00
mattf
ff79be5e32 Remove deprecated function call
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@70769 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-21 18:03:46 +00:00
file
8c86ab1126 Merged revisions 70552 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r70552 | file | 2007-06-20 18:22:20 -0400 (Wed, 20 Jun 2007) | 10 lines

Merged revisions 70551 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r70551 | file | 2007-06-20 18:20:16 -0400 (Wed, 20 Jun 2007) | 2 lines

Don't overwrite the configured username setting upon a REGISTER. (issue #8565 reported by jsmith)

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@70553 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-20 22:24:47 +00:00
qwell
488577d707 Merged revisions 70494 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r70494 | qwell | 2007-06-20 15:53:16 -0500 (Wed, 20 Jun 2007) | 4 lines

Make sure we clear the previously dialed number if it did not exist.

Issue 9958.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@70495 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-20 20:54:08 +00:00
russell
f24f847ba3 Merged revisions 70397 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r70397 | russell | 2007-06-20 13:46:49 -0500 (Wed, 20 Jun 2007) | 13 lines

Merged revisions 70396 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r70396 | russell | 2007-06-20 13:45:38 -0500 (Wed, 20 Jun 2007) | 5 lines

Fix a problem where an established call would not be properly disconnected
when a PRI disconnect is received depending on which cause code was received.
(issue #9588, original patch by softins, updated patch from jtexter3, and some
 additional feedback from mhardeman)

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@70398 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-20 18:48:34 +00:00
oej
321b9a2a98 Show TDD status in "zap show channels"
Inspired by work at Omnitor in Sweden


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@70310 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-20 14:33:34 +00:00
russell
8e6636ad66 Merged revisions 70084 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r70084 | russell | 2007-06-19 14:13:45 -0500 (Tue, 19 Jun 2007) | 3 lines

Only attempt to queue a hangup on the owner channel if it actually exists.
(issue #9795, patch from zandbelt)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@70088 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-19 19:15:03 +00:00
murf
ea48d89dcd These changes were submitted via bug 6683, to allow CID detection in India, with carriers that do Polarity/DTMF CID signalling.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@70001 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-19 17:07:28 +00:00
russell
ddad4a6bb0 Merged revisions 69944 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r69944 | russell | 2007-06-19 10:22:36 -0500 (Tue, 19 Jun 2007) | 10 lines

Fix a crash that could occur when handing device state changes.
When the state of a device changes, the device state thread tells the extension
state handling code that it changed.  Then, the extension state code calls the
callback in chan_sip so that it can update subscriptions to that extension.
A pointer to a sip_pvt structure is passed to this function as the call which
needs a NOTIFY sent.  However, there was no locking done to ensure that the pvt
struct didn't disappear during this process.
(issue #9946, reported by tdonahue, patch by me, patch updated to trunk to use
 the sip_pvt lock wrappers by eliel)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69945 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-19 15:27:16 +00:00
mattf
da6b37ba43 Add support for setting nature of address, presentation, and other related SS7 number options (#10000)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69943 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-19 15:14:23 +00:00
tilghman
d2d661efcc Merged revisions 69796 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r69796 | tilghman | 2007-06-18 14:48:17 -0500 (Mon, 18 Jun 2007) | 2 lines

Issue 10005 - Segfault with missing arguments, plus fix a missing define for SIP INFO channels

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69797 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-18 19:52:56 +00:00
file
d5fdb33f26 Merged revisions 69794 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r69794 | file | 2007-06-18 15:00:50 -0400 (Mon, 18 Jun 2007) | 2 lines

Don't count RTP timeout when involved in a T38 fax session. (issue #9222 reported by ivoc)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69795 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-18 19:02:45 +00:00
file
e44171b907 Merged revisions 69775 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r69775 | file | 2007-06-18 14:18:12 -0400 (Mon, 18 Jun 2007) | 10 lines

Merged revisions 69765 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r69765 | file | 2007-06-18 14:13:03 -0400 (Mon, 18 Jun 2007) | 2 lines

Set the peer name on the dialog to the one configured in sip.conf and NOT the username to be used for authentication attempts. (issue #9967 reported by achauvin)

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69779 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-18 18:19:54 +00:00
file
da301d3b74 Merged revisions 69668 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r69668 | file | 2007-06-18 12:04:55 -0400 (Mon, 18 Jun 2007) | 2 lines

Don't defer the BYE till later on a transfer when the transfer itself goes kaboom and has no hope of working.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69672 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-18 16:06:17 +00:00
file
ffd70d59c7 Merged revisions 69661 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r69661 | file | 2007-06-18 11:46:32 -0400 (Mon, 18 Jun 2007) | 2 lines

Few minor transfer tweaks. We can't unlock something we never locked, and better handle a specific scenario with doing an attended transfer between two non-bridged calls.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69663 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-18 15:48:05 +00:00
file
64f47a0e8b Merged revisions 69625 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r69625 | file | 2007-06-18 09:55:00 -0400 (Mon, 18 Jun 2007) | 2 lines

Fix issue where it would be possible for the negotiated codecs to get set back to nothing. (issue #9992 reported by yehavi)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69626 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-18 13:57:33 +00:00
russell
7a0fe5c93f Convert uses of strdup() to ast_strdup()
(issue #9983, eliel)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69436 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-14 23:01:01 +00:00
kpfleming
4c5507d166 Merged revisions 69392 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r69392 | kpfleming | 2007-06-14 16:50:40 -0500 (Thu, 14 Jun 2007) | 2 lines

use ast_localtime() in every place localtime_r() was being used

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69405 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-14 22:09:20 +00:00
russell
f042431847 Add a massive set of changes for converting to use the ast_debug() macro.
(issue #9957, patches from mvanbaak, caio1982, critch, and dimas)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69327 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-14 19:39:12 +00:00
mattf
c8ca7d2f26 Clean up debug messages a little bit for ss7 linkset debugging
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69308 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-14 16:41:57 +00:00
file
aa74a2d034 Merged revisions 69221 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r69221 | file | 2007-06-13 17:17:28 -0400 (Wed, 13 Jun 2007) | 2 lines

Let's make chan_iax2 media only native transfers actually work. (issue #9376 reported by simone cittadini)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69223 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-13 21:20:32 +00:00
russell
6a9941234e Merged revisions 69183 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r69183 | russell | 2007-06-13 14:57:38 -0500 (Wed, 13 Jun 2007) | 9 lines

Move the logic for destroying a call when no response is received to a BYE
outside of the block that checks for FLAG_FATAL to be set.  This flag is only
set when the packet is transmitted with the reliability set to XMIT_CRITICAL
when the original packet is transmitted.  A BYE is always sent with it set
to XMIT_RELIABLE, meaning this code could never be encountered.  This resulted
in seeing some SIP channels that would never go away with the last packet
sent being a BYE.
(part of issue #9235, patch from jcmoore)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69187 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-13 20:03:03 +00:00
file
6865b88ba3 Merged revisions 69184 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r69184 | file | 2007-06-13 15:58:59 -0400 (Wed, 13 Jun 2007) | 2 lines

Add TXMEDIA to list so that it is properly displayed during iax2 packet output.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69185 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-13 20:00:56 +00:00
qwell
531f38e736 Completely remove callback mode and all references to it from chan_agent.
Issue 9969, patch by eliel.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69137 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-13 19:05:25 +00:00
qwell
f2942528da Fixes for ast_strlen_zero() janitor project.
Issue 9968, patch by eliel.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69081 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-13 17:06:53 +00:00
russell
21b7988185 Merged revisions 69071 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r69071 | russell | 2007-06-13 11:56:16 -0500 (Wed, 13 Jun 2007) | 3 lines

Clarify a bit of logic.  This doesn't change behavior in any way, but it is
helpful when following the logic to debug problems like 9235.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69072 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-13 16:59:42 +00:00
russell
7a68e9b96b Merged revisions 69069 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r69069 | russell | 2007-06-13 11:29:12 -0500 (Wed, 13 Jun 2007) | 3 lines

Fix a place where a chan_iax2 pvt struct was accessed without the lock held.
This issue was reported to me via email by Dmitry Mishchenko.  Thanks!

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69070 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-13 16:29:45 +00:00
file
57e249fb0a Merged revisions 69014 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r69014 | file | 2007-06-12 15:36:29 -0400 (Tue, 12 Jun 2007) | 2 lines

Change the full frame dropping log message to debug to avoid future bug reports.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69015 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-12 19:38:17 +00:00
file
2d6f8523ca Merged revisions 69012 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r69012 | file | 2007-06-12 15:26:38 -0400 (Tue, 12 Jun 2007) | 2 lines

Schedule the sending of a PING packet a second later than previously so that it does not collide with the LAGRQ.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69013 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-12 19:29:12 +00:00
russell
a07711cda2 Completely remove all of the code related to jumping to priority n + 101. yay!
(issue #9926, caio1982)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@68970 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-12 15:58:28 +00:00
file
3bce4efc7e Remove old stuff from the AgentCallbackLogin days and only autocomplete agents in the agent logoff CLI command that are logged in. (issue #9952 reported by eliel)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@68900 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-12 13:34:57 +00:00
crichter
a761fc4921 Merged revisions 68733 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r68733 | crichter | 2007-06-11 18:57:59 +0200 (Mo, 11 Jun 2007) | 9 lines

Merged revisions 68732 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r68732 | crichter | 2007-06-11 18:49:00 +0200 (Mo, 11 Jun 2007) | 1 line

added check for NULL Pointer when calling misdn_new. Asterisk does not allow us to create channels anymore when stop gracefully is used :). also modified the restart_indicator to 0
........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@68740 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-11 17:05:48 +00:00
crichter
b3b18d4cb3 Merged revisions 68644 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r68644 | crichter | 2007-06-11 12:29:18 +0200 (Mo, 11 Jun 2007) | 9 lines

Merged revisions 68631 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r68631 | crichter | 2007-06-11 11:18:01 +0200 (Mo, 11 Jun 2007) | 1 line

fixed problem that the dummybc chanels had no lock, checking for the lock now. Also fixed the channel restart stuff, we can now specify and restart particular channels too.
........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@68661 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-11 11:40:21 +00:00
qwell
9d87273d60 Fix compile errors in chan_misdn.c
Reported by d1mas in #asterisk-bugs on IRC.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@68575 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-09 01:06:40 +00:00
kpfleming
7028ac1662 Merged revisions 68450 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r68450 | kpfleming | 2007-06-08 10:52:47 -0500 (Fri, 08 Jun 2007) | 2 lines

actually remember the type/subclass of full frames that are in process

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@68453 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-08 16:03:01 +00:00
russell
ae627acb2f Fix a bunch of doxygen errors and document more things
(issue #9842, snuffy)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@68339 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-07 23:07:25 +00:00
russell
8948629e10 Fix a couple of places that got missed in the conversion to using the new API
call for creating detached threads.
(issue #9915, reported by elguro, fixed by me)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@68325 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-07 22:38:59 +00:00
kpfleming
5e7bfda69d Merged revisions 68313 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r68313 | kpfleming | 2007-06-07 17:14:35 -0500 (Thu, 07 Jun 2007) | 6 lines

some improvements to the IAX2 full frame dropping logic recently added:

- use inaddrcmp(), since we have it
- output the type of frame and subclass being dropped, and the type/subclass that is already being processed (which caused the drop)


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@68321 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-07 22:18:38 +00:00
russell
f48f442028 Merged revisions 68280 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r68280 | russell | 2007-06-07 16:16:07 -0500 (Thu, 07 Jun 2007) | 4 lines

Fix loading persistent queue members when using realtime configuration for queues.
Also, remove an unneeded leading slash for the astdb family.
(issue #9911, patch by atis)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@68284 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-07 21:17:52 +00:00
qwell
4f51fb43e4 Merged revisions 68249 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r68249 | qwell | 2007-06-07 15:25:18 -0500 (Thu, 07 Jun 2007) | 4 lines

Fix an issue with newer phones which require packets be padded out to the correct length.

Issue 9887, patch by DEA.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@68251 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-07 20:25:56 +00:00
oej
4536711cea Merged revisions 68196 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r68196 | oej | 2007-06-07 21:46:10 +0200 (Thu, 07 Jun 2007) | 2 lines

Disable chan_features by default in menuselect

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@68199 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-07 19:49:15 +00:00
oej
10775ce6b1 - Doxygen updates
- Adding docs on flags to be able to clean up a bit


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@68195 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-07 19:45:32 +00:00
file
0b0739e254 Merged revisions 67941 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r67941 | file | 2007-06-06 20:10:48 -0400 (Wed, 06 Jun 2007) | 10 lines

Merged revisions 67938 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r67938 | file | 2007-06-06 20:09:13 -0400 (Wed, 06 Jun 2007) | 2 lines

Only notify the devicestate system of a peer state change when the peer is built from the config file. (issue #9900 reported by arkadia)

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67944 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-07 00:12:21 +00:00
mattf
85f5258b00 Allow overlapdialing directions to be configurable. Bug #8554
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67920 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-06 23:12:58 +00:00
dhubbard
8afee0e59e added CLI 'iax2 unregister <peername>' for issue 9812, thanks eliel
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67901 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-06 22:35:35 +00:00
russell
20f34a09e9 Remove our little joke that was making fun of email disclaimers which nobody
else seemed to think was very funny.  Oh well ... :)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67895 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-06 22:27:18 +00:00
tilghman
eb5d461ed4 Issue 9869 - replace malloc and memset with ast_calloc, and other coding guidelines changes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67864 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-06 21:20:11 +00:00
russell
125558c76f Merged revisions 67862 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r67862 | russell | 2007-06-06 16:14:46 -0500 (Wed, 06 Jun 2007) | 4 lines

Fix a crash when doing call pickups with SIP phones.  The code unlocked the
channel when it should not have.
(issue #9652, reported by corruptor, fixed by me)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67863 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-06 21:16:18 +00:00
russell
dd3c84f68e Make another small tweak ... mantis/svn testing
(issue #9828)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67779 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-06 18:47:58 +00:00
file
4a0fcc5ded When SS7 is enabled add w/SS7 to the end. (issue #9893 reported by Mike Anikienko)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67596 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-06 12:23:59 +00:00
russell
37b2a5420f Merged revisions 67457 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r67457 | russell | 2007-06-05 14:48:02 -0500 (Tue, 05 Jun 2007) | 2 lines

Suppress a bunch of debug output unless option_debug is on

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67458 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-05 19:50:04 +00:00
qwell
61e90275b3 Merged revisions 67421 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r67421 | qwell | 2007-06-05 13:18:24 -0500 (Tue, 05 Jun 2007) | 4 lines

Correctly update date/time on devices throughout the life of the device, instead of just at registration.

Issue 9152, yet another patch by DEA.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67422 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-05 18:19:53 +00:00
dhubbard
4540e6e1c1 changed #if DEBUG to #ifdef DEBUG to fix make failure when configured with --enable-dev-mode
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67397 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-05 17:24:46 +00:00
russell
450b9df30a Improve the way that the zaptel channel name is created by using the Asterisk
strings API and by only allocating space on the stack


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67380 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-05 17:11:32 +00:00
crichter
695e239299 Merged revisions 67334 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r67334 | crichter | 2007-06-05 18:14:07 +0200 (Di, 05 Jun 2007) | 9 lines

Merged revisions 67307 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r67307 | crichter | 2007-06-05 17:42:03 +0200 (Di, 05 Jun 2007) | 1 line

briding is a bool, fixed copy and paste issue.
........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67350 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-05 16:21:15 +00:00
crichter
fe391353a0 Merged revisions 67329 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r67329 | crichter | 2007-06-05 18:11:57 +0200 (Di, 05 Jun 2007) | 9 lines

Merged revisions 67306 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r67306 | crichter | 2007-06-05 17:39:43 +0200 (Di, 05 Jun 2007) | 1 line

simplified the EVENT_SETUP handling in the cb_events function a lot. Commented the different possibilities a bit and made functions of shared code. When the dialed extension does not exist in the extensions.conf we'll jump into the 'i' extension if this does exist, else we disconnect the call with the cause:1 = No Route to Destination.
........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67345 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-05 16:19:20 +00:00
file
838b92749f Merged revisions 67304 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r67304 | file | 2007-06-05 12:22:30 -0300 (Tue, 05 Jun 2007) | 2 lines

Only muck with the thread structure if an idle one was found/created.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67305 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-05 15:24:01 +00:00
russell
0fa7915f30 Doxygenify the comments for new members of the iax2_thread struct
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67272 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-05 14:55:09 +00:00
kpfleming
b42b5ac79b Merged revisions 67270 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r67270 | kpfleming | 2007-06-05 09:35:52 -0500 (Tue, 05 Jun 2007) | 3 lines

ensure that a burst of full frames (AST_FRAME_DTMF being the prime example) will not be processed out of order... this is a brute force fix, but seems to be the safest fix for now (thanks to the Digium PQ department for finding this bug)


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67271 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-05 14:45:48 +00:00
crichter
f096ddab24 Merged revisions 67210 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r67210 | crichter | 2007-06-05 12:25:32 +0200 (Di, 05 Jun 2007) | 9 lines

Merged revisions 67209 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r67209 | crichter | 2007-06-05 12:05:45 +0200 (Di, 05 Jun 2007) | 1 line

added possibility to deactivate bridging per port
........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67240 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-05 11:48:25 +00:00
russell
5aceb21428 Merged revisions 67158 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r67158 | russell | 2007-06-04 18:31:40 -0500 (Mon, 04 Jun 2007) | 5 lines

Fix up a bunch of places where the iax2 pvt structure can disappear and the
code did not account for it and crashes.
(issues #9642, #9569, #9666, probably others ... based on the work by
 stevedavies and mihai, with additional changes from me)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67160 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-04 23:32:26 +00:00
qwell
c6061dac74 Merged revisions 67156 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r67156 | qwell | 2007-06-04 18:26:28 -0500 (Mon, 04 Jun 2007) | 6 lines

Fix for skinny keepalives.
If there is no traffic from the phone for (keep_alive * 1100) ms (arbitrarily
 adding 10% for network issues, etc),  unregister the device.

Issue 8394, patch by DEA.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67157 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-04 23:29:22 +00:00
qwell
ccce540587 Merged revisions 67121 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r67121 | qwell | 2007-06-04 17:36:57 -0500 (Mon, 04 Jun 2007) | 4 lines

Fixes for dtmf/dialing with mgcp (similar to the recent fix for chan_skinny)

Issue 9855, patch by DEA.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67122 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-04 22:39:10 +00:00
russell
530226bba0 Merged revisions 67119 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r67119 | russell | 2007-06-04 17:28:55 -0500 (Mon, 04 Jun 2007) | 6 lines

Add comments for two functions that get called with the appropriate call locked,
but perform operations that could result in the pvt structure getting destroyed
before returning again, causing numerous seg faults all over the module.
(inspired by issues #9642, #9569, and #9666, and the work done by stevedavies
 and mihai)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67120 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-04 22:29:43 +00:00
russell
bc8315d6b3 Remove a leftover unlock and lock of the iax2 pvt struct lock that was left
over from my attempt at putting pvt structs in a hash table.  It can cause
seg faults, and has no reason to stay.
(issue #9642, pointed out by stevedavies)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67070 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-04 21:45:24 +00:00
file
f2cf990cef Merged revisions 67068 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r67068 | file | 2007-06-04 15:31:09 -0400 (Mon, 04 Jun 2007) | 2 lines

Better handle SIP devices that say they have SDP content... but really don't. (issue #9398 reported by mthomasslo)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67069 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-04 19:32:08 +00:00
russell
69fdc15bd7 Merged revisions 67020 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r67020 | russell | 2007-06-04 10:47:40 -0500 (Mon, 04 Jun 2007) | 7 lines

Resolve a deadlock in chan_iax2.  When handling an implicit ACK to a frame that
was marked as the final transmission for a call, don't call iax2_destroy() for
that call while the global frame queue is still locked.  There is a very nice
explanation of the deadlock in the report.
(issue #9663, thorough report and patch from stevedavies, additional positive
 test reports from mihai and joff_oconnell)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67022 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-04 15:50:46 +00:00
russell
29f20d8f64 Fix a couple of places where "tos" was used instead of "cos".
(issue #9540, patch by IgorG)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67016 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-04 15:14:52 +00:00
tilghman
017773401f ast_calloc janitor (Inspired by issue 9860)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@66981 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-03 06:10:27 +00:00
russell
f576c0719e Remove 80 bytes in the iax2_registry struct that weren't being used
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@66957 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-01 23:02:57 +00:00
russell
0b7a02b558 Merged revisions 66881 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r66881 | russell | 2007-06-01 14:41:30 -0500 (Fri, 01 Jun 2007) | 6 lines

Changes to the way DTMF is handled in the core broke dialing in chan_skinny.
This patch makes chan_skinny usable again.  I did not end up testing this,
but there are multiple positive test reports listed in the bug report.
(issue #9596, reported by pj, testing by pj and mvanbaak, and the fix was
 written by DEA)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@66882 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-01 19:42:27 +00:00
russell
5b1c2de262 To satisfy some legal concerns, add an option for chan_sip to include a
disclaimer along with SIP messages in the header, X-Disclaimer.  This is off by
default.  Also, the text of the disclaimer can be customized in sip.conf.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@66777 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-31 19:41:03 +00:00
file
efb9fda100 Merged revisions 66768 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r66768 | file | 2007-05-31 12:14:48 -0400 (Thu, 31 May 2007) | 10 lines

Merged revisions 66764 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r66764 | file | 2007-05-31 12:12:39 -0400 (Thu, 31 May 2007) | 2 lines

It is now possible for this path of execution to have the frame pointer be NULL, therefore we need to check for it before trying to access it. (issue #9836 reported by barthpbx)

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@66769 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-31 16:18:14 +00:00
oej
34f471d4c4 Issue #9842 - Doxygen updates by snuffy. Thanks!
(Committed from Media Plaza in Utrecht, Netherlands - Open Source VoIP conference)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@66705 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-31 10:26:55 +00:00
file
0ad1981090 This concludes my tweaking of things.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@66604 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-30 16:11:57 +00:00
tilghman
ad8d0ce4db Issue 9477 - Improve menuselect labels
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@66585 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-30 05:17:09 +00:00
oej
1f46ecc8cc oops. Thanks Terry.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@66505 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-29 19:53:40 +00:00
oej
a2a1882960 Merged revisions 66503 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r66503 | oej | 2007-05-29 21:32:57 +0200 (Tue, 29 May 2007) | 2 lines

Properly handle 408 request timeout - according to the RFC, the dialog dies if a request in a dialog gets this response.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@66504 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-29 19:35:43 +00:00
oej
ac26ac1296 Merged revisions 66474 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r66474 | oej | 2007-05-29 21:02:04 +0200 (Tue, 29 May 2007) | 2 lines

Don't issue hangup on hangup on hangup on hangup (for jcmoore)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@66502 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-29 19:17:49 +00:00
oej
a6bb4b1796 Merged revisions 66414 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r66414 | oej | 2007-05-29 18:07:44 +0200 (Tue, 29 May 2007) | 2 lines

Don't reset hangupcause if we already have one

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@66433 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-29 16:19:53 +00:00
oej
e272208606 Merged revisions 66404 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r66404 | oej | 2007-05-29 18:02:50 +0200 (Tue, 29 May 2007) | 2 lines

Tracking down hanging channels, killing them one by one. Issue #9235 and related

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@66432 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-29 16:17:17 +00:00
oej
272889ca05 Merged revisions 66363 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r66363 | oej | 2007-05-29 11:41:40 +0200 (Tue, 29 May 2007) | 10 lines

Merged revisions 66349 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r66349 | oej | 2007-05-29 09:53:14 +0200 (Tue, 29 May 2007) | 2 lines

Issue #9802 - Change inuse counter on CANCEL

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@66367 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-29 10:02:31 +00:00
file
5f0b85b97d Don't try to unregister a peer using the sip unregister CLI command if they are not registered. (issue #9811 reported by eliel)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@66315 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-28 23:28:52 +00:00
file
8b1ef12938 Due to the way stringfields work the value of the url pointer will always be non-NULL so we have to use ast_strlen_zero to make sure it is not empty. (issue #9821 reported by pj)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@66314 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-28 23:24:04 +00:00
kpfleming
0e0b40d55d more minor fixes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@66175 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-25 15:07:26 +00:00
kpfleming
f554d266c7 Merged revisions 66157 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r66157 | kpfleming | 2007-05-25 10:28:46 -0400 (Fri, 25 May 2007) | 3 lines

handle the GNUTLS library properly in the configure script and build system
don't build in OSP support unless we have found and are allowed to use SSL support

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@66158 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-25 14:37:55 +00:00
kpfleming
13417b262f use the OpenSSL AES implementation if it's available (unless configured not to)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@66071 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-24 22:07:50 +00:00
kpfleming
900d290f1f Merged revisions 65965-65967 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r65965 | kpfleming | 2007-05-24 14:24:55 -0400 (Thu, 24 May 2007) | 2 lines

don't use uninitialized variables

........
r65966 | kpfleming | 2007-05-24 14:25:21 -0400 (Thu, 24 May 2007) | 2 lines

don't reference GnuTLS headers and functions unless the configure script found it

........
r65967 | kpfleming | 2007-05-24 14:28:48 -0400 (Thu, 24 May 2007) | 2 lines

oops, use #ifdef instead of #if

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@65979 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-24 19:05:42 +00:00
russell
a42bc96f14 Add a new API call for creating detached threads. Then, go replace all of the
places in the code where the same block of code for creating detached threads
was replicated.  (patch from bbryant)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@65968 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-24 18:30:19 +00:00
oej
2c50f793d3 Merged revisions 65901 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r65901 | oej | 2007-05-24 17:26:10 +0200 (Thu, 24 May 2007) | 2 lines

Issue 7672 - fix by zandbelt - Asterisk core dump since the GnuTLS interface did not support multithreading correctly.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@65904 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-24 15:29:10 +00:00
oej
a7048e08b0 Merged revisions 65892 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r65892 | oej | 2007-05-24 17:20:54 +0200 (Thu, 24 May 2007) | 2 lines

Issue 8193 - NAT issues with gtalk/STUN. Patch by phsultan. Thanks!

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@65898 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-24 15:23:04 +00:00
oej
422f3773dd Merged revisions 65857 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r65857 | oej | 2007-05-24 17:05:10 +0200 (Thu, 24 May 2007) | 2 lines

Issue 7686, fix by phsultan, NAT issues when calling from gtalk to SIP over nat.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@65894 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-24 15:21:39 +00:00
oej
f632d1feb7 Merged revisions 65841 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r65841 | oej | 2007-05-24 16:48:55 +0200 (Thu, 24 May 2007) | 2 lines

Issue #8536 - Caller ID not set in CDR for jingle

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@65844 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-24 14:52:01 +00:00
file
2ae24e382c Merged revisions 65839 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r65839 | file | 2007-05-24 10:42:12 -0400 (Thu, 24 May 2007) | 10 lines

Merged revisions 65837 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r65837 | file | 2007-05-24 10:40:38 -0400 (Thu, 24 May 2007) | 2 lines

Allow RFC2833 to be negotiated when an INVITE comes in without SDP and is not matched to a user or peer. (issue #9546 reported by mcrawford)

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@65840 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-24 14:43:49 +00:00
oej
65cd6cfe24 Issue #8409 and accidentally a fix to chan_sip that wasn't supposed to be there
but is still ok... Sorry. Lack of Tea, really.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@65838 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-24 14:41:43 +00:00
kpfleming
28320d58a2 Yes Virginia, there is a reason why we have stringfields in the sip_pvt structure...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@65814 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-24 11:38:20 +00:00
crichter
a62597c90d Merged revisions 65768 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r65768 | crichter | 2007-05-24 11:37:32 +0200 (Do, 24 Mai 2007) | 9 lines

Merged revisions 65767 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r65767 | crichter | 2007-05-24 11:19:58 +0200 (Do, 24 Mai 2007) | 1 line

we should only activate the generator in chan_misdn, when asterisk hask not yet taken the call (WAITING4DIGS state). Alerting audio will be generated fomr asterisk for example.
........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@65769 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-24 09:51:01 +00:00
russell
74634e59e4 - Remove debug variable that was only used in one place
- convert string handling to the ast_str API
 - Convert strdup() to ast_strdup() and check the result
 - Minor formatting changes


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@65749 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-24 03:28:39 +00:00
markster
0790d71059 Add SendURL support
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@65731 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-24 02:23:08 +00:00
kpfleming
09fd64a20b Merged revisions 65685 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r65685 | kpfleming | 2007-05-23 16:59:19 -0400 (Wed, 23 May 2007) | 2 lines

start the delayed PBX when receive voice or video full frames as well, and comment this delayed-PBX activity

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@65688 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-23 21:01:18 +00:00
kpfleming
f1a7b28755 Merged revisions 65683 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r65683 | kpfleming | 2007-05-23 16:51:56 -0400 (Wed, 23 May 2007) | 10 lines

Merged revisions 65682 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r65682 | kpfleming | 2007-05-23 16:46:22 -0400 (Wed, 23 May 2007) | 2 lines

ensure that variables are set on a newly created channel before we start a PBX on it

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@65684 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-23 20:53:10 +00:00
kpfleming
45fdf9b3db Merged revisions 65679-65680 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r65679 | kpfleming | 2007-05-23 16:30:24 -0400 (Wed, 23 May 2007) | 2 lines

don't start a PBX on a new incoming IAX2 channel until we have some sort of response to our ACCEPT (ACK or anything else)

........
r65680 | kpfleming | 2007-05-23 16:35:50 -0400 (Wed, 23 May 2007) | 2 lines

clear the 'delay PBX' flag when we are ready to start the PBX

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@65681 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-23 20:39:42 +00:00