<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel">
    <title>gmane.comp.telephony.pbx.asterisk.devel</title>
    <link>http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52506"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52505"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52504"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52503"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52502"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52501"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52500"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52499"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52498"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52497"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52496"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52495"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52494"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52493"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52492"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52491"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52490"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52489"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52488"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52487"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52506">
    <title>Re: [Code Review] Remove AST_FLAG_ANSWERED_ELSEWHERE, duplicating the functionality of AST_CAUSE_ANSWERED_ELSEWHERE</title>
    <link>http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52506</link>
    <description>&lt;pre&gt;
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/1944/
-----------------------------------------------------------

(Updated May 25, 2012, 7:19 p.m.)


Review request for Asterisk Developers.


Changes
-------

Fixed comments and log messages


Summary
-------

While 'real' channels use AST_CAUSE_ANSWERED_ELSEWHERE, local channels and queues use AST_FLAG_ANSWERED_ELSEWHERE for the same purpose.
This patch replaces all occurrences of the flag by the cause code, removing the duplicated functionality and the flag itself.


Diffs (updated)
-----

  trunk/apps/app_dial.c 367361 
  trunk/apps/app_queue.c 367361 
  trunk/channels/chan_local.c 367361 
  trunk/channels/chan_sip.c 367361 
  trunk/channels/chan_unistim.c 367361 
  trunk/include/asterisk/channel.h 367361 
  trunk/main/channel_internal_api.c 367361 
  trunk/main/features.c 367361 

Diff: https://reviewboard.asterisk.org/r/1944/diff


Testing
-------&lt;/pre&gt;</description>
    <dc:creator>Birger Harzenetter</dc:creator>
    <dc:date>2012-05-26T00:19:54</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52505">
    <title>Re: [Code Review]: Remove AST_FLAG_ANSWERED_ELSEWHERE, duplicating the functionality of AST_CAUSE_ANSWERED_ELSEWHERE</title>
    <link>http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52505</link>
    <description>&lt;pre&gt;


changed



changed



changed



changed



As I have no idea if any 3rd party modules might make use of the flag, I thought it might be a good idea to leave this reference so developers or users can easily see what happened.



Replaced by a more generic comment as that looks rather SIP specific.


- Birger


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/1944/#review6322
-----------------------------------------------------------


On May 23, 2012, 8:44 a.m., Birger Harzenetter wrote:

--
_____________________________________________________________________
&lt;/pre&gt;</description>
    <dc:creator>Birger Harzenetter</dc:creator>
    <dc:date>2012-05-26T00:17:52</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52504">
    <title>Re: [Code Review] Help mitigate reinvite glares inthe SIP channel driver</title>
    <link>http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52504</link>
    <description>&lt;pre&gt;
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/1946/#review6332
-----------------------------------------------------------

Ship it!


With the minor changes below, this looks good to me.


/trunk/channels/chan_sip.c
&amp;lt;https://reviewboard.asterisk.org/r/1946/#comment11817&amp;gt;

    This shouldn't be necessary now.



/trunk/configs/sip.conf.sample
&amp;lt;https://reviewboard.asterisk.org/r/1946/#comment11818&amp;gt;

    Add "It implies 'yes'." like the 'update' option has.


- Kevin


On May 25, 2012, 2:12 p.m., Mark Michelson wrote:

--
_____________________________________________________________________
&lt;/pre&gt;</description>
    <dc:creator>Kevin Fleming</dc:creator>
    <dc:date>2012-05-25T19:25:40</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52503">
    <title>Re: Wrong SIP to SIP SIP Cause mapping</title>
    <link>http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52503</link>
    <description>&lt;pre&gt;Hi!


Sorry, I forgot. JIRA issue opened and patch posted there.

With regards,
  Pavel


--
_____________________________________________________________________
&lt;/pre&gt;</description>
    <dc:creator>Pavel Troller</dc:creator>
    <dc:date>2012-05-25T19:13:02</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52502">
    <title>Re: [Code Review] Help mitigate reinvite glares inthe SIP channel driver</title>
    <link>http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52502</link>
    <description>&lt;pre&gt;
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/1946/
-----------------------------------------------------------

(Updated May 25, 2012, 2:12 p.m.)


Review request for Asterisk Developers.


Changes
-------

I have made the changes suggested by Kevin.


Summary
-------

There are times where multiple Asterisk servers are peered together over SIP. In such situations, it is possible for both Asterisk servers to attempt to send direct media reinvites to each other simultaneously. This results in a glare situation in which each of the Asterisk servers sends a 491 to the other. After a waiting period, the reinvites are re-attempted. This waiting period can potentially be distracting since it can cause the media to take multiple seconds to finalize, especially if more than 2 Asterisk servers are involved.

This patch introduces a new SIP peer option called "directmedia_outgoing". If enabled, then when comm&lt;/pre&gt;</description>
    <dc:creator>Mark Michelson</dc:creator>
    <dc:date>2012-05-25T19:12:15</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52501">
    <title>Re: [Code Review] logger: Callid logging phase IV - chan_local, chan_agent, bridging and autoservice.</title>
    <link>http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52501</link>
    <description>&lt;pre&gt;
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/1950/
-----------------------------------------------------------

(Updated May 25, 2012, 2:06 p.m.)


Review request for Asterisk Developers, Mark Michelson, rmudgett, and Matt Jordan.


Summary (updated)
-------

This should be the last set of programming changes.  This review's diff file includes uncommitted changes to dahdi+iax and some other stuff that may be covered by the phase 3 review, but focus should stay on the four things mentioned.


Diffs
-----

  /trunk/channels/chan_agent.c 367420 
  /trunk/channels/chan_dahdi.c 367420 
  /trunk/channels/chan_iax2.c 367420 
  /trunk/channels/chan_local.c 367420 
  /trunk/channels/sig_analog.c 367420 
  /trunk/channels/sig_pri.c 367420 
  /trunk/main/autoservice.c 367420 
  /trunk/main/bridging.c 367420 
  /trunk/main/logger.c 367420 
  /trunk/main/pbx.c 367420 

Diff: https://reviewboard.asterisk.org/r/19&lt;/pre&gt;</description>
    <dc:creator>jrose</dc:creator>
    <dc:date>2012-05-25T19:06:59</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52500">
    <title>[Code Review] logger: Callid logging phase 4: specific changes for chan_local, chan_agent, bridging and autoservice.</title>
    <link>http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52500</link>
    <description>&lt;pre&gt;
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/1950/
-----------------------------------------------------------

Review request for Asterisk Developers, Mark Michelson, rmudgett, and Matt Jordan.


Summary
-------

This should be the last set of programming changes.  This review's diff file includes uncommitted changes to dahdi+iax and some other stuff that may be covered by the phase 3 review, but focus should stay on the four things mentioned.


Diffs
-----

  /trunk/channels/chan_agent.c 367420 
  /trunk/channels/chan_dahdi.c 367420 
  /trunk/channels/chan_iax2.c 367420 
  /trunk/channels/chan_local.c 367420 
  /trunk/channels/sig_analog.c 367420 
  /trunk/channels/sig_pri.c 367420 
  /trunk/main/autoservice.c 367420 
  /trunk/main/bridging.c 367420 
  /trunk/main/logger.c 367420 
  /trunk/main/pbx.c 367420 

Diff: https://reviewboard.asterisk.org/r/1950/diff


Testing
-------

Each channel driver&lt;/pre&gt;</description>
    <dc:creator>jrose</dc:creator>
    <dc:date>2012-05-25T19:05:56</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52499">
    <title>Re: [Code Review] logger: Callid logging phase IV: specific changes for chan_local, chan_agent, bridging and autoservice.</title>
    <link>http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52499</link>
    <description>&lt;pre&gt;
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/1950/
-----------------------------------------------------------

(Updated May 25, 2012, 2:06 p.m.)


Review request for Asterisk Developers, Mark Michelson, rmudgett, and Matt Jordan.


Summary (updated)
-------

This should be the last set of programming changes.  This review's diff file includes uncommitted changes to dahdi+iax and some other stuff that may be covered by the phase 3 review, but focus should stay on the four things mentioned.


Diffs
-----

  /trunk/channels/chan_agent.c 367420 
  /trunk/channels/chan_dahdi.c 367420 
  /trunk/channels/chan_iax2.c 367420 
  /trunk/channels/chan_local.c 367420 
  /trunk/channels/sig_analog.c 367420 
  /trunk/channels/sig_pri.c 367420 
  /trunk/main/autoservice.c 367420 
  /trunk/main/bridging.c 367420 
  /trunk/main/logger.c 367420 
  /trunk/main/pbx.c 367420 

Diff: https://reviewboard.asterisk.org/r/19&lt;/pre&gt;</description>
    <dc:creator>jrose</dc:creator>
    <dc:date>2012-05-25T19:06:31</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52498">
    <title>Re: [Code Review]: logger: Call ID logging phase III part 1 split - chan_iax2 and chan_dahdi</title>
    <link>http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52498</link>
    <description>&lt;pre&gt;


By the way, I still feel on this review that the focus should remain on chan_dahdi and iax2.  Autoservice changes, chan_agent and chan_local will be split into a separate review.


- jrose


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/1927/#review6325
-----------------------------------------------------------


On May 24, 2012, 4:32 p.m., jrose wrote:

--
_____________________________________________________________________
&lt;/pre&gt;</description>
    <dc:creator>jrose</dc:creator>
    <dc:date>2012-05-25T18:59:52</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52497">
    <title>Re: asterisk.org documentation</title>
    <link>http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52497</link>
    <description>&lt;pre&gt;

----- Original Message -----

It was discussed in depth near the end of last year.  If I recall
correctly, when (which is to be determined) we upgrade to a newer
version of JIRA, the issue Triage process will have to undergo serious
changes.  Those changes could start from the work Leif has documented
on that wiki page; however, there will most likely have to be changes
beyond that as well.
 

--
Matthew Jordan
Digium, Inc. | Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com &amp;amp; http://asterisk.org

--
_____________________________________________________________________
&lt;/pre&gt;</description>
    <dc:creator>Matthew  Jordan</dc:creator>
    <dc:date>2012-05-25T18:46:42</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52496">
    <title>Re: Wrong SIP to SIP SIP Cause mapping</title>
    <link>http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52496</link>
    <description>&lt;pre&gt;
Please do not send patches to the mailing list.  Patches need to be
attached to a JIRA issue with a signed license contributor agreement.

--
Matthew Jordan
Digium, Inc. | Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com &amp;amp; http://asterisk.org

--
_____________________________________________________________________
&lt;/pre&gt;</description>
    <dc:creator>Matthew  Jordan</dc:creator>
    <dc:date>2012-05-25T18:42:48</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52495">
    <title>Re: [Code Review]: Help mitigate reinvite glares inthe SIP channel driver</title>
    <link>http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52495</link>
    <description>&lt;pre&gt;


Maybe it's just because it's Friday, but I have no idea what your conclusion from your first paragraph is.

Regarding your second paragraph, flag it is!


- Mark


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/1946/#review6307
-----------------------------------------------------------


On May 23, 2012, 5:46 p.m., Mark Michelson wrote:

--
_____________________________________________________________________
&lt;/pre&gt;</description>
    <dc:creator>Mark Michelson</dc:creator>
    <dc:date>2012-05-25T18:42:13</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52494">
    <title>Re: [Code Review] Patch to detect/parse ANI-II / ANI2 / OLI from SIP INVITE messages</title>
    <link>http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52494</link>
    <description>&lt;pre&gt;
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/1947/
-----------------------------------------------------------

(Updated May 25, 2012, 12:20 p.m.)


Review request for Asterisk Developers, Mark Michelson, rmudgett, and Rob Gagnon.


Changes
-------

Adding rmudgett


Summary
-------

Add ANI2 / OLI parsing for SIP.  The patch checks the "From" header during the handle_request_invite() function for the presence of "isup-oli", "ss7-oli", or "oli" tags.  If present, the up-to-2-digits following the equal sign in the tag are set on the channel's caller structure in the "ani2" int element.

This allows SIP functions that reference ANI2 to work properly for SIP.  Specifically tested was the messaging that occurs when AGI transmits its data to an AGI script.


This addresses bug ASTERISK-19912.
    https://issues.asterisk.org/jira/browse/ASTERISK-19912


Diffs
-----

  /trunk/channels/chan_sip.c 367783 

D&lt;/pre&gt;</description>
    <dc:creator>Rob Gagnon</dc:creator>
    <dc:date>2012-05-25T17:20:50</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52493">
    <title>Re: [Code Review] Patch to detect/parse ANI-II / ANI2 / OLI from SIP INVITE messages</title>
    <link>http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52493</link>
    <description>&lt;pre&gt;
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/1947/
-----------------------------------------------------------

(Updated May 25, 2012, 12:20 p.m.)


Review request for Asterisk Developers, Mark Michelson and Rob Gagnon.


Changes
-------

Updated code per rmudgett's comment


Summary
-------

Add ANI2 / OLI parsing for SIP.  The patch checks the "From" header during the handle_request_invite() function for the presence of "isup-oli", "ss7-oli", or "oli" tags.  If present, the up-to-2-digits following the equal sign in the tag are set on the channel's caller structure in the "ani2" int element.

This allows SIP functions that reference ANI2 to work properly for SIP.  Specifically tested was the messaging that occurs when AGI transmits its data to an AGI script.


This addresses bug ASTERISK-19912.
    https://issues.asterisk.org/jira/browse/ASTERISK-19912


Diffs (updated)
-----

  /trunk/channels/ch&lt;/pre&gt;</description>
    <dc:creator>Rob Gagnon</dc:creator>
    <dc:date>2012-05-25T17:20:25</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52492">
    <title>Re: asterisk.org documentation</title>
    <link>http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52492</link>
    <description>&lt;pre&gt;A few moons ago, Leif and I created a wiki page[1] for an update triage 
process in JIRA.  I can't remember if we talked about it before or not.

[1] https://wiki.asterisk.org/wiki/display/~lmadsen/Issue+Triage+Process

&lt;/pre&gt;</description>
    <dc:creator>Paul Belanger</dc:creator>
    <dc:date>2012-05-25T17:10:41</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52491">
    <title>Re: Wrong SIP to SIP SIP Cause mapping</title>
    <link>http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52491</link>
    <description>&lt;pre&gt;
Hi!
  There is a patch, which IMHO fixes the problem. It's for 1.8 trunk. It 
utilizes the hangup_sip2cause() function instead of the hardcoded cause
values.
  Does already exist an issue for this problem ? If yes, I would submit the
patch there. Otherwise, I can open the issue (and from my point of view,
its a really SERIOUS issue because clear causes are _very_ important values
in the telco business and giving totally incorrect ones can ruin your
network (no joking, think of crankback and other advanced routing techniques
based on the CC values) and thus even your business).
  With regards,
    Pavel

