<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">use the macro construct and return from
      the macro<br>
      <br>
      On 5/3/16 2:24 PM, John Kiniston wrote:<br>
    </div>
    <blockquote
cite="mid:CAFJQOGf1kx+yfP+0xk1j8kLmqWTNXQ5r_zkrVusPb4VFUQ67vg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>
                  <div>
                    <div>Howdy everyone,<br>
                      <br>
                    </div>
                    I'm writing a little click to dial type tool and
                    I've run into a snag where my Originate command
                    needs to call a Sub routine to do a database lookup
                    and some other stuff.<br>
                    <br>
                  </div>
                  I can't seem to get the syntax right to call Gosub
                  with Originate<br>
                  <br>
                </div>
                Just testing with the command line I've been unable to
                make it work with any of these attempts:<br>
                <br>
                originate PJSIP/johntest application Gosub sub-callout
                s,1<br>
                <br>
                originate PJSIP/johntest application Gosub
                sub-callout(s,1)<br>
                <br>
              </div>
              originate PJSIP/johntest application Gosub
              (sub-callout,s,1)<br>
              <br>
            </div>
            What Syntax should I be using?<br>
            <br>
          </div>
          And if it helps I'll be calling this via AMI over https.<br>
          <br>
        </div>
        Thanks!<br clear="all">
        <div>
          <div>
            <div>
              <div>
                <div>
                  <div>
                    <div>
                      <div>
                        <div><br>
                          -- <br>
                          <div class="gmail_signature">A human being
                            should be able to change a diaper, plan an
                            invasion, butcher a hog, conn a ship, design
                            a building, write a sonnet, balance
                            accounts, build a wall, set a bone, comfort
                            the dying, take orders, give orders,
                            cooperate, act alone, solve equations,
                            analyze a new problem, pitch manure, program
                            a computer, cook a tasty meal, fight
                            efficiently, die gallantly. Specialization
                            is for insects.<br>
                            ---Heinlein</div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>