Commit Graph

6764 Commits

Author SHA1 Message Date
Richard Mudgett
d411ade931 Allow the DAHDI driver to compile, even with a sufficiently older version of libpri.
Fixes our Bamboo builds.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@293046 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-26 15:53:58 +00:00
Tilghman Lesher
d1aceac167 Several more defines that need to be altered for compiling against an older version of libpri
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@292969 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-25 21:15:19 +00:00
Tilghman Lesher
cdc420235e Allow the DAHDI driver to compile, even with a sufficiently older version of libpri.
Fixes our Bamboo builds.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@292906 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-25 19:28:35 +00:00
David Vossel
3020818583 Merged revisions 292867 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r292867 | dvossel | 2010-10-25 14:06:21 -0500 (Mon, 25 Oct 2010) | 32 lines
  
  Merged revisions 292866 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r292866 | dvossel | 2010-10-25 14:05:07 -0500 (Mon, 25 Oct 2010) | 27 lines
    
    This patch turns chan_local pvts into astobj2 objects.
    
    chan_local does some dangerous things involving deadlock avoidance.
    tech_pvt functions like hangup and queue_frame are provided with a
    locked channel upon entry.  Those functions are completely safe as
    long as you don't attempt to give up that channel lock, but that is
    impossible to guarantee due to the required deadlock avoidance necessary
    to lock both the tech_pvt and both channels involved.
    
    In the past, we have tried to account for this by doing things like
    setting a "glare" flag that indicates what function should destroy the
    pvt.  This was used in local_hangup and local_queue_frame to decided
    who should destroy the pvt if they collided in separate threads.  I
    have removed the need to do this by converting all chan_local tech_pvts
    to astobj2.  This means we can ref a pvt before deadlock avoidance
    and not have to worry about that pvt possibly getting destroyed under
    us.  It also cleans up where we destroy the tech_pvt.  The only unlink
    from the tech_pvt container occurs in local_hangup now, which is where
    it should occur.
    
    Since there still may be thread collisions on some functions like
    local_hangup after deadlock avoidance, I have added some checks to detect
    those collisions and exit appropriately.  I think this patch is going to
    solve quite a bit of weirdness we have had with local channels in the past.
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@292868 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-25 19:07:50 +00:00
Leif Madsen
9baf979137 Merged revisions 292786 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