--- chan_sip.c.old2012-05-25 18:44:25.898834370 +0200
+++ chan_sip.c2012-05-25 18:45:28.405343312 +0200
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -20371,7 +20371,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
 ast_log(LOG_WARNING, "Received response: \"Forbidden\" from '%s'\n", get_header(&amp;amp;p-&amp;gt;initreq, "From"));
 if (!req-&amp;gt;ignore &amp;amp;&amp;amp; p-&amp;gt;owner) {
 ast_set_hangupsource(p-&amp;gt;owner, p-&amp;gt;owner-&amp;gt;name, 0);
-ast_queue_hangup_with_cause(p-&amp;gt;owner, AST_CAUSE_CONGESTION);
+ast_queue_hangup&lt;/pre&gt;</description>
    <dc:creator>Pavel Troller</dc:creator>
    <dc:date>2012-05-25T16:56:12</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52490">
    <title>Re: Wrong SIP to SIP SIP Cause mapping</title>
    <link>http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52490</link>
    <description>&lt;pre&gt;Hi!
  We (or at least not I) are not speaking about passing SIP cause to another
UA, I'm talking just and only about the HANGUPCAUSE variable.
  Formerly it was set to AST_CAUSE_UNALLOCATED. Please be so kind and look at
chan_sip.c, around line 6066, function hangup_sip2cause():
...
    case 404:       /* Not found */
        return AST_CAUSE_UNALLOCATED;
...
  There is the CORRECT mapping of 404 to Cause Value.
  And now look at the same source, around line 20378 (1.8 branch):

        case 404: /* Not found */
                xmitres = transmit_request(p, SIP_ACK, seqno, XMIT_UNRELIABLE, FALSE);
                if (p-&amp;gt;owner &amp;amp;&amp;amp; !req-&amp;gt;ignore) {
                        ast_set_hangupsource(p-&amp;gt;owner, p-&amp;gt;owner-&amp;gt;name, 0);
                        ast_queue_hangup_with_cause(p-&amp;gt;owner, AST_CAUSE_CONGESTION);
                }
                break;

  An evidently _!_INCORRECT_!_ cause code is used there.
  Btw, the same problem is with the 403 Forbidden, which should return 
21 (Call Rejected), but returns 34 (Con&lt;/pre&gt;</description>
    <dc:creator>Pavel Troller</dc:creator>
    <dc:date>2012-05-25T16:33:41</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52489">
    <title>Re: Wrong SIP to SIP SIP Cause mapping</title>
    <link>http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52489</link>
    <description>&lt;pre&gt;----- Original Message -----

As has already been pointed out, Asterisk is a B2BUA, not a proxy.  There
is no guarantee that a response from one UA will be 'passed through'
Asterisk to another UA.  I won't weigh in on whether or not this qualifies
as a bug or merely a change in behavior.  The fact that Asterisk is not a
proxy gives weight to this being not a bug; that being said, there is a
definite difference between a 4xx and a 5xx response, which would give some
weight to this being a bug.

The change in behavior was mostly likely introduced by r351130.  This fixed
some issues wherein, on a response to a 404, merely queueing a congestion
control frame was not sufficient to tear down the channel.  The congestion
control frame was replaced with an explicit channel hang up with a cause of
AST_CAUSE_CONGESTION, which maps to a SIP response type of "503".



--
Matthew Jordan
Digium, Inc. | Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com &amp;amp; http://asteri&lt;/pre&gt;</description>
    <dc:creator>Matthew  Jordan</dc:creator>
    <dc:date>2012-05-25T16:10:29</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52488">
    <title>app Swift() hangs</title>
    <link>http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52488</link>
    <description>&lt;pre&gt;I have and automated call-in dispatch system where hundreds of people call in daily for 2-3 minutes each. The extension is set up to get their information, then text-to-speech the dispatch information (via odbc). It then loops 5 times then ends the call. These calls are being handled by an 8 port analog digium card.
Sometimes though, I see calls via 'core show channel dahdi/1-1' that have a time of &amp;gt; 16 hours.  When a channel gets in this state, the call doesn't seem to progress through the dialplan, they always display the TTS line. Doing a 'dahdi destroy channel 1-1' doesn't seem to be effective - the only way I've been able to clear the calls is to do a 'dahdi restart' and/or restart the asterisk service.
After some investigating and help from the asterisk-users list, problem has been narrowed down to the Swift() app getting stuck (the Swift app is a wrapper around the cepstral text-to-speech engine).
Here is the output from the cli:
dozer*CLI&amp;gt; core show channels
Channel Location State Application(Data)
D&lt;/pre&gt;</description>
    <dc:creator>Justin Killen</dc:creator>
    <dc:date>2012-05-25T16:09:09</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52487">
    <title>Re: Wrong SIP to SIP SIP Cause mapping</title>
    <link>http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52487</link>
    <description>&lt;pre&gt;Hi!

Oh, Mamma mia, Alex is right!!!!
  I've just tested a void public number through PRI and I've got CC=1 - 
Unallocated number.
  Then I dialled the same number through SIP trunk and I've got CC=34,
but on the SIP the response code was really 404 Not Found, which is
equivalent to 1 - Unallocated number. 
  Something is really broken here! Of course I'm paying attention to
$HANGUPCAUSE and I'm handling it in my own intercept scripts, and they
are proved OK, so the problem must be in wrong $HANGUPCAUSE contents.
  It's 1.8 branch.
  I hope I will find the cause soon and I'll post it here.
    With regards, Pavel.


--
_____________________________________________________________________
&lt;/pre&gt;</description>
    <dc:creator>Pavel Troller</dc:creator>
    <dc:date>2012-05-25T15:59:24</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52486">
    <title>Re: Wrong SIP to SIP SIP Cause mapping</title>
    <link>http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.devel/52486</link>
    <description>&lt;pre&gt;Hi,

That is the problem, asterisk receive 404 but hangupcause is 34 and not 1.
When i try with version 1.8.8.0 or before, I have the hangupcause 1 and with all newer version, I have hangupcause 34.

alex



----- Original Message -----

--
_____________________________________________________________________
&lt;/pre&gt;</description>
    <dc:creator>alexandre Moutot</dc:creator>
    <dc:date>2012-05-25T15:35:33</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.telephony.pbx.asterisk.devel">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.telephony.pbx.asterisk.devel</link>
  </textinput>
</rdf:RDF>

