<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>How will the ARI/dialplan integration handle specific
      extensions?  For example if I have a stasis app which registers
      itself to dialplan as 'somecontext', how does this integration
      decide which extensions are handled by the app?  Does that app get
      calls for all extensions or only specific extensions?  Do we
      create a new type of ARI app which would respond to PBX switch
      callbacks where all calls go to the stasis router app which then
      accepts or rejects calls based on the ARI apps own extension
      list?  For example if we have a context:</p>
    [from-outside]<br>
    exten => 7002052000,1,Stasis(myapp)<br>
    exten => 7002052001,1,Stasis(myapp)
    <p>How do you envision replicating having these two extensions
      handled but all other extensions being invalid?<br>
    </p>
    <div class="moz-cite-prefix">On 12/17/18 10:54 AM, Ben Ford wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CACzUEzR6U3uw4eYmNasiyQ2JMDCm8hRsMPTMq1kOVYUkdTAe7A@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Thanks for all the feedback! I believe we have a
        strong enough consensus to move forward. If anyone has any other
        thoughts on the direction of this, feel free to post them here
        anytime, preferably sooner rather than later so that if there is
        a conflict or something really cool we'd love to add,
        development isn't too far along yet :)</div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr">On Thu, Dec 13, 2018 at 3:27 PM Seán C. McCord
          <<a href="mailto:ulexus@gmail.com" moz-do-not-send="true">ulexus@gmail.com</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div dir="ltr">Sorry if I was unclear.  Yes, I would love to
            extend the "Continue" function to add App and AppArgs as an
            option to use instead of Context/Extension/Priority. 
            "Originate" and "Create" both allow these already.  Adding
            these to "Continue" would be very helpful.</div>
          <br>
          <div class="gmail_quote">
            <div dir="ltr">On Thu, Dec 13, 2018 at 2:45 PM Ben Ford <<a
                href="mailto:bford@digium.com" target="_blank"
                moz-do-not-send="true">bford@digium.com</a>> wrote:<br>
            </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">
              <div dir="ltr">To elaborate on this further, would it be
                fine the way it is currently, where you specify a
                context and extension, or is there any interest in being
                able to alternatively specify an application and
                arguments to pass to it?</div>
              <br>
              <div class="gmail_quote">
                <div dir="ltr">On Thu, Dec 13, 2018 at 12:37 PM Seán C.
                  McCord <<a href="mailto:ulexus@gmail.com"
                    target="_blank" moz-do-not-send="true">ulexus@gmail.com</a>>
                  wrote:<br>
                </div>
                <blockquote class="gmail_quote" style="margin:0px 0px
                  0px 0.8ex;border-left:1px solid
                  rgb(204,204,204);padding-left:1ex">
                  <div dir="ltr">Absolutely.  I really forgot about
                    that, because I've just molded my design approach to
                    maintain a single ARI application per node, but that
                    extension to Continue (similar to Originate's
                    App/AppArgs properties), would be enormously
                    helpful.
                    <div><br>
                    </div>
                  </div>
                  <br>
                  <div class="gmail_quote">
                    <div dir="ltr">On Thu, Dec 13, 2018 at 11:47 AM Ben
                      Ford <<a href="mailto:bford@digium.com"
                        target="_blank" moz-do-not-send="true">bford@digium.com</a>>
                      wrote:<br>
                    </div>
                    <blockquote class="gmail_quote" style="margin:0px
                      0px 0px 0.8ex;border-left:1px solid
                      rgb(204,204,204);padding-left:1ex">
                      <div dir="ltr">I think having a context that's
                        created when the application starts sounds like
                        a solid approach.
                        <div><br>
                        </div>
                        <div>Another thing to consider is how to move
                          from one application to the next. Any thoughts
                          on the use of /continue to tackle this? Is
                          this something you'd like to be able to make
                          use of in your applications?</div>
                      </div>
                      <br>
                      <div class="gmail_quote">
                        <div dir="ltr">On Wed, Dec 12, 2018 at 11:42 PM
                          Anil Gupta <<a
                            href="mailto:anilgupta83@gmail.com"
                            target="_blank" moz-do-not-send="true">anilgupta83@gmail.com</a>>
                          wrote:<br>
                        </div>
                        <blockquote class="gmail_quote"
                          style="margin:0px 0px 0px
                          0.8ex;border-left:1px solid
                          rgb(204,204,204);padding-left:1ex">
                          <div dir="ltr">
                            <div>+1 to the context idea<br>
                            </div>
                            <div><br>
                            </div>
                            <div>Something like <i><b>context =
                                  stasis:app_name</b></i> would be nice.
                              I presume this could be achieved by adding
                              the functionality to the PBX module and
                              most (if not all) channel drivers would
                              work without modification.<br>
                            </div>
                            <div><br>
                            </div>
                            <div>Thanks,</div>
                            <div>Anil</div>
                          </div>
                          <br>
                          <div class="gmail_quote">
                            <div dir="ltr">On Thu, Dec 13, 2018 at 2:16
                              AM Dan Jenkins <<a
                                href="mailto:dan@nimblea.pe"
                                target="_blank" moz-do-not-send="true">dan@nimblea.pe</a>>
                              wrote:<br>
                            </div>
                            <blockquote class="gmail_quote"
                              style="margin:0px 0px 0px
                              0.8ex;border-left:1px solid
                              rgb(204,204,204);padding-left:1ex">
                              <div dir="ltr">Oh I do remember the
                                context idea  - which seemed like a good
                                idea at the time because of not having
                                to change much internally</div>
                              <br>
                              <div class="gmail_quote">
                                <div dir="ltr">On Wed, Dec 12, 2018 at
                                  7:07 PM Seán C. McCord <<a
                                    href="mailto:ulexus@gmail.com"
                                    target="_blank"
                                    moz-do-not-send="true">ulexus@gmail.com</a>>
                                  wrote:<br>
                                </div>
                                <blockquote class="gmail_quote"
                                  style="margin:0px 0px 0px
                                  0.8ex;border-left:1px solid
                                  rgb(204,204,204);padding-left:1ex">Correction:
                                  when I said the "latter," I should
                                  have said the "third"<br>
                                  option.  The last option does not
                                  really work well, since _channels_<br>
                                  map to _contexts_, not CELs.<br>
                                  On Wed, Dec 12, 2018 at 1:52 PM Seán
                                  C. McCord <<a
                                    href="mailto:ulexus@gmail.com"
                                    target="_blank"
                                    moz-do-not-send="true">ulexus@gmail.com</a>>
                                  wrote:<br>
                                  ><br>
                                  > Neither of my previous emails
                                  appear to be showing up.... third
                                  time's<br>
                                  > the charm?<br>
                                  ><br>
                                  > We had briefly discussed the idea
                                  of creating virtual context/dialplan<br>
                                  > to handle this.  The idea would
                                  be that a context and dialplan would<br>
                                  > be internally and automatically
                                  generated which would direct calls<br>
                                  > sent to that context directly to
                                  ARI.  Since the impetus for this<br>
                                  > feature was operational
                                  simplicity, not any kind of
                                  optimization of<br>
                                  > Asterisk itself, the idea of a
                                  virtual dialplan should work well and<br>
                                  > would seem to not cause much
                                  disruption or require much
                                  code-wrangling<br>
                                  > elsewhere.<br>
                                  ><br>
                                  > I see a few ways that this might
                                  be implemented (at the user level):<br>
                                  >  - Upon connecting an ARI
                                  application, the additional URL
                                  parameter<br>
                                  > "context" may be passed, which
                                  would create the virtual context and<br>
                                  > pass all calls to that context to
                                  the ARI app.<br>
                                  >  - Add an ARI REST API call which
                                  creates a virtual context/dialplan<br>
                                  > including, optionally, ARI
                                  parameters to be included with that
                                  call.<br>
                                  >  - Define an automatic naming
                                  scheme for virtual dialplans
                                  associated<br>
                                  > with ARI applications and have
                                  them generated automatically when an<br>
                                  > ARI application connects.  For
                                  instance, the ARI application named<br>
                                  > 'HOWDY' may have an
                                  automatically-generated context named<br>
                                  > 'ari_autocontext_HOWDY'.<br>
                                  >  - Define a single context (say,
                                  'ari_auto') whose _extensions_ map to<br>
                                  > the names of ARI applications.<br>
                                  ><br>
                                  > I am partial to the latter, since
                                  it seems to be the simplest, but the<br>
                                  > second has merit, too, since it
                                  allows any number of associations and<br>
                                  > additional execution parameters
                                  to be set.<br>
                                  ><br>
                                  > On Wed, Dec 12, 2018 at 11:22 AM
                                  Ben Ford <<a
                                    href="mailto:bford@digium.com"
                                    target="_blank"
                                    moz-do-not-send="true">bford@digium.com</a>>
                                  wrote:<br>
                                  > ><br>
                                  > > Hey all,<br>
                                  > ><br>
                                  > ><br>
                                  > > We’re looking into AstriCon
                                  feedback and one of the things we want
                                  to touch on is ARI --  specifically,
                                  the ability to not have to create an
                                  extensions.conf in order to dial into
                                  Stasis. Before we start working on
                                  this, we’d like some direction from
                                  the community on what people would be
                                  looking for. From a user perspective,
                                  how would you expect something like
                                  this to work? Where would you look for
                                  information on how to do this, or
                                  where it would be configured? Any
                                  feedback is welcome!<br>
                                  > ><br>
                                  > ><br>
                                  > > Ben<br>
                                  > ><br>
                                  > ><br>
                                  > > --<br>
                                  > > Benjamin Ford<br>
                                  > > Digium - A Sangoma Company |
                                  Software Engineer<br>
                                  > > 445 Jan Davis Drive NW -
                                  Huntsville, AL 35806 - US<br>
                                  > > Check us out at: <a
                                    href="https://digium.com"
                                    rel="noreferrer" target="_blank"
                                    moz-do-not-send="true">https://digium.com</a>
                                  · <a href="https://sangoma.com"
                                    rel="noreferrer" target="_blank"
                                    moz-do-not-send="true">https://sangoma.com</a><br>
                                  > ><br>
                                  > ><br>
                                  > > --<br>
                                  > >
                                  _____________________________________________________________________<br>
                                  > > -- Bandwidth and Colocation
                                  Provided by <a
                                    href="http://www.api-digital.com"
                                    rel="noreferrer" target="_blank"
                                    moz-do-not-send="true">http://www.api-digital.com</a>
                                  --<br>
                                  > ><br>
                                  > > asterisk-dev mailing list<br>
                                  > > To UNSUBSCRIBE or update
                                  options visit:<br>
                                  > >    <a
                                    href="http://lists.digium.com/mailman/listinfo/asterisk-dev"
                                    rel="noreferrer" target="_blank"
                                    moz-do-not-send="true">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>
                                  ><br>
                                  ><br>
                                  ><br>
                                  > --<br>
                                  > Seán C. McCord<br>
                                  > <a
                                    href="mailto:ulexus@gmail.com"
                                    target="_blank"
                                    moz-do-not-send="true">ulexus@gmail.com</a><br>
                                  > CyCore Systems<br>
                                  <br>
                                  <br>
                                  <br>
                                  -- <br>
                                  Seán C. McCord<br>
                                  <a href="mailto:ulexus@gmail.com"
                                    target="_blank"
                                    moz-do-not-send="true">ulexus@gmail.com</a><br>
                                  CyCore Systems<br>
                                  <br>
                                  -- <br>