........
  r292786 | lmadsen | 2010-10-22 16:16:12 -0500 (Fri, 22 Oct 2010) | 13 lines
  
  Update the LDIF file for LDAP.
  The LDIF file asterisk.ldif was quite a bit out of date from the asterisk.ldap-schema file, so I've
  now updated that to be in sync. The asterisk.ldif file being out of sync was a problem on my systems
  where I was doing an ldapadd to import the schema into the LDAP database, and the existing file
  would cause problems and ERROR messages when registering.
  
  Additional documention has been added based on feedback in the issue I'm closing.
  
  (closes issue #13861)
  Reported by: scramatte
  Patches:
        ldap-update.txt uploaded by lmadsen (license 10)
  Tested by: lmadsen, jcovert, suretec, rgenthner
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@292787 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-22 21:28:43 +00:00
Richard Mudgett
eeec27dafc Connected line is not updated when chan_dahdi/sig_pri or chan_misdn transfers a call.
When a call is transfered by ECT or implicitly by disconnect in sig_pri or
implicitly by disconnect in chan_misdn, the connected line information is
not exchanged.  The connected line interception macros also need to be
executed if defined.

The CALLER interception macro is executed for the held call.
The CALLEE interception macro is executed for the active/ringing call.

JIRA ABE-2589
JIRA SWP-2296

Patches:
      abe_2589_c3bier.patch uploaded by rmudgett (license 664)
      abe_2589_v1.8_v2.patch uploaded by rmudgett (license 664)

Review: https://reviewboard.asterisk.org/r/958/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@292704 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-22 15:47:08 +00:00
Tilghman Lesher
cb0d414f4b Compile correctly on Linux (asterisk/localtime.h depends upon asterisk/autoconfig.h loading first).
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@292667 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-21 22:09:25 +00:00
Richard Mudgett
7e28c7c90d Send CONNECT_ACKNOWLEDGE for CIS calls too.
The originator of the Q.SIG call completion signaling link was not changed
to the active state when the CONNECT message came in.  The T309 processing
would immediately kill the signaling link because it was not in the active
state.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@292489 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-21 01:02:50 +00:00
Terry Wilson
668d532d6b Add sip show peer info about crypto and remove dated comment
This patch adds information about the encryption setting to 'sip show
peers' and removes an out-of-date comment from res_srtp.c and instead
directs users to the proper documentation.

(closes issue #18140)
Reported by: chodorenko



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@292309 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-19 19:27:32 +00:00
David Vossel
3e3ea54864 Fixes peer's host port information being lost on sip reload.
(closes issue #18135)
Reported by: lmadsen
Patches:
      crazy_ports_v2.diff uploaded by dvossel (license 671)
Tested by: lmadsen


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@291942 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-15 20:12:04 +00:00
David Vossel
24941a72ad Safer xml parsing, treat all clients the same, and better local candidate selection.
The gtalk channel driver was doing several unsafe operations
in regards to how it parsed incoming XML messages.  I have cleaned
that code up so it should be much safer now.

We now treat all clients types the same.  We have no reason to
distinguish between GMAIL and GOOGLE VOICE clients anymore because
they all work the same way.

I also modified how the local ip is found.  If no bindaddress is provided
in the config file, we attempt to determine the local ip we
would use to connect to google.com.  If that fails, then
we fall back to the ast_find_ourip() function as a last resort.
Using the new method makes it much less likely that we would ever
advertise a local RTP candidate as a loopback address.



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@291827 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-14 21:27:42 +00:00
Paul Belanger
a37956721c Add the ability for ast_find_ourip to return IPv4, IPv6 or both.
While testing chan_gtalk I noticed jabber was using my IPv6 address
and not IPv4. When using bindaddr=0.0.0.0 it is possible for ast_find_ourip()
to return both IPv6 and IPv4 results.  Adding a family parameter gives you
the ablility to choose.

Since jabber/gtalk/h323 do not support IPv6, we should only return IPv4 results.

Review: https://reviewboard.asterisk.org/r/973/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@291758 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-14 15:15:12 +00:00
Richard Mudgett
b8f40f4805 Merged revisions 291655 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r291655 | rmudgett | 2010-10-13 18:36:50 -0500 (Wed, 13 Oct 2010) | 27 lines
  
  Merged revisions 291643 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r291643 | rmudgett | 2010-10-13 18:29:58 -0500 (Wed, 13 Oct 2010) | 20 lines
    
    Deadlock between dahdi_exception() and dahdi_indicate().
    
    There is a deadlock between dahdi_exception() and dahdi_indicate() for
    analog ports.  The call-waiting and three-way-calling feature can
    experience deadlock if these features are trying to do something and an
    event from the bridged channel happens at the same time.
    
    Deadlock avoidance code added to obtain necessary channel locks before
    attemting an operation with call-waiting and three-way-calling.
    
    (closes issue #16847)
    Reported by: shin-shoryuken
    Patches:
          issue_16847_v1.4.patch uploaded by rmudgett (license 664)
          issue_16847_v1.6.2.patch uploaded by rmudgett (license 664)
          issue_16847_v1.8_v2.patch uploaded by rmudgett (license 664)
    Tested by: alecdavis, rmudgett
    
    Review: https://reviewboard.asterisk.org/r/971/
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@291656 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-13 23:45:11 +00:00
David Vossel
912ead1a24 More fixup for chan_gtalk.
This patch makes the xml parsing safer.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@291578 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-13 22:46:34 +00:00
Richard Mudgett
d8225d08b9 The chan_dahdi faxdetect option only works for the first FAX call.
The chan_dahdi faxdetect option only works for the first call.  After that
the option no longer works.  The struct dahdi_pvt.callprogress member is
the encoded user config setting for the callprogress and faxdetect config
options.  Changing this value alters the configuration for all following
calls until the chan_dahdi.conf file is reloaded.

* Fixed the chan_dahdi ast_channel_setoption callback to not change the
users faxdetect config setting except for the current call.

* Fixed the chan_dahdi ast_channel_queryoption callback to read the active
DSP setting of the faxdetect option.

* Made actually disable the active faxdetect DSP setting for the current
call on the analog port.  my_handle_dtmfup() is used for normal analog
ports.  dahdi_handle_dtmfup() is the legacy code and is no longer used
unless in a radio mode.

(closes issue #18116)
Reported by: seandarcy
Patches:
      issue18116_v1.8.patch uploaded by rmudgett (license 664)

Review: https://reviewboard.asterisk.org/r/972/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@291541 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-13 20:21:02 +00:00
Richard Mudgett
84b12f0c4d Merged revision 291504 from
https://origsvn.digium.com/svn/asterisk/be/branches/C.3-bier

..........
  r291504 | rmudgett | 2010-10-13 13:30:21 -0500 (Wed, 13 Oct 2010) | 11 lines

  Hold off ast_hangup() from destroying the ast_channel.

  Must get the ast_channel lock before proceeding with release_chan() and
  release_chan_early() to hold off ast_hangup() from destroying the
  ast_channel.

  Missed this change for -r291468.

  JIRA ABE-2598
  JIRA SWP-2317
..........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@291507 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-13 19:01:48 +00:00
Richard Mudgett
a5a798aefa Merge revision 291468 from
https://origsvn.digium.com/svn/asterisk/be/branches/C.3-bier

..........
  r291468 | rmudgett | 2010-10-13 12:39:02 -0500 (Wed, 13 Oct 2010) | 16 lines

  Memory overwrites when releasing mISDN call.

  Phone <--> Asterisk
  <-- ALERTING
  --> DISCONNECT
  <-- RELEASE
  --> RELEASE_COMPLETE

  * Add lock protection around channel list for find/add/delete operations.

  * Protect misdn_hangup() from release_chan() and vise versa using the
  release_lock.

  JIRA ABE-2598
  JIRA SWP-2317
..........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@291469 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-13 18:10:21 +00:00
Russell Bryant
ec05b242dd Merged revisions 291393 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r291393 | russell | 2010-10-13 10:29:21 -0500 (Wed, 13 Oct 2010) | 13 lines
  
  Merged revisions 291392 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r291392 | russell | 2010-10-13 10:23:19 -0500 (Wed, 13 Oct 2010) | 6 lines
    
    Lock pvt so pvt->owner can't disappear when queueing up a frame.
    
    This fixes a crash due to a hangup race condition.
    
    ABE-2601
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@291394 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-13 15:46:39 +00:00
David Vossel
f5782280d8 Gtalk enhancements and general code cleanup.
This patch includes several chan_gtalk enhancements.
Two new gtalk.conf options have been added, externip
and stunadd.  Setting externip allows us to
manually specify what the external IP address is
outside of a NAT environment.  Setting the stunaddr
option to a valid stun server allows for that external
ip to be retrieved via a STUN server automatically.  This
external IP is then advertised during call setup as
a possible candidate.

I have also attempted to clean up chan_gtalk's code
so it meets our coding guidelines. During this cleanup
I noticed several things that need to be done in the
code and made a TODO section at the top of the file.




git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@291192 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-11 21:38:39 +00:00
Richard Mudgett
184d0e7f1b Move declaration closer to where now used.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@291113 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-11 18:51:13 +00:00
Richard Mudgett
a96796cc44 Merged revisions 291110-291111 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r291110 | rmudgett | 2010-10-11 13:34:22 -0500 (Mon, 11 Oct 2010) | 9 lines
  
  Merged revisions 291109 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r291109 | rmudgett | 2010-10-11 13:29:43 -0500 (Mon, 11 Oct 2010) | 1 line
    
    Add missing unlock to an exception condition in reload_config().
  ........
................
  r291111 | rmudgett | 2010-10-11 13:39:06 -0500 (Mon, 11 Oct 2010) | 1 line
  
  Make exit from handle_request_do() consistent.
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@291112 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-11 18:48:15 +00:00
David Vossel
6412f8d665 Make outbound Google Voice calls.
This patch allows for outbound Google Voice calls to be
dialed from Asterisk using chan_gtalk. Below is an example
dialstring.

exten -> blah,1,Dial(Gtalk/asterisk/+15552225555@voice.google.com,,)

In this example, 'asterisk' is the jabber.conf profile configured
to connect to your gmail account. In order to receive Google Voice
calls make sure to enable 'allowguest=yes' in gtalk.conf.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@290973 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-08 20:44:59 +00:00
David Vossel
45a6b95d93 Add Philippe Sultan to chan_gtalk author list.
Philippe has made some notable contributions to the
gtalk channel driver.  His name deserves to be listed
amoung the authors of that file.  Thanks Philippe!


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@290829 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-07 22:38:05 +00:00
David Vossel
90be613635 Outbound gtalk calls now work correctly.
There was a problem with how the candidates were being
built on an outbound call. This patch fixes that.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@290828 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-07 21:44:58 +00:00
David Vossel
7853c1cd2f Fixes commented out code to use #if 0 instead.
Thanks to rmudgett for catching this!


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@290674 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-06 21:22:51 +00:00
David Vossel
1d19ab1a63 Fixes gtalk outbound DTMF to work properly.
Outbound DTMF with gtalk needs to be done within the RTP stream.  I discovered
this after investigating a packet capture from the gmail client.  Instead of
performing jingle signaling DTMF, the gtalk servers expect all DTMF to arrive
on the RTP stream using RFC2833 way of doing things.  Chan_gtalk also had an issue
with negotiating RTP payload type 106 for the telephony-event and then sending
DTMF as payload 101.  This has been resolved by always negotiating 101 as the payload
type like we do everywhere else.  With this patch, incoming google voice calls forwarded
to Asterisk via gtalk work.



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@290648 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-06 21:08:19 +00:00
David Vossel
cb0e2d3bd7 Fixes uninitialized memory problem in 'iax2 set debug peer' option.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@290506 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-05 22:23:00 +00:00
David Vossel
f87133b078 Fixes chan_gtalk to work with gmail client
This patch was written by Philippe Sultan (phsultan). Thanks
for keeping this up to date!



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@290479 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-05 22:00:43 +00:00
David Vossel
0d04fcad79 Resolves dnsmgr memory corruption in chan_iax2.
(closes issue #17902)
Reported by: afried
Patches:
      issue_17902.rev1.txt uploaded by russell (license 2)
Tested by: afried, russell, dvossel

Review: https://reviewboard.asterisk.org/r/965/



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@290378 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-05 20:09:06 +00:00
Jeff Peeler
ddebf12b88 Merged revisions 289798 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r289798 | jpeeler | 2010-10-01 18:01:31 -0500 (Fri, 01 Oct 2010) | 22 lines
  
  Merged revisions 289797 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r289797 | jpeeler | 2010-10-01 17:58:38 -0500 (Fri, 01 Oct 2010) | 15 lines
    
    Change RFC2833 DTMF event duration on end to report actual elapsed time.
    
    The scenario here is with a non P2P early media session. The reported time
    length of DTMF presses are coming up short when sending to the remote side.
    Currently the event duration is a running total that is incremented when sending
    continuation packets. These continuation packets are only triggered upon
    incoming media from the remote side, which means that the running total probably
    is not going to end up matching the actual length of time Asterisk received
    DTMF. This patch changes the end event duration to be lengthened if it is
    detected that the end event is going to come up short.
    
    Review: https://reviewboard.asterisk.org/r/957/
    
    ABE-2476
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@289840 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-02 02:43:45 +00:00
Jeff Peeler
4f8d5448a6 Merged revisions 289700 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r289700 | jpeeler | 2010-10-01 11:21:04 -0500 (Fri, 01 Oct 2010) | 21 lines
  
  Merged revisions 289699 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r289699 | jpeeler | 2010-10-01 11:20:00 -0500 (Fri, 01 Oct 2010) | 14 lines
    
    Ensure user portion of SIP URI matches dialplan when using encoded characters.
    
    This commit takes a simliar approach to 288112 and checks the dialplan to
    determine the proper action for an incoming contact header as to whether or not
    it should be decoded or not. sip_new was blindly always decoding the extension,
    which also caused the outgoing contact header to be incorrect as well as failing
    to match the encoded extension in the dialplan.
    
    (closes issue #17892)
    Reported by: wdoekes
    Patches: 
          bug17892-1.patch uploaded by jpeeler (license 325)
    Tested by: wdoekes
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@289701 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-01 16:22:19 +00:00
Stefan Schmidt
097becdba1 don't iterate through all dialogs to find and delete old subscribes
On every incoming subscribe there is a iteration through all dialogs to find old subscribes and delete them. This is slow and not RFC conform. This was only needed in 1.2 cause a subscribe was not deleted when a dialog was destroyed, after 1.4 a subscribe get removed when its dialog is destroyed.

(closes issue #17950)
Reported by: schmidts
Tested by: schmidts

Review: https://reviewboard.asterisk.org/r/901/



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@289622 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-01 09:42:22 +00:00
Matthew Nicholson
ac5ac97178 Merged revisions 289553 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

........
  r289553 | mnicholson | 2010-09-30 14:51:27 -0500 (Thu, 30 Sep 2010) | 4 lines
  
  Properly handle channel allocation failures duing invites with replaces.
  
  ABE-2588
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@289554 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-30 19:53:10 +00:00
Richard Mudgett
79105531c2 Merged revision 289547 from
https://origsvn.digium.com/svn/asterisk/be/branches/C.3-bier

..........
  r289547 | rmudgett | 2010-09-30 14:16:36 -0500 (Thu, 30 Sep 2010) | 10 lines

  In chan_misdn, the DivertingLegInformation2 DivertingNr is garbage when the number is restricted.

  The same thing happens with DivertingLegInformation1 DivertedTo number.

  The misdn_PresentedNumberUnscreened_extract() extracted the Unscreened
  PartyNumber field unconditionally.  It now checks the presented number
  unscreened type to see if the PartyNumber was even present.

  JIRA ABE-2595
..........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@289549 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-30 19:28:36 +00:00
Richard Mudgett
cb82f20163 Avoid deadlock processing incoming AOC-E messages.
Deadlock avoidance for the owner channel was not done when processing
incoming AOC-E messages.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@289057 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-28 01:04:37 +00:00
Richard Mudgett
bb8e2fcef8 Revert stuff not ready for commit in -r289054.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@289055 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-28 00:35:25 +00:00
Richard Mudgett
34b3615fff Break up long ast_manager_event_multichan() event lines.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@289054 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-28 00:32:18 +00:00
Tilghman Lesher
f2f15f7e04 Still build SIP, even if res_crypto cannot be built (use, not depend).
(closes issue #18062)
 Reported by: a user on the mailing list


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@288961 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-27 18:37:41 +00:00
David Vossel
6ba94c8639 Append Retry-After header on 500 error response to Re-INVITE according to RFC3261 section 14.2.
ABE-2301



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@288852 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-24 17:58:57 +00:00
David Vossel
68751f8b26 Inspect Require header on BYE transaction according to RFC3261 section 8.2.2.3.
ABE-2293


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@288821 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-24 17:05:12 +00:00
Terry Wilson
d4f3b42543 Merged revisions 288747 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r288747 | twilson | 2010-09-24 08:37:39 -0700 (Fri, 24 Sep 2010) | 12 lines
  
  Merged revisions 288746 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r288746 | twilson | 2010-09-24 08:26:09 -0700 (Fri, 24 Sep 2010) | 5 lines
    
    Don't fail a masquerade if it is already being hung up
    
    This avoids noise on some Local channel situations where we don't use /n.
    Thanks to Alec Davis for the suggestion.
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@288748 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-24 16:02:27 +00:00
Terry Wilson
fcd2b0e2c7 Merged revisions 288500 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r288500 | twilson | 2010-09-22 16:10:09 -0700 (Wed, 22 Sep 2010) | 15 lines
  
  Merged revisions 288499 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r288499 | twilson | 2010-09-22 16:00:30 -0700 (Wed, 22 Sep 2010) | 8 lines
    
    Don't let a Local channel get bridged to itself
    
    If a local channel gets bridged to itself, it becomes orphaned with no devices
    left to actually tell it to hang up. This patch modifies local_fixup() to detect
    this case and deny it.
    
    Review: https://reviewboard.asterisk.org/r/934
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@288507 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-22 23:18:27 +00:00
David Vossel
0f4fa2300a Merged revisions 288417 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r288417 | dvossel | 2010-09-22 12:49:05 -0500 (Wed, 22 Sep 2010) | 11 lines
  
  Merged revisions 288416 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r288416 | dvossel | 2010-09-22 12:48:15 -0500 (Wed, 22 Sep 2010) | 5 lines
    
    RFC3261 section 12.2 explicitly says out of order requests are responded with a 500 Server Internal Error response.
    
    ABE-2458
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@288418 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-22 17:49:56 +00:00
David Vossel
4cb567b461 Merged revisions 288344 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r288344 | dvossel | 2010-09-22 11:53:28 -0500 (Wed, 22 Sep 2010) | 9 lines
  
  Merged revisions 288343 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r288343 | dvossel | 2010-09-22 11:49:56 -0500 (Wed, 22 Sep 2010) | 2 lines
    
    During check_pendings, if the dialog is terminated with a CANCEL, change the invitestate to INV_CANCEL like in sip_hangup.
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@288345 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-22 16:59:14 +00:00
Richard Mudgett
e2ceeb5789 Merged revisions 288193 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r288193 | rmudgett | 2010-09-21 19:03:37 -0500 (Tue, 21 Sep 2010) | 33 lines
  
  Merged revisions 288192 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r288192 | rmudgett | 2010-09-21 18:55:58 -0500 (Tue, 21 Sep 2010) | 26 lines
    
    In chan_iax2.c:schedule_delivery() calls ast_bridged_channel() on an unlocked channel.
    
    Near the beginning of schedule_delivery(), ast_bridged_channel() is called
    on iaxs[fr->callno]->owner.  However, the channel is not locked, which can
    result in ast_bridged_channel() crashing should owner->tech change to a
    technology that doesn't implement bridged_channel.
    
    I also fixed the other calls to ast_bridged_channel() in chan_iax2.c since
    the owner lock was not held there either.
    
    Converted the existing channel deadlock avoidance to use
    iax2_lock_owner().  Using the new function simplified some awkward code.
    
    In the process of fixing the locking on ast_bridged_channel(), I also
    found a memory leak in socket_process() for v1.6.2 and v1.8.  The local
    struct variable ies.vars is not freed on early/abnormal function exits.
    
    (closes issue #17919)
    Reported by: rain
    Patches:
          issue17919_v1.4.patch uploaded by rmudgett (license 664)
          issue17919_w_leak_v1.6.2.patch uploaded by rmudgett (license 664)
          issue17919_w_leak_v1.8.patch uploaded by rmudgett (license 664)
    
    Review: https://reviewboard.asterisk.org/r/926/
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@288194 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-22 00:06:21 +00:00
Tilghman Lesher
913c6b39b4 Merged revisions 288113 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r288113 | tilghman | 2010-09-21 16:59:46 -0500 (Tue, 21 Sep 2010) | 22 lines
  
  Merged revisions 288112 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r288112 | tilghman | 2010-09-21 16:58:13 -0500 (Tue, 21 Sep 2010) | 15 lines
    
    Try both the encoded and unencoded subscription URI for a match in hints.
    
    When a phone sends an encoded URI for a subscription, the URI is not matched
    with the actual hint that is in decoded format.  For example, if we have an
    extension with a hint that is named: "#5601" or "*5601", the subscription will
    work fine if the phone subscribes with an already decoded URI, but when it's
    decoded like "%255601" or "%2A5601", Asterisk is unable to match it with the
    correct hint.
    
    (closes issue #17785)
     Reported by: ramonpeek
     Patches: 
           20100831__issue17785.diff.txt uploaded by tilghman (license 14)
     Tested by: ramonpeek
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@288159 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-21 22:57:22 +00:00
Paul Belanger
5542bb8e90 Merged revisions 288147 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

........
  r288147 | pabelanger | 2010-09-21 18:22:43 -0400 (Tue, 21 Sep 2010) | 9 lines
  
  Setup timer before set_config().
  
  (closes issue #18019)
  Reported by: Netview
  Patches: 
        issue_0018019.patch uploaded by pabelanger (license 224)
  Tested by: Netview
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@288157 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-21 22:26:15 +00:00
David Vossel
35d4d7fb48 Send a "415 Unsupported Media Type" after failure to process sdp due to unknown Content-Encoding header.
ABE-2258


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@287929 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-21 18:32:12 +00:00
Russell Bryant
d0581b8bbd Don't use ast_strdupa() from within the arguments to a function.
(closes issue #17902)
Reported by: afried
Patches:
      issue_17902.rev1.txt uploaded by russell (license 2)
Tested by: russell

Review: https://reviewboard.asterisk.org/r/927/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@287895 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-21 15:43:33 +00:00
Tilghman Lesher
a39b2f5ed2 Anonymous callerid needs a "sip:" uri prefix.
(closes issue #17981)
 Reported by: avalentin
 Patches: 
       sip-anonymous-aastra.patch uploaded by avalentin (license 1107)
       (plus an additional fix by me)
 Tested by: avalentin


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@287893 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-21 15:24:47 +00:00