Re: [asterisk-users] MeetMe in Macro

2009-09-23 Thread Juan Cardoza
I need the same information, did you find that information Anahi???

Best regards

Juan Cardoza

 

De: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] En nombre de Anahi Ludueña
Enviado el: Miércoles, 16 de Septiembre de 2009 09:49 a.m.
Para: asterisk-users@lists.digium.com
Asunto: [asterisk-users] MeetMe in Macro

 

Thanks Miguel, It was my mistake.
So, my question is:
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.
Thanks,




  _  

Date: Wed, 16 Sep 2009 09:34:31 -0500
From: mmol...@millenium.com.co
To: asterisk-...@lists.digium.com; asterisk-users@lists.digium.com
Subject: Re: [asterisk-dev] MeetMe in Macro

Hi,

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.

Cheers,

-- 


Ing. Miguel Molina


Grupo de Tecnología


Millenium Phone Center





  _  

¿Quieres que tus amigos de Messenger sigan tus movimientos de Facebook?
¡Conéctalos ya! http://www.vivelive.com/feedfacebook 



Teleperformance values: Integrity - Respect - Professionalism - Innovation - 
Commitment

The information contained in this communication is privileged and confidential. 
 The content is intended only for the use of the individual or entity named 
above. If the reader of this message is not the intended recipient, you are 
hereby notified that any dissemination, distribution or copying of this 
communication is strictly prohibited.  If you have received this communication 
in error, please notify me immediately by telephone or e-mail, and delete this 
message from your systems.
Please consider the environmental impact of needlessly printing this e-mail.___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] MeetMe in Macro

2009-09-23 Thread Danny Nicholas
You can “go to “ any context from AMI by using Context: context, priority: 1

 

 

  _  

From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Juan Cardoza
Sent: Wednesday, September 23, 2009 10:10 AM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: Re: [asterisk-users] MeetMe in Macro

 

I need the same information, did you find that information Anahi???

Best regards

Juan Cardoza

 

De: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] En nombre de Anahi Ludueña
Enviado el: Miércoles, 16 de Septiembre de 2009 09:49 a.m.
Para: asterisk-users@lists.digium.com
Asunto: [asterisk-users] MeetMe in Macro

 

Thanks Miguel, It was my mistake.
So, my question is:
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.
Thanks,



  _  

Date: Wed, 16 Sep 2009 09:34:31 -0500
From: mmol...@millenium.com.co
To: asterisk-...@lists.digium.com; asterisk-users@lists.digium.com
Subject: Re: [asterisk-dev] MeetMe in Macro

Hi,

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.

Cheers,

-- 






Ing. Miguel Molina






Grupo de Tecnología






Millenium Phone Center

 

  _  

¿Quieres que tus amigos de Messenger sigan tus movimientos de Facebook?
¡Conéctalos ya! http://www.vivelive.com/feedfacebook 


Teleperformance values: Integrity - Respect - Professionalism - Innovation –
Commitment 

The information contained in this communication is privileged and
confidential.  The content is intended only for the use of the individual or
entity named above. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited.  If you have received
this communication in error, please notify me immediately by telephone or
e-mail, and delete this message from your systems. 
  http://webmail.tpmex.com/users/imagenes/Pictures/earth.png Please
consider the environmental impact of needlessly printing this e-mail. 

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] MeetMe in Macro

2009-09-23 Thread Anahi Ludueña

Hi Juan, I didn't use the GoSub application, I put the name of the context in 
the Originate and the variables and their values in the Variable field.
See http://www.voip-info.org/wiki/view/Asterisk+Manager+API+Action+Originate.
Good luck!






Anahi Ludueña
 From: jcard...@tpmex.com
To: asterisk-users@lists.digium.com
Date: Wed, 23 Sep 2009 10:09:52 -0500
Subject: Re: [asterisk-users] MeetMe in Macro




















I need the same information, did you find that information
Anahi???

Best regards

Juan Cardoza

 





De:
asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] En nombre de Anahi
Ludueña

Enviado el: Miércoles, 16 de Septiembre de 2009 09:49 a.m.