_____________________________________________________________________<br>
                                  -- Bandwidth and Colocation Provided
                                  by <a
                                    href="http://www.api-digital.com"
                                    rel="noreferrer" target="_blank"
                                    moz-do-not-send="true">http://www.api-digital.com</a>
                                  --<br>
                                  <br>
                                  asterisk-dev mailing list<br>
                                  To UNSUBSCRIBE or update options
                                  visit:<br>
                                     <a
                                    href="http://lists.digium.com/mailman/listinfo/asterisk-dev"
                                    rel="noreferrer" target="_blank"
                                    moz-do-not-send="true">http://lists.digium.com/mailman/listinfo/asterisk-dev</a></blockquote>
                              </div>
                              -- <br>
_____________________________________________________________________<br>
                              -- Bandwidth and Colocation Provided by <a
                                href="http://www.api-digital.com"
                                rel="noreferrer" target="_blank"
                                moz-do-not-send="true">http://www.api-digital.com</a>
                              --<br>
                              <br>
                              asterisk-dev mailing list<br>
                              To UNSUBSCRIBE or update options visit:<br>
                                 <a
                                href="http://lists.digium.com/mailman/listinfo/asterisk-dev"
                                rel="noreferrer" target="_blank"
                                moz-do-not-send="true">http://lists.digium.com/mailman/listinfo/asterisk-dev</a></blockquote>
                          </div>
                          -- <br>
_____________________________________________________________________<br>
                          -- Bandwidth and Colocation Provided by <a
                            href="http://www.api-digital.com"
                            rel="noreferrer" target="_blank"
                            moz-do-not-send="true">http://www.api-digital.com</a>
                          --<br>
                          <br>
                          asterisk-dev mailing list<br>
                          To UNSUBSCRIBE or update options visit:<br>
                             <a
                            href="http://lists.digium.com/mailman/listinfo/asterisk-dev"
                            rel="noreferrer" target="_blank"
                            moz-do-not-send="true">http://lists.digium.com/mailman/listinfo/asterisk-dev</a></blockquote>
                      </div>
                      <br clear="all">
                      <div><br>
                      </div>
                      -- <br>
                      <div dir="ltr"
class="gmail-m_-2021898444249501240gmail-m_-2265218301832942099gmail-m_194086393980882135gmail-m_1910649027178139558gmail_signature">
                        <div dir="ltr">
                          <div dir="ltr" style="font-size:12.8px"><span
style="font-family:arial,helvetica,sans-serif"><b>Benjamin Ford</b></span><br>
                          </div>
                          <div dir="ltr" style="font-size:12.8px">
                            <div style="font-size:12.8px"><font size="1"
                                face="arial, helvetica, sans-serif">Digium
                                - A Sangoma Company | Software Engineer</font></div>
                            <div style="font-size:12.8px"><font size="1"
                                face="arial, helvetica, sans-serif"><a
