<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body text="#000000" bgcolor="#ffffff">
    find the inline comment...<br>
    <br>
    On 07/29/2011 12:11 AM, Ishwar Sridharan wrote:
    <blockquote
cite="mid:CA+fQKYwYW+8fSfu8xwHsc4o1HN2sLA=cHr7ztZ1P-ggvZfjU-A@mail.gmail.com"
      type="cite">The dialplan is very simple. When the call comes in,
      we hand the call over to adhearsion.<br>
      This is how the dialplan looks:<br>
      <br>
      ;group 0 will be used for incoming calls<br>
      EXOIN = DAHDI/g0<br>
      <br>
      ;group 11 for outgoing<br>
      EXOOUT = DAHDI/G11<br>
      <br>
      ;This will be used by adhearsion<br>
      EXOCID=xxxxxxxx<br>
      <br>
      [general]<br>
      autofallthrough = yes ;really?<br>
      clearglobalvars = no<br>
      <br>
      [frompstn]<br>
      ;Send everything to adhearsion<br>
      exten =&gt; _X.,1,Ringing<br>
      exten =&gt; _X.,n,AGI(agi://<a moz-do-not-send="true"
        href="http://127.0.0.1">127.0.0.1</a>)<br>
    </blockquote>
    &nbsp;<font color="#ff6666">&nbsp;&nbsp; exten =&gt; _X.,n,Hangup() ; Please try
      this.</font><br>
    <blockquote
cite="mid:CA+fQKYwYW+8fSfu8xwHsc4o1HN2sLA=cHr7ztZ1P-ggvZfjU-A@mail.gmail.com"
      type="cite"><br>
      ; End dialplan<br>
      <br>
      The rest of the logic happens in adhearsion.<br>
      <br>
      --<br>
      Thanks,<br>
      Ishwar.<br>
      <br>
      <br>
      <div class="gmail_quote">On Thu, Jul 28, 2011 at 6:33 PM, Nikhil <span
          dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:d.nikhil@cem-solutions.net">d.nikhil@cem-solutions.net</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <div text="#000000" bgcolor="#ffffff"> Can you share the
            dialplan ,where SIP call is dialing...<br>
            Thanks<br>
            Nikhil
            <div>
              <div class="h5"><br>
                <br>
                On 07/28/2011 06:15 PM, Ishwar Sridharan wrote: </div>
            </div>
            <blockquote type="cite">
              <div>
                <div class="h5">Hello everybody,<br>
                  <br>
                  We have an asterisk 1.8.4.1 setup, connected to a PRI
                  line.<br>
                  <br>
                  We're currently facing an issue where asterisk does
                  not recognise the event when the called party
                  declines/cuts the call. This happens specifically over
                  calls on a PRI line. For calls over SIP, call decline
                  event is captured properly.<br>
                  <br>
                  I wasn't able to find a solution on the asterisk-users
                  mailing list archive. Any suggestions/help would be
                  much appreiciated :) I can share the relevant parts of
                  the configuration files, if needed.<br>
                  <br>
                  Here's an excerpt from asterisk logs for a SIP call.<br>
                  &nbsp;&nbsp;&nbsp; -- SIP/xxxxx-00000000 requested special control
                  16, passing it to SIP/xxxxx-00000001<br>
                  &nbsp;&nbsp;&nbsp; -- Started music on hold, class 'default', on
                  SIP/xxxxx-00000001<br>
                  &nbsp;&nbsp;&nbsp; -- SIP/xxxxx-00000000 requested special control
                  20, passing it to SIP/xxxxx-00000001<br>
                  &nbsp;&nbsp;&nbsp; -- Got SIP response 603 "Decline" back from <a
                    moz-do-not-send="true" href="http://127.0.0.1:5063/"
                    target="_blank">127.0.0.1:5063</a><br>
                  &nbsp;&nbsp;&nbsp; -- SIP/xxxxx-00000001 is busy<br>
                  &nbsp;&nbsp;&nbsp; -- Stopped music on hold on SIP/xxxxx-00000001<br>
                  <br>
                  As you can see, on a SIP call, a call reject event is
                  identified.<br>
                  <br>
                  For a call over the PRI, on the other hand, this event
                  is not recognised. Here's an excerpt from asterisk log
                  for a call over PRI.<br>
                  Call from yyyy to xxxx.<br>
                  &nbsp;&nbsp;&nbsp; -- Requested transfer capability: 0x10 - 3K1AUDIO<br>
                  &nbsp;&nbsp;&nbsp; -- Called G11/xxxxx<br>
                  &nbsp;&nbsp;&nbsp; -- Started music on hold, class 'default', on
                  DAHDI/i1/yyyyy<br>
                  &nbsp;&nbsp;&nbsp; -- DAHDI/i1/xxxxx-18f8 is proceeding passing it to
                  DAHDI/i1/yyyyy<br>
                  &nbsp;&nbsp;&nbsp; -- DAHDI/i1/xxxxx-18f8 is ringing<br>
                  # At this point in time, xxxxx rejects the call. The
                  event that's logged in asterisk is the following:<br>
                  &nbsp;&nbsp;&nbsp; -- DAHDI/i1/xxxxx-18f8 is making progress passing
                  it to DAHDI/i1/yyyyy<br>
                  # And the call times out after the default 30s.<br>
                  &nbsp;&nbsp;&nbsp; -- Nobody picked up in 30000 ms<br>
                  <br>
                  Is there a reason why asterisk doesn't recognise the
                  "call decline", and does it need any configuration
                  changes to enable this?<br>
                  <br>
                  Thanks for your help.<br>
                  <br>
                  --<br>
                  Cheers,<br>
                  <font color="#888888">Ishwar.</font><br>
                </div>
              </div>
              <pre><fieldset></fieldset>
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by <a moz-do-not-send="true" href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               <a moz-do-not-send="true" href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a>

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   <a moz-do-not-send="true" href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></pre>
            </blockquote>
            <br>
          </div>
          <br>
          --<br>
_____________________________________________________________________<br>
          -- Bandwidth and Colocation Provided by <a
            moz-do-not-send="true" href="http://www.api-digital.com"
            target="_blank">http://www.api-digital.com</a> --<br>
          New to Asterisk? Join us for a live introductory webinar every
          Thurs:<br>
          &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a moz-do-not-send="true"
            href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
          <br>
          asterisk-users mailing list<br>
          To UNSUBSCRIBE or update options visit:<br>
          &nbsp; <a moz-do-not-send="true"
            href="http://lists.digium.com/mailman/listinfo/asterisk-users"
            target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
        </blockquote>
      </div>
      <br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by <a class="moz-txt-link-freetext" href="http://www.api-digital.com">http://www.api-digital.com</a> --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               <a class="moz-txt-link-freetext" href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a>

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   <a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></pre>
    </blockquote>
    <br>
  </body>
</html>