Para: asterisk-users@lists.digium.com

Asunto: [asterisk-users] MeetMe in Macro





 

Thanks Miguel, It was my mistake.

So, my question is:

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.

Thanks,













Date:
Wed, 16 Sep 2009 09:34:31 -0500

From: mmol...@millenium.com.co

To: asterisk-...@lists.digium.com; asterisk-users@lists.digium.com

Subject: Re: [asterisk-dev] MeetMe in Macro



Hi,



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.



Cheers,

-- 

Ing. Miguel Molina

Grupo de Tecnología

Millenium Phone Center













¿Quieres
que tus amigos de Messenger sigan tus movimientos de Facebook? ¡Conéctalos ya!


































Teleperformance values:





 





Integrity - Respect - Professionalism - Innovation – Commitment







The information

contained in this communication is privileged and confidential.  The

content is intended only for the use of the individual or entity named above.

If the reader of this message is not the intended recipient, you are hereby

notified that any dissemination, distribution or copying of this communication

is strictly prohibited.  If you have received this communication in error,

please notify me immediately by telephone or e-mail, and delete this message

from your systems. 










 

 Please consider the

environmental impact of needlessly printing this e-mail. 

  
_
Descubre todas las formas en que puedes estar en contacto con amigos y 
familiares.
http://www.microsoft.com/windows/windowslive/default.aspx___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] MeetMe in Macro

2009-09-16 Thread Anahi Ludueña

Thanks Miguel, It was my mistake.
So, my question is:
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.
Thanks,



Date: Wed, 16 Sep 2009 09:34:31 -0500
From: mmol...@millenium.com.co
To: asterisk-...@lists.digium.com; asterisk-users@lists.digium.com
Subject: Re: [asterisk-dev] MeetMe in Macro






  
  


Hi,



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.



Cheers,

-- 
Ing. Miguel Molina
Grupo de Tecnología
Millenium Phone Center




_
Hay tantos ordenadores como personas. ¡Descubre ahora cuál eres tú!
http://www.quepceres.com/___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] MeetMe in Macro

2009-09-16 Thread Miguel Molina

Hi,

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.


You can check 
http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+Gosub but the 
example using the same context is not very clear.


A better example would be this:

[incoming]
exten = s,1,Answer()
exten = s,n,Noop(one)
exten = s,n,Noop(two)
exten = s,n,GoSub(mysub,s,1)
exten = s,n,Noop(I returned!)
exten = s,n,Hangup

[mysub]
exten = s,1,Noop(So I'm at a subroutine)
exten = s,n,Noop(I need to do special steps)
exten = s,n,Playback(tt-monkeys)
exten = s,n,Return()

Cheers,

--
Ing. Miguel Molina
Grupo de Tecnología
Millenium Phone Center


Anahi Ludueña escribió:

Thanks Miguel, It was my mistake.
So, my question is:
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.

Thanks,




Date: Wed, 16 Sep 2009 09:34:31 -0500
From: mmol...@millenium.com.co
To: asterisk-...@lists.digium.com; asterisk-users@lists.digium.com
Subject: Re: [asterisk-dev] MeetMe in Macro

Hi,

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.


Cheers,
--
Ing. Miguel Molina
Grupo de Tecnología
Millenium Phone Center
  


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] MeetMe in Macro

2009-09-16 Thread Anahi Ludueña

Thanks,
I asked you to execute the GoSub from the Originate action, because I need to 
pass some parameters.
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...
Do you know if there is another way to pass some parameters to a context from 
the Originate?
Thank you!





Anahi Ludueña
 
Date: Wed, 16 Sep 2009 10:27:26 -0500
From: mmol...@millenium.com.co
To: asterisk-users@lists.digium.com
Subject: Re: [asterisk-users] MeetMe in Macro






  


Hi,



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.



You can check
http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+Gosub but the
example using the same context is not very clear.



A better example would be this:



[incoming]

exten = s,1,Answer()

exten = s,n,Noop(one)

exten = s,n,Noop(two)

exten = s,n,GoSub(mysub,s,1)