href="https://maps.google.com/?q=445+Jan+Davis+Drive+NW+-+Huntsville,+AL+35806+-+US&entry=gmail&source=g"
                                  style="color:rgb(17,85,204)"
                                  target="_blank" moz-do-not-send="true">445
                                  Jan Davis Drive NW - Huntsville, AL
                                  35806 - US</a></font></div>
                            <div style="font-size:12.8px"><font size="1"
                                face="arial, helvetica, sans-serif">Check
                                us out at: <a href="https://digium.com/"
                                  style="color:rgb(17,85,204)"
                                  target="_blank" moz-do-not-send="true">https://digium.com</a> · <a
                                  href="https://sangoma.com/"
                                  style="color:rgb(17,85,204)"
                                  target="_blank" moz-do-not-send="true">https://sangoma.com</a></font></div>
                            <div style="font-size:12.8px"><br>
                            </div>
                            <div style="font-size:12.8px"><img
                                moz-do-not-send="true" width="96"
                                height="53"><br>
                            </div>
                          </div>
                        </div>
                      </div>
                      -- <br>
_____________________________________________________________________<br>
                      -- Bandwidth and Colocation Provided by <a
                        href="http://www.api-digital.com"
                        rel="noreferrer" target="_blank"
                        moz-do-not-send="true">http://www.api-digital.com</a>
                      --<br>
                      <br>
                      asterisk-dev mailing list<br>
                      To UNSUBSCRIBE or update options visit:<br>
                         <a
                        href="http://lists.digium.com/mailman/listinfo/asterisk-dev"
                        rel="noreferrer" target="_blank"
                        moz-do-not-send="true">http://lists.digium.com/mailman/listinfo/asterisk-dev</a></blockquote>
                  </div>
                  <br clear="all">
                  <div><br>
                  </div>
                  -- <br>
                  <div dir="ltr"
class="gmail-m_-2021898444249501240gmail-m_-2265218301832942099gmail-m_194086393980882135gmail_signature">Seán
                    C. McCord
                    <div><a href="mailto:ulexus@gmail.com"
                        target="_blank" moz-do-not-send="true">ulexus@gmail.com</a><br>
                      <div>CyCore Systems</div>
                    </div>
                  </div>
                  -- <br>
_____________________________________________________________________<br>
                  -- Bandwidth and Colocation Provided by <a
                    href="http://www.api-digital.com" rel="noreferrer"
                    target="_blank" moz-do-not-send="true">http://www.api-digital.com</a>
                  --<br>
                  <br>
                  asterisk-dev mailing list<br>
                  To UNSUBSCRIBE or update options visit:<br>
                     <a
                    href="http://lists.digium.com/mailman/listinfo/asterisk-dev"
                    rel="noreferrer" target="_blank"
                    moz-do-not-send="true">http://lists.digium.com/mailman/listinfo/asterisk-dev</a></blockquote>
              </div>
              <br clear="all">
              <div><br>
              </div>
              -- <br>
              <div dir="ltr"
class="gmail-m_-2021898444249501240gmail-m_-2265218301832942099gmail_signature">
                <div dir="ltr">
                  <div dir="ltr" style="font-size:12.8px"><span
                      style="font-family:arial,helvetica,sans-serif"><b>Benjamin
                        Ford</b></span><br>
                  </div>
                  <div dir="ltr" style="font-size:12.8px">
                    <div style="font-size:12.8px"><font size="1"
                        face="arial, helvetica, sans-serif">Digium - A
                        Sangoma Company | Software Engineer</font></div>
                    <div style="font-size:12.8px"><font size="1"
                        face="arial, helvetica, sans-serif"><a
