<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Thanks,<br>I asked you to execute the GoSub from the Originate action, because I need to pass some parameters.<br>First, I created a macro since I could pass the parameters from originate. But the macro's problem is it doesn't jump to the particular extension (for example: h extension). So, when you told me that GoSub could "replace" the Macro, I thought it could be called from the Originate...<br>Do you know if there is another way to pass some parameters to a context from the Originate?<br>Thank you!<br><br><br><div><p align="center"><font face="Verdana, Geneva, Arial, Sans-serif"><strong>
<hr>
</strong></font></p>
<p align="center"><font face="Verdana, Geneva, Arial, Sans-serif"><strong>Anahi Ludueña</strong></font></p>
<p align="center"> </p></div><br><hr id="stopSpelling">Date: Wed, 16 Sep 2009 10:27:26 -0500<br>From: mmolina@millenium.com.co<br>To: asterisk-users@lists.digium.com<br>Subject: Re: [asterisk-users] MeetMe in Macro<br><br>
Hi,<br>
<br>
The GoSub() application is intended for use in the dialplan, not to
call it from a Originate Action. What is your specific need? You can
Originate to a extension instead of an application an then if you need
to execute a subroutine, you can use GoSub() and Return() then you need
to on the called context.<br>
<br>
You can check
<a class="EC_moz-txt-link-freetext" href="http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+Gosub">http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+Gosub</a> but the
example using the same context is not very clear.<br>
<br>
A better example would be this:<br>
<br>
[incoming]<br>
exten => s,1,Answer()<br>
exten => s,n,Noop(one)<br>
exten => s,n,Noop(two)<br>
exten => s,n,GoSub(mysub,s,1)<br>
exten => s,n,Noop(I returned!)<br>
exten => s,n,Hangup<br>
<br>
[mysub]<br>
exten => s,1,Noop(So I'm at a subroutine)<br>
exten => s,n,Noop(I need to do special steps)<br>
exten => s,n,Playback(tt-monkeys)<br>
exten => s,n,Return()<br>
<br>
Cheers,<br>
<pre class="EC_moz-signature">-- <br>Ing. Miguel Molina<br>Grupo de Tecnología<br>Millenium Phone Center<br></pre>
<br>
Anahi Ludueña escribió:
<blockquote cite="mid:COL124-W7BF1D7F18C49EE10E500693E20@phx.gbl">
<style>
.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass body.EC_hmmessage
{font-size:10pt;font-family:Verdana;}
</style>Thanks Miguel, It was my mistake.<br>
So, my question is:<br>
if I want to call the GoSub application from
the Originate Action (using AMI), what I need to put in the context
parameter? The GoSub will jump to a special context.<br>
Thanks,<br>
<br>
<br>
<br>
<hr id="EC_stopSpelling">Date: Wed, 16 Sep 2009 09:34:31 -0500<br>
From: <a class="EC_moz-txt-link-abbreviated" href="mailto:mmolina@millenium.com.co">mmolina@millenium.com.co</a><br>
To: <a class="EC_moz-txt-link-abbreviated" href="mailto:asterisk-dev@lists.digium.com">asterisk-dev@lists.digium.com</a>; <a class="EC_moz-txt-link-abbreviated" href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a><br>
Subject: Re: [asterisk-dev] MeetMe in Macro<br>
<br><title></title>
Hi,<br>
<br>
I didn't notice on my first answer, but we are on the -dev list and
this is not related to asterisk code developing. I will answer you on
the -users list, so we can continue the discussion there.<br>
<br>
Cheers,<br>
<pre class="EC_EC_moz-signature">-- <br>Ing. Miguel Molina<br>Grupo de Tecnología<br>Millenium Phone Center<br> </pre>
</blockquote>
<pre class="EC_moz-signature"></pre><br /><hr />¿Quieres que tus amigos de Messenger sigan tus movimientos de Facebook? <a href='http://www.vivelive.com/feedfacebook' target='_new'> ¡Conéctalos ya!</a></body>
</html>