exten = s,n,Noop(I returned!)

exten = s,n,Hangup



[mysub]

exten = s,1,Noop(So I'm at a subroutine)

exten = s,n,Noop(I need to do special steps)

exten = s,n,Playback(tt-monkeys)

exten = s,n,Return()



Cheers,

-- 
Ing. Miguel Molina
Grupo de Tecnología
Millenium Phone Center



Anahi Ludueña escribió:

  Thanks Miguel, It was my mistake.

So, my question is:

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.

Thanks,

  

  

  

  Date: Wed, 16 Sep 2009 09:34:31 -0500

From: mmol...@millenium.com.co

To: asterisk-...@lists.digium.com; asterisk-users@lists.digium.com

Subject: Re: [asterisk-dev] MeetMe in Macro

  

  
Hi,

  

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.

  

Cheers,

  -- 
Ing. Miguel Molina
Grupo de Tecnología
Millenium Phone Center
  


_
Hay tantos ordenadores como personas. ¡Descubre ahora cuál eres tú!
http://www.quepceres.com/___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] MeetMe in Macro

2009-09-16 Thread Miguel Molina
You can pass variables in the Originate Action, see 
http://www.voip-info.org/wiki/view/Asterisk+Manager+API+Action+Originate.


Taken from there:

*Variable*: Channels variables to set (max 32). Variables will be set 
for both channels (local and connected).



 Example(Placing a call from a SIP channel to an extension, this
 will cause the outside call not to be placed until the SIP channel
 has picked up):


Action: Originate
Channel: SIP/101test
Context: default
Exten: 8135551212
Priority: 1
Callerid: 3125551212
Timeout: 3
*Variable: var1=23|var2=24|var3=25*
ActionID: ABC45678901234567890

That variables to send in the Originate action will become channel 
variables that can be retrieved on the context where the call goes. You 
can check that the variables exist on the context when the call is 
answered, for example:


[default]
exten = 8135551212,1,Noop(var1 is ${var1})
exten = 8135551212,n,Noop(var2 is ${var2})
exten = 8135551212,n,Noop(var3 is ${var3})
...

and so on... with no need to call Macro() or Gosub().

Cheers,

--
Ing. Miguel Molina
Grupo de Tecnología
Millenium Phone Center


Anahi Ludueña escribió:

Thanks,
I asked you to execute the GoSub from the Originate action, because I 
need to pass some parameters.
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...
Do you know if there is another way to pass some parameters to a 
context from the Originate?

Thank you!


*

*

*Anahi Ludueña*

 




Date: Wed, 16 Sep 2009 10:27:26 -0500
From: mmol...@millenium.com.co
To: asterisk-users@lists.digium.com
Subject: Re: [asterisk-users] MeetMe in Macro

Hi,

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.


You can check 
http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+Gosub but 
the example using the same context is not very clear.


A better example would be this:

[incoming]
exten = s,1,Answer()
exten = s,n,Noop(one)
exten = s,n,Noop(two)
exten = s,n,GoSub(mysub,s,1)
exten = s,n,Noop(I returned!)
exten = s,n,Hangup

[mysub]
exten = s,1,Noop(So I'm at a subroutine)
exten = s,n,Noop(I need to do special steps)
exten = s,n,Playback(tt-monkeys)
exten = s,n,Return()

Cheers,
--
Ing. Miguel Molina
Grupo de Tecnología
Millenium Phone Center
  


Anahi Ludueña escribió:

Thanks Miguel, It was my mistake.
So, my question is:
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.
Thanks,




Date: Wed, 16 Sep 2009 09:34:31 -0500
From: mmol...@millenium.com.co mailto:mmol...@millenium.com.co
To: asterisk-...@lists.digium.com
mailto:asterisk-...@lists.digium.com;
asterisk-users@lists.digium.com
mailto:asterisk-users@lists.digium.com
Subject: Re: [asterisk-dev] MeetMe in Macro

Hi,

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.

Cheers,

-- 
Ing. Miguel Molina

Grupo de Tecnología
Millenium Phone Center
  

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users