href="https://maps.google.com/?q=445+Jan+Davis+Drive+NW+-+Huntsville,+AL+35806+-+US&entry=gmail&source=g"
                          style="color:rgb(17,85,204)" target="_blank"
                          moz-do-not-send="true">445 Jan Davis Drive NW
                          - Huntsville, AL 35806 - US</a></font></div>
                    <div style="font-size:12.8px"><font size="1"
                        face="arial, helvetica, sans-serif">Check us out
                        at: <a href="https://digium.com/"
                          style="color:rgb(17,85,204)" target="_blank"
                          moz-do-not-send="true">https://digium.com</a> · <a
                          href="https://sangoma.com/"
                          style="color:rgb(17,85,204)" target="_blank"
                          moz-do-not-send="true">https://sangoma.com</a></font></div>
                    <div style="font-size:12.8px"><br>
                    </div>
                    <div style="font-size:12.8px"><img
                        moz-do-not-send="true" width="96" height="53"><br>
                    </div>
                  </div>
                </div>
              </div>
              -- <br>
_____________________________________________________________________<br>
              -- Bandwidth and Colocation Provided by <a
                href="http://www.api-digital.com" rel="noreferrer"
                target="_blank" moz-do-not-send="true">http://www.api-digital.com</a>
              --<br>
              <br>
              asterisk-dev mailing list<br>
              To UNSUBSCRIBE or update options visit:<br>
                 <a
                href="http://lists.digium.com/mailman/listinfo/asterisk-dev"
                rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.digium.com/mailman/listinfo/asterisk-dev</a></blockquote>
          </div>
          <br clear="all">
          <div><br>
          </div>
          -- <br>
          <div dir="ltr"
            class="gmail-m_-2021898444249501240gmail_signature">Seán C.
            McCord
            <div><a href="mailto:ulexus@gmail.com" target="_blank"
                moz-do-not-send="true">ulexus@gmail.com</a><br>
              <div>CyCore Systems</div>
            </div>
          </div>
          -- <br>
_____________________________________________________________________<br>
          -- Bandwidth and Colocation Provided by <a
            href="http://www.api-digital.com" rel="noreferrer"
            target="_blank" moz-do-not-send="true">http://www.api-digital.com</a>
          --<br>
          <br>
          asterisk-dev mailing list<br>
          To UNSUBSCRIBE or update options visit:<br>
             <a
            href="http://lists.digium.com/mailman/listinfo/asterisk-dev"
            rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.digium.com/mailman/listinfo/asterisk-dev</a></blockquote>
      </div>
      <br clear="all">
      <div><br>
      </div>
      -- <br>
      <div dir="ltr" class="gmail_signature">
        <div dir="ltr">
          <div dir="ltr" style="font-size:12.8px"><span
              style="font-family:arial,helvetica,sans-serif"><b>Benjamin
                Ford</b></span><br>
          </div>
          <div dir="ltr" style="font-size:12.8px">
            <div style="font-size:12.8px"><font size="1" face="arial,
                helvetica, sans-serif">Digium - A Sangoma Company |
                Software Engineer</font></div>
            <div style="font-size:12.8px"><font size="1" face="arial,
                helvetica, sans-serif"><a
href="https://maps.google.com/?q=445+Jan+Davis+Drive+NW+-+Huntsville,+AL+35806+-+US&entry=gmail&source=g"
                  style="color:rgb(17,85,204)" target="_blank"
                  moz-do-not-send="true">445 Jan Davis Drive NW -
                  Huntsville, AL 35806 - US</a></font></div>
            <div style="font-size:12.8px"><font size="1" face="arial,
                helvetica, sans-serif">Check us out at: <a
                  href="https://digium.com/"
                  style="color:rgb(17,85,204)" target="_blank"
                  moz-do-not-send="true">https://digium.com</a> · <a
                  href="https://sangoma.com/"
                  style="color:rgb(17,85,204)" target="_blank"
                  moz-do-not-send="true">https://sangoma.com</a></font></div>
            <div style="font-size:12.8px"><br>
            </div>
            <div style="font-size:12.8px"><img
src="https://www.digium.com/sites/all/themes/poundkey/shared/images/digium/logo.png"
                moz-do-not-send="true" width="96" height="53"><br>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
    </blockquote>
  </body>
</html>