Call A Subroutine Via Originate?
Howdy everyone,
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.
I can’t seem to get the syntax right to call Gosub with Originate
Just testing with the command line I’ve been unable to make it work with any of these attempts:
originate PJSIP/johntest application Gosub sub-callout s,1
originate PJSIP/johntest application Gosub sub-callout(s,1)
originate PJSIP/johntest application Gosub (sub-callout,s,1)
What Syntax should I be using?
And if it helps I’ll be calling this via AMI over https.
Thanks!
One thought on - Call A Subroutine Via Originate?
use the macro construct and return from the macro