Thread: [Asterisk-java-users] place a call using agi
Brought to you by:
srt
From: chetherston m. <mil...@gm...> - 2008-05-07 20:05:40
|
Hello, For sure i'm losing something, because i'm trying to place a call using the agi, in phpagi i can do this just calling the Dial() command, how can a do the same thing using asterisk-java Thanks, Miles |
From: John W. <joh...@gm...> - 2008-05-07 20:46:21
|
You need to use the exec method. channel.exec("Dial","SIP/5551212@foo") On Wed, May 7, 2008 at 1:05 PM, chetherston miles <mil...@gm...> wrote: > Hello, > > For sure i'm losing something, because i'm trying to place a call using the > agi, in phpagi i can do this just calling the Dial() command, how can a do > the same thing using asterisk-java > > Thanks, > Miles > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > |
From: chetherston m. <mil...@gm...> - 2008-05-07 21:02:38
|
John, Thanks for you response, i need to do some operations when the Leg1 hangup in my tests i can do this when leg2 hangup (that seems the FastAGI do this for me) , how can i perform some operations after leg1 hangup ? Thanks On Wed, May 7, 2008 at 5:46 PM, John Wolthuis <joh...@gm...> wrote: > You need to use the exec method. > > channel.exec("Dial","SIP/5551212@foo") > > On Wed, May 7, 2008 at 1:05 PM, chetherston miles <mil...@gm...> > wrote: > > Hello, > > > > For sure i'm losing something, because i'm trying to place a call using > the > > agi, in phpagi i can do this just calling the Dial() command, how can a > do > > the same thing using asterisk-java > > > > Thanks, > > Miles > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > Don't miss this year's exciting event. There's still time to save $100. > > Use priority code J8TL2D2. > > > > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > > _______________________________________________ > > Asterisk-java-users mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |
From: chetherston m. <mil...@gm...> - 2008-05-07 21:21:23
|
Now i tried to change the extentions.conf to call using DeadAGI but i don't think that this is the rigth way to do it? On Wed, May 7, 2008 at 6:02 PM, chetherston miles <mil...@gm...> wrote: > John, > Thanks for you response, i need to do some operations when the Leg1 hangup > in my tests i can do this when leg2 hangup (that seems the FastAGI do this > for me) , how can i perform some operations after leg1 hangup ? > > Thanks > > > On Wed, May 7, 2008 at 5:46 PM, John Wolthuis <joh...@gm...> > wrote: > > > You need to use the exec method. > > > > channel.exec("Dial","SIP/5551212@foo") > > > > On Wed, May 7, 2008 at 1:05 PM, chetherston miles <mil...@gm...> > > wrote: > > > Hello, > > > > > > For sure i'm losing something, because i'm trying to place a call > > using the > > > agi, in phpagi i can do this just calling the Dial() command, how can > > a do > > > the same thing using asterisk-java > > > > > > Thanks, > > > Miles > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > > Don't miss this year's exciting event. There's still time to save > > $100. > > > Use priority code J8TL2D2. > > > > > > > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > > > _______________________________________________ > > > Asterisk-java-users mailing list > > > Ast...@li... > > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > Don't miss this year's exciting event. There's still time to save $100. > > Use priority code J8TL2D2. > > > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > > _______________________________________________ > > Asterisk-java-users mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > |
From: John W. <joh...@gm...> - 2008-05-08 00:24:45
|
I'm not certain how to do that. The second leg that is created when you use the dial command doesn't have an AGI thread running of its own, so when the first leg hangs up, thats that for both legs. You could try to initiate a manager Redirect command on the second leg and send it to a context with that will start a new AGI for that channel, prior to to the first leg hanging up. On Wed, May 7, 2008 at 2:21 PM, chetherston miles <mil...@gm...> wrote: > Now i tried to change the extentions.conf to call using DeadAGI but i don't > think that this is the rigth way to do it? > > > On Wed, May 7, 2008 at 6:02 PM, chetherston miles <mil...@gm...> > wrote: > > > John, > > > > > > Thanks for you response, i need to do some operations when the Leg1 hangup > in my tests i can do this when leg2 hangup (that seems the FastAGI do this > for me) , how can i perform some operations after leg1 hangup ? > > > > > > Thanks > > > > > > > > > > > > On Wed, May 7, 2008 at 5:46 PM, John Wolthuis <joh...@gm...> > wrote: > > > > > You need to use the exec method. > > > > > > channel.exec("Dial","SIP/5551212@foo") > > > > > > > > > > > > > > > On Wed, May 7, 2008 at 1:05 PM, chetherston miles <mil...@gm...> > wrote: > > > > Hello, > > > > > > > > For sure i'm losing something, because i'm trying to place a call > using the > > > > agi, in phpagi i can do this just calling the Dial() command, how can > a do > > > > the same thing using asterisk-java > > > > > > > > Thanks, > > > > Miles > > > > > ------------------------------------------------------------------------- > > > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > > > Don't miss this year's exciting event. There's still time to save > $100. > > > > Use priority code J8TL2D2. > > > > > > > > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > > > > _______________________________________________ > > > > Asterisk-java-users mailing list > > > > Ast...@li... > > > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > > Don't miss this year's exciting event. There's still time to save $100. > > > Use priority code J8TL2D2. > > > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > > > _______________________________________________ > > > Asterisk-java-users mailing list > > > Ast...@li... > > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > |
From: Stefan R. <ste...@re...> - 2008-05-08 00:30:37
Attachments:
signature.asc
|
John Wolthuis wrote: > I'm not certain how to do that. The second leg that is created when > you use the dial command doesn't have an AGI thread running of its > own, so when the first leg hangs up, thats that for both legs. You > could try to initiate a manager Redirect command on the second leg and > send it to a context with that will start a new AGI for that channel, > prior to to the first leg hanging up. Yes or you can Dial() to an extension (Local/123@context) that itself is mapped to another AGI. =Stefan -- reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: ste...@re... Jabber: ste...@re... WWW: http://www.reucon.com Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: John W. <joh...@gm...> - 2008-05-08 00:49:08
|
Ah, I've not used local channels before. So I have an AGI dial Local/123@context. That context starts a new AGI that happens to dials out to a 3rd party. If the first leg hangs up, does the 3rd party channel continue in its own AGI? I would have guessed that it would cause the dial applications to return and the 3rd party channel would get hung up on. On Wed, May 7, 2008 at 5:30 PM, Stefan Reuter <ste...@re...> wrote: > John Wolthuis wrote: > > I'm not certain how to do that. The second leg that is created when > > you use the dial command doesn't have an AGI thread running of its > > own, so when the first leg hangs up, thats that for both legs. You > > could try to initiate a manager Redirect command on the second leg and > > send it to a context with that will start a new AGI for that channel, > > prior to to the first leg hanging up. > > Yes or you can Dial() to an extension (Local/123@context) that itself is > mapped to another AGI. > > =Stefan > > -- > reuter network consulting > Neusser Str. 110 > 50760 Koeln > Germany > Telefon: +49 221 1305699-0 > Telefax: +49 221 1305699-90 > E-Mail: ste...@re... > Jabber: ste...@re... > WWW: http://www.reucon.com > > Steuernummern 215/5140/1791 USt-IdNr. DE220701760 > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > |
From: Stefan R. <ste...@re...> - 2008-05-08 00:57:55
Attachments:
signature.asc
|
John Wolthuis wrote: > Ah, I've not used local channels before. So I have an AGI dial > Local/123@context. That context starts a new AGI that happens to > dials out to a 3rd party. If the first leg hangs up, does the 3rd > party channel continue in its own AGI? I would have guessed that it > would cause the dial applications to return and the 3rd party channel > would get hung up on. Yes the channel is hung up but that doesnt mean you FastAGI script gets killed. Just make sure you don't touch the AgiChannel any more or catch the exceptions. =Stefan -- reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: ste...@re... Jabber: ste...@re... WWW: http://www.reucon.com Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: chetherston m. <mil...@gm...> - 2008-05-08 13:30:30
|
I used the DeadAGI now to call the FastAGI and seems to work fine? Maybe this could be the very very wrong choice? Thanks On Wed, May 7, 2008 at 9:57 PM, Stefan Reuter <ste...@re...> wrote: > John Wolthuis wrote: > > Ah, I've not used local channels before. So I have an AGI dial > > Local/123@context. That context starts a new AGI that happens to > > dials out to a 3rd party. If the first leg hangs up, does the 3rd > > party channel continue in its own AGI? I would have guessed that it > > would cause the dial applications to return and the 3rd party channel > > would get hung up on. > > Yes the channel is hung up but that doesnt mean you FastAGI script gets > killed. Just make sure you don't touch the AgiChannel any more or catch > the exceptions. > > =Stefan > > -- > reuter network consulting > Neusser Str. 110 > 50760 Koeln > Germany > Telefon: +49 221 1305699-0 > Telefax: +49 221 1305699-90 > E-Mail: ste...@re... > Jabber: ste...@re... > WWW: http://www.reucon.com > > Steuernummern 215/5140/1791 USt-IdNr. DE220701760 > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > |