This list is closed, nobody may subscribe to it.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(13) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
(3) |
Nov
|
Dec
|
2006 |
Jan
(6) |
Feb
|
Mar
(5) |
Apr
(3) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(9) |
Nov
(1) |
Dec
|
2007 |
Jan
(3) |
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
(5) |
Jul
|
Aug
|
Sep
(4) |
Oct
|
Nov
|
Dec
|
2008 |
Jan
|
Feb
|
Mar
|
Apr
(25) |
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
2012 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(8) |
Dec
|
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
(4) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
(4) |
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2016 |
Jan
|
Feb
|
Mar
(4) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: FERNANDO V. <fvi...@ya...> - 2008-04-13 03:41:40
|
Hello List. It is possible using manager.py obtain the duration of the call in real time while the user talks? Any example or idea. Thanks Fernando Villarroel N. Chile. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Tito G. <tit...@gm...> - 2008-04-13 01:59:23
|
Hi roach... Please explain to me... I've done anything wrong? Regards, On Sat, Apr 12, 2008 at 10:22 PM, roach <roa...@ho...> wrote: > nice try. > We know what you are trying to do. > > Respond to me, > and I'll explain. > > > > ----- Original Message ----- > *From:* Tito Garrido <tit...@gm...> > *To:* pys...@li... > *Sent:* Saturday, April 12, 2008 3:35 PM > *Subject:* [Pyst-users] Hi! Anybody here? > > Hi everybody! > > I'm from Brazil and I'm using pyst to make a XML-RPC interface for > Asterisk. It will be my project to graduate in Computer Science... > So.. this project is still active? I had read the archive and the last > message is at Sep 2007. :( > > I would like some information about the project, principally about the > interface with Manager. > > Thanks! > > Tito Garrido > > > > -- > Linux User #387870 > ____ > _/_õ|__| > º[ .-.___.-._| . . . . > _(o).__(o).:_____ > > ------------------------------ > > ------------------------------------------------------------------------- > 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 > > ------------------------------ > > _______________________________________________ > Pyst-users mailing list > Pys...@li... > https://lists.sourceforge.net/lists/listinfo/pyst-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 > _______________________________________________ > Pyst-users mailing list > Pys...@li... > https://lists.sourceforge.net/lists/listinfo/pyst-users > > -- Linux User #387870 ____ _/_õ|__| º[ .-.___.-._| . . . . _(o).__(o).:_____ |
From: roach <roa...@ho...> - 2008-04-12 23:18:43
|
nice try. We know what you are trying to do. Respond to me, and I'll explain. ----- Original Message ----- From: Tito Garrido To: pys...@li... Sent: Saturday, April 12, 2008 3:35 PM Subject: [Pyst-users] Hi! Anybody here? Hi everybody! I'm from Brazil and I'm using pyst to make a XML-RPC interface for Asterisk. It will be my project to graduate in Computer Science... So.. this project is still active? I had read the archive and the last message is at Sep 2007. :( I would like some information about the project, principally about the interface with Manager. Thanks! Tito Garrido -- Linux User #387870 ____ _/_õ|__| º[ .-.___.-._| . . . . _(o).__(o).:_____ ------------------------------------------------------------------------------ ------------------------------------------------------------------------- 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 ------------------------------------------------------------------------------ _______________________________________________ Pyst-users mailing list Pys...@li... https://lists.sourceforge.net/lists/listinfo/pyst-users |
From: Tito G. <tit...@gm...> - 2008-04-12 22:35:05
|
Hi everybody! I'm from Brazil and I'm using pyst to make a XML-RPC interface for Asterisk. It will be my project to graduate in Computer Science... So.. this project is still active? I had read the archive and the last message is at Sep 2007. :( I would like some information about the project, principally about the interface with Manager. Thanks! Tito Garrido -- Linux User #387870 ____ _/_õ|__| º[ .-.___.-._| . . . . _(o).__(o).:_____ |
From: Matthew N. <mni...@di...> - 2007-09-17 21:47:46
|
Jan Müller wrote: > Matt, > > thanks for your feedback. Like I've said, just quick and dirty. At least > to my knowledge (searching the web for a day), so far, there are close > to zero examples for the usage of pyst, so I meant to contribute a > "how-to find back an event associated to an action" (identified by an > action_id), and my next step would indeed have been to implement my own > Action class with, e.g., a method events(). > > The very same structure, as far as I can deduce from a glimpse on astxx, > is one of the main improvements in the class hierarchy (taken aside the > more robust reduction of threads), so this looks quite promising, and I > guess I prefer to live with my self-knitted solution as is, until you do > better. Anyway, I would like to contribute to the testing, if you are > interested and I find the time. Ok, keep an eye on the mailing list for information on pyst 0.3, I can tell you now that there are no immediate plans to develop it, but I will work on it when I have some time and/or I have a pressing need for it. > I share your opinion about the importance of a versatile and robust > low-level functionality, nevertheless I think there should be a medium > level module, too, which reflects the spectrum of Manager actions, > including also database functions. For example, I don't get what makes > mailbox_count or setvar, say, (and even originate) more low-level than > database access? Glad to see you understand my point of view. I agree that there is a place for higher level functionality, but I don't think that should be included in the core functionality. Maybe there should be a pyst-aux lib or something. As far as mailbox_count and setvar, these manager actions are not defined in manager.c of the asterisk source, they are added by app_voicemail and db.c respectively. This is perhaps why they are not included (I didn't write the first version of pyst, but that is why they are not in astxx::manager). I am not completely opposed to having those commands included in the command set, although with pyst 0.3 it will be simple for users of the library to include custom actions (including your previous event handling action). -- Matthew Nicholson Digium |
From: <jpm...@gm...> - 2007-09-17 21:30:40
|
Matt, thanks for your feedback. Like I've said, just quick and dirty. At least to my knowledge (searching the web for a day), so far, there are close to zero examples for the usage of pyst, so I meant to contribute a "how-to find back an event associated to an action" (identified by an action_id), and my next step would indeed have been to implement my own Action class with, e.g., a method events(). The very same structure, as far as I can deduce from a glimpse on astxx, is one of the main improvements in the class hierarchy (taken aside the more robust reduction of threads), so this looks quite promising, and I guess I prefer to live with my self-knitted solution as is, until you do better. Anyway, I would like to contribute to the testing, if you are interested and I find the time. I share your opinion about the importance of a versatile and robust low-level functionality, nevertheless I think there should be a medium level module, too, which reflects the spectrum of Manager actions, including also database functions. For example, I don't get what makes mailbox_count or setvar, say, (and even originate) more low-level than database access? Matthew Nicholson wrote: > Jan, > > I don't think using self.command directly is the correct way to > implement this feature. Also I don't think automatically handling > events for the user is the right way to do it either. > > I think pyst should be fairly low level and only provide an convent > interface to AGI and the Manager. Also on the flip side, pyst should > not be designed to prevent the user from building a layer of abstraction > on top of it either. > > Either way, pyst 0.3 will make it easier to do these things in a more > straightforward manner. No ETA on that though, for an idea of what it > might look like, check out astxx (http://matt-land.com/astxx). > > |
From: Matthew N. <mni...@di...> - 2007-09-17 15:39:27
|
Jan, I don't think using self.command directly is the correct way to implement this feature. Also I don't think automatically handling events for the user is the right way to do it either. I think pyst should be fairly low level and only provide an convent interface to AGI and the Manager. Also on the flip side, pyst should not be designed to prevent the user from building a layer of abstraction on top of it either. Either way, pyst 0.3 will make it easier to do these things in a more straightforward manner. No ETA on that though, for an idea of what it might look like, check out astxx (http://matt-land.com/astxx). Jan Müller wrote: > hi, > > i'm a newbie to python but i've been working with asterisk since quite > some time. today i've written some functions for the Manager class to > implement database access. maybe you're interested... > > def DBGet(self, family, key): > response = self.command('database get %s %s' % (family, key)) > if response.has_header('Value'): > return response['Value'] > else: > raise ManagerException('Database entry not found') > > def DBPut(self, family, key, value): > response = self.command('database put %s %s %s' % (family, key, > value)) > if 'Updated database successfully' in response.data: > return True > else: > raise ManagerException('Database update was not successful') > > def DBDel(self, family, key): > response = self.command('database del %s %s' % (family, key)) > if 'Database entry removed' in response.data: > return True > if 'Database entry does not exist.' in response.data: > raise ManagerException('Database entry does not exist.') > else: > raise ManagerException('Database update was not successful') > > def DBDelTree(self, family): > response = self.command('database deltree %s' % family) > if 'Database entries removed.' in response.data: > return True > else: > raise ManagerException('Database update was not successful') > > these functions should be pretty much self-explaining. like i've said, > probably quite primitive, but it's working. i didn't use the "Action: > DBGet" way because event handling is less compact than using the CLI > commands. anyway, i also wrote something in that direction in order to > understand event handling... > > # def DBGet(self, family, key): > # """Return a value from the Asterisk database""" > # def handle_DBGetResponse(event, manager): > # returned_values[event.get_action_id()] = > event.get_header('Val') > # > # returned_values = {} > # self.register_event('DBGetResponse', handle_DBGetResponse) > # response = self.send_action({'Action':'DBGet', 'Family':family, > 'Key':key}) > # if response['Response'] == 'Error': > # raise ManagerException(response['Message']) > # action_id = response['ActionID'] > # while action_id not in returned_values: > # pass > # self.unregister_event('DBGetResponse', handle_DBGetResponse) > # > # return returned_values[action_id] > > this function includes an event handler to which it subscribes in order > to fetch the database value. in the while loop, it waits for a value to > be returned. > > i haven't implemented timeouts so far. please let me know your opinion. > > regards j. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Pyst-users mailing list > Pys...@li... > https://lists.sourceforge.net/lists/listinfo/pyst-users -- Matthew Nicholson Digium |
From: <jpm...@gm...> - 2007-09-16 19:41:16
|
hi, i'm a newbie to python but i've been working with asterisk since quite some time. today i've written some functions for the Manager class to implement database access. maybe you're interested... def DBGet(self, family, key): response = self.command('database get %s %s' % (family, key)) if response.has_header('Value'): return response['Value'] else: raise ManagerException('Database entry not found') def DBPut(self, family, key, value): response = self.command('database put %s %s %s' % (family, key, value)) if 'Updated database successfully' in response.data: return True else: raise ManagerException('Database update was not successful') def DBDel(self, family, key): response = self.command('database del %s %s' % (family, key)) if 'Database entry removed' in response.data: return True if 'Database entry does not exist.' in response.data: raise ManagerException('Database entry does not exist.') else: raise ManagerException('Database update was not successful') def DBDelTree(self, family): response = self.command('database deltree %s' % family) if 'Database entries removed.' in response.data: return True else: raise ManagerException('Database update was not successful') these functions should be pretty much self-explaining. like i've said, probably quite primitive, but it's working. i didn't use the "Action: DBGet" way because event handling is less compact than using the CLI commands. anyway, i also wrote something in that direction in order to understand event handling... # def DBGet(self, family, key): # """Return a value from the Asterisk database""" # def handle_DBGetResponse(event, manager): # returned_values[event.get_action_id()] = event.get_header('Val') # # returned_values = {} # self.register_event('DBGetResponse', handle_DBGetResponse) # response = self.send_action({'Action':'DBGet', 'Family':family, 'Key':key}) # if response['Response'] == 'Error': # raise ManagerException(response['Message']) # action_id = response['ActionID'] # while action_id not in returned_values: # pass # self.unregister_event('DBGetResponse', handle_DBGetResponse) # # return returned_values[action_id] this function includes an event handler to which it subscribes in order to fetch the database value. in the while loop, it waits for a value to be returned. i haven't implemented timeouts so far. please let me know your opinion. regards j. |
From: FERNANDO V. <fvi...@ya...> - 2007-06-05 20:25:26
|
Perfectly, thanks Matthew for your answer, I have solved the problem. Greeings. Fernando Villarroel --- Matthew Nicholson <mni...@di...> wrote: > You can us the SIPCHANINFO and SIPPEER dialplan > functions to get the info: > > agi.get_variable("SIPCHANINFO(recvip)") > > FERNANDO VILLARROEL wrote: > > Hello Matthew: > > > > I need to know the IP that receipt in my Asterisk > for > > an incoming call? > > > > It is possible using pyst ? > > > > > > I hope you understand to me . > > > > Greetings. > > > > Fernando Villarroel Noriel > > Chillan-Chile. > > > > > > --- Matthew Nicholson <mni...@di...> > wrote: > > > >> Are you asking how you can determine the IP > address > >> that a call you > >> originated goes to? > >> > >> FERNANDO VILLARROEL wrote: > >>> Hello I use pyst and python to control the calls > >> of > >>> asterisk. > >>> > >>> I want to know as I can recover the IP I number > >> that > >>> it originates the call? > >>> > >>> Thanks > >>> > >>> Fernando Villarroel Noriel. > >>> > >>> > >>> > >>> > > > ____________________________________________________________________________________ > >>> Food fight? Enjoy some healthy debate > >>> in the Yahoo! Answers Food & Drink Q&A. > >>> > > > http://answers.yahoo.com/dir/?link=list&sid=396545367 > >>> > > > ------------------------------------------------------------------------- > >>> This SF.net email is sponsored by DB2 Express > >>> Download DB2 Express C - the FREE version of DB2 > >> express and take > >>> control of your XML. No limits. Just data. Click > >> to get it now. > >>> http://sourceforge.net/powerbar/db2/ > >>> _______________________________________________ > >>> Pyst-users mailing list > >>> Pys...@li... > >>> > > > https://lists.sourceforge.net/lists/listinfo/pyst-users > >> -- > >> Matthew Nicholson > >> Digium > >> > >> > > > ------------------------------------------------------------------------- > >> This SF.net email is sponsored by DB2 Express > >> Download DB2 Express C - the FREE version of DB2 > >> express and take > >> control of your XML. No limits. Just data. Click > to > >> get it now. > >> http://sourceforge.net/powerbar/db2/ > >> _______________________________________________ > >> Pyst-users mailing list > >> Pys...@li... > >> > > > https://lists.sourceforge.net/lists/listinfo/pyst-users > > > > > > > > > > > ____________________________________________________________________________________ > > Choose the right car based on your needs. Check > out Yahoo! Autos new Car Finder tool. > > http://autos.yahoo.com/carfinder/ > > -- > Matthew Nicholson > Digium > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 > express and take > control of your XML. No limits. Just data. Click to > get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Pyst-users mailing list > Pys...@li... > https://lists.sourceforge.net/lists/listinfo/pyst-users > ____________________________________________________________________________________ Need a vacation? Get great deals to amazing places on Yahoo! Travel. http://travel.yahoo.com/ |
From: Matthew N. <mni...@di...> - 2007-06-05 15:58:43
|
You can us the SIPCHANINFO and SIPPEER dialplan functions to get the info: agi.get_variable("SIPCHANINFO(recvip)") FERNANDO VILLARROEL wrote: > Hello Matthew: > > I need to know the IP that receipt in my Asterisk for > an incoming call? > > It is possible using pyst ? > > > I hope you understand to me . > > Greetings. > > Fernando Villarroel Noriel > Chillan-Chile. > > > --- Matthew Nicholson <mni...@di...> wrote: > >> Are you asking how you can determine the IP address >> that a call you >> originated goes to? >> >> FERNANDO VILLARROEL wrote: >>> Hello I use pyst and python to control the calls >> of >>> asterisk. >>> >>> I want to know as I can recover the IP I number >> that >>> it originates the call? >>> >>> Thanks >>> >>> Fernando Villarroel Noriel. >>> >>> >>> >>> > ____________________________________________________________________________________ >>> Food fight? Enjoy some healthy debate >>> in the Yahoo! Answers Food & Drink Q&A. >>> > http://answers.yahoo.com/dir/?link=list&sid=396545367 >>> > ------------------------------------------------------------------------- >>> This SF.net email is sponsored by DB2 Express >>> Download DB2 Express C - the FREE version of DB2 >> express and take >>> control of your XML. No limits. Just data. Click >> to get it now. >>> http://sourceforge.net/powerbar/db2/ >>> _______________________________________________ >>> Pyst-users mailing list >>> Pys...@li... >>> > https://lists.sourceforge.net/lists/listinfo/pyst-users >> -- >> Matthew Nicholson >> Digium >> >> > ------------------------------------------------------------------------- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 >> express and take >> control of your XML. No limits. Just data. Click to >> get it now. >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ >> Pyst-users mailing list >> Pys...@li... >> > https://lists.sourceforge.net/lists/listinfo/pyst-users > > > > > ____________________________________________________________________________________ > Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool. > http://autos.yahoo.com/carfinder/ -- Matthew Nicholson Digium |
From: FERNANDO V. <fvi...@ya...> - 2007-06-05 03:18:54
|
Hello Matthew: I need to know the IP that receipt in my Asterisk for an incoming call? It is possible using pyst ? I hope you understand to me . Greetings. Fernando Villarroel Noriel Chillan-Chile. --- Matthew Nicholson <mni...@di...> wrote: > Are you asking how you can determine the IP address > that a call you > originated goes to? > > FERNANDO VILLARROEL wrote: > > Hello I use pyst and python to control the calls > of > > asterisk. > > > > I want to know as I can recover the IP I number > that > > it originates the call? > > > > Thanks > > > > Fernando Villarroel Noriel. > > > > > > > > > ____________________________________________________________________________________ > > Food fight? Enjoy some healthy debate > > in the Yahoo! Answers Food & Drink Q&A. > > > http://answers.yahoo.com/dir/?link=list&sid=396545367 > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 > express and take > > control of your XML. No limits. Just data. Click > to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Pyst-users mailing list > > Pys...@li... > > > https://lists.sourceforge.net/lists/listinfo/pyst-users > > -- > Matthew Nicholson > Digium > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 > express and take > control of your XML. No limits. Just data. Click to > get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Pyst-users mailing list > Pys...@li... > https://lists.sourceforge.net/lists/listinfo/pyst-users > ____________________________________________________________________________________ Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool. http://autos.yahoo.com/carfinder/ |
From: Matthew N. <mni...@di...> - 2007-06-04 19:40:18
|
Are you asking how you can determine the IP address that a call you originated goes to? FERNANDO VILLARROEL wrote: > Hello I use pyst and python to control the calls of > asterisk. > > I want to know as I can recover the IP I number that > it originates the call? > > Thanks > > Fernando Villarroel Noriel. > > > > ____________________________________________________________________________________ > Food fight? Enjoy some healthy debate > in the Yahoo! Answers Food & Drink Q&A. > http://answers.yahoo.com/dir/?link=list&sid=396545367 > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Pyst-users mailing list > Pys...@li... > https://lists.sourceforge.net/lists/listinfo/pyst-users -- Matthew Nicholson Digium |
From: FERNANDO V. <fvi...@ya...> - 2007-06-02 17:27:28
|
Hello I use pyst and python to control the calls of asterisk. I want to know as I can recover the IP I number that it originates the call? Thanks Fernando Villarroel Noriel. ____________________________________________________________________________________ Food fight? Enjoy some healthy debate in the Yahoo! Answers Food & Drink Q&A. http://answers.yahoo.com/dir/?link=list&sid=396545367 |
From: Matthew N. <mni...@di...> - 2007-03-30 22:21:52
|
Greetings, For pyst 0.3 I am planning to clean up the manager.py. There are several know issues with the code. No one has actually reported these as problems, but I have personally had trouble with these. Currently manager.py runs in several threads, the main program thread, a thread to read from the network, and an event distribution thread. This causes problems with non thread safe code such as the MySQLdb libraries. This design also causes problems when an event handler throws an exception that causes the event processing thread to terminate. The second problem is with the way actions are sent. Each action has a specific function associated with it in the manager object that takes all possible arguments that may ever be passed to that action. This makes the api somewhat rigid and the Manager object cluttered. To solve these problems I am basically going to copy the design of my Astxx manager library (written in c++) and make it more python like. Each action will be a different object with certain methods to handle various tasks, with one function in the actual Manager class to send the action. This will make the Manager class much smaller and much more flexible. The current code will be consolidated into a single threaded design with hooks to have the library process events and such. These hooks will be called from the host application's main loop. I am looking for any feedback anyone may have on the existing design or on the new design. -- Matthew Nicholson Digium |
From: FERNANDO V. <fvi...@ya...> - 2007-01-29 18:32:51
|
thanks for the answer Matthew. ....soon I prove it. Bye --- Matthew Nicholson <mni...@di...> wrote: > It does not execute the script on answer because the > dialing party hangs > up the channel before the script can execute. There > is an option to > dial to prevent that when the remote party hangs up, > but the best thing > would be to move execution of your script to the 'h' > exten: > > [andes] > > exten => _325405,1,Answer > exten => _325405,2,Noop(Cuenta cliente >>> > ${ACCOUNTCODE}) > exten => _325405,3,Set(NUMERO=111${EXTEN}) > exten => _325405,4,goto(${NUMERO},1) > > exten => _111.,1,Dial(SIP/${NUMERO:3},3) > exten => _111.,2,Hangup > > exten => h,1,AGI(trafico/graba.py|...) > > That way it will always get executed when the > channel is destroyed. > > FERNANDO VILLARROEL wrote: > > Hello I have the following problem; when I execute > > this script python, if the result is different to > > ANSWER works perfect and it keeps the registry to > me > > in the data base. > > > > -- Executing > Answer("SIP/192.168.0.2-081b0bc0", > > "") in new stack > > -- Executing NoOp("SIP/192.168.0.2-081b0bc0", > > "Cuenta cliente >>> andescall") in new stack > > -- Executing Set("SIP/192.168.0.2-081b0bc0", > > "NUMERO=111325405") in new stack > > -- Executing Goto("SIP/192.168.0.2-081b0bc0", > > "111325405|1") in new stack > > -- Goto (andes,111325405,1) > > -- Executing Dial("SIP/192.168.0.2-081b0bc0", > > "SIP/325405|3") in new stack > > -- Called 325405 > > -- Got SIP response 486 "Busy Here" back from > > 192.168.0.10 > > -- SIP/325405-081b68f8 is busy > > == Everyone is busy/congested at this time > (1:1/0/0) > > -- Executing AGI("SIP/192.168.0.2-081b0bc0", > > "trafico/graba.py|andescall||BUSY|325405") in new > > stack > > -- Launched AGI Script > > /var/lib/asterisk/agi-bin/trafico/graba.py > > trafico/graba.py|andescall||BUSY|325405: 0 > > trafico/graba.py|andescall||BUSY|325405: BUSY > > -- AGI Script trafico/graba.py completed, > > returning 0 > > -- Executing > Hangup("SIP/192.168.0.2-081b0bc0", > > "") in new stack > > == Spawn extension (andes, 111325405, 3) exited > > non-zero on 'SIP/192.168.0.2-081b0bc0' > > > > > > > > But the result is ANSWER does not execute the AGI > to > > me so that? > > > > -- Executing > Answer("SIP/192.168.0.2-081b0bc0", > > "") in new stack > > -- Executing NoOp("SIP/192.168.0.2-081b0bc0", > > "Cuenta cliente >>> andescall") in new stack > > -- Executing Set("SIP/192.168.0.2-081b0bc0", > > "NUMERO=111325405") in new stack > > -- Executing Goto("SIP/192.168.0.2-081b0bc0", > > "111325405|1") in new stack > > -- Goto (andes,111325405,1) > > -- Executing Dial("SIP/192.168.0.2-081b0bc0", > > "SIP/325405|3") in new stack > > -- Called 325405 > > -- SIP/325405-081b68f8 is ringing > > -- SIP/325405-081b68f8 answered > > SIP/192.168.0.2-081b0bc0 > > -- Attempting native bridge of > > SIP/192.168.0.2-081b0bc0 and SIP/325405-081b68f8 > > == Spawn extension (andes, 111325405, 1) exited > > non-zero on 'SIP/192.168.0.2-081b0bc0' > > > > > > extension.conf > > > > [andes] > > > > exten => _325405,1,Answer > > exten => _325405,2,Noop(Cuenta cliente >>> > > ${ACCOUNTCODE}) > > exten => _325405,3,Set(NUMERO=111${EXTEN}) > > exten => _325405,4,goto(${NUMERO},1) > > > > exten => _111.,1,Dial(SIP/${NUMERO:3},3) > > exten => > > > _111.,2,agi,trafico/graba.py|${ACCOUNTCODE}|${ANSWEREDTIME}|${DIALSTATUS}|${NUMERO:3} > > exten => _111.,3,hangup > > > > > > Any idea. > > > > Thanks. > > > > Fernando Villarroel Noriel > > > > > > > > > ____________________________________________________________________________________ > > Looking for earth-friendly autos? > > Browse Top Cars by "Green Rating" at Yahoo! Autos' > Green Center. > > http://autos.yahoo.com/green_center/ > > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of > IT > > Join SourceForge.net's Techsay panel and you'll > get the chance to share your > > opinions on IT & business topics through brief > surveys - and earn cash > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > Pyst-users mailing list > > Pys...@li... > > > https://lists.sourceforge.net/lists/listinfo/pyst-users > > -- > Matthew Nicholson > Digium > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get > the chance to share your > opinions on IT & business topics through brief > surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Pyst-users mailing list > Pys...@li... > https://lists.sourceforge.net/lists/listinfo/pyst-users > ____________________________________________________________________________________ Finding fabulous fares is fun. Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains. http://farechase.yahoo.com/promo-generic-14795097 |
From: Matthew N. <mni...@di...> - 2007-01-29 17:37:18
|
It does not execute the script on answer because the dialing party hangs up the channel before the script can execute. There is an option to dial to prevent that when the remote party hangs up, but the best thing would be to move execution of your script to the 'h' exten: [andes] exten => _325405,1,Answer exten => _325405,2,Noop(Cuenta cliente >>> ${ACCOUNTCODE}) exten => _325405,3,Set(NUMERO=111${EXTEN}) exten => _325405,4,goto(${NUMERO},1) exten => _111.,1,Dial(SIP/${NUMERO:3},3) exten => _111.,2,Hangup exten => h,1,AGI(trafico/graba.py|...) That way it will always get executed when the channel is destroyed. FERNANDO VILLARROEL wrote: > Hello I have the following problem; when I execute > this script python, if the result is different to > ANSWER works perfect and it keeps the registry to me > in the data base. > > -- Executing Answer("SIP/192.168.0.2-081b0bc0", > "") in new stack > -- Executing NoOp("SIP/192.168.0.2-081b0bc0", > "Cuenta cliente >>> andescall") in new stack > -- Executing Set("SIP/192.168.0.2-081b0bc0", > "NUMERO=111325405") in new stack > -- Executing Goto("SIP/192.168.0.2-081b0bc0", > "111325405|1") in new stack > -- Goto (andes,111325405,1) > -- Executing Dial("SIP/192.168.0.2-081b0bc0", > "SIP/325405|3") in new stack > -- Called 325405 > -- Got SIP response 486 "Busy Here" back from > 192.168.0.10 > -- SIP/325405-081b68f8 is busy > == Everyone is busy/congested at this time (1:1/0/0) > -- Executing AGI("SIP/192.168.0.2-081b0bc0", > "trafico/graba.py|andescall||BUSY|325405") in new > stack > -- Launched AGI Script > /var/lib/asterisk/agi-bin/trafico/graba.py > trafico/graba.py|andescall||BUSY|325405: 0 > trafico/graba.py|andescall||BUSY|325405: BUSY > -- AGI Script trafico/graba.py completed, > returning 0 > -- Executing Hangup("SIP/192.168.0.2-081b0bc0", > "") in new stack > == Spawn extension (andes, 111325405, 3) exited > non-zero on 'SIP/192.168.0.2-081b0bc0' > > > > But the result is ANSWER does not execute the AGI to > me so that? > > -- Executing Answer("SIP/192.168.0.2-081b0bc0", > "") in new stack > -- Executing NoOp("SIP/192.168.0.2-081b0bc0", > "Cuenta cliente >>> andescall") in new stack > -- Executing Set("SIP/192.168.0.2-081b0bc0", > "NUMERO=111325405") in new stack > -- Executing Goto("SIP/192.168.0.2-081b0bc0", > "111325405|1") in new stack > -- Goto (andes,111325405,1) > -- Executing Dial("SIP/192.168.0.2-081b0bc0", > "SIP/325405|3") in new stack > -- Called 325405 > -- SIP/325405-081b68f8 is ringing > -- SIP/325405-081b68f8 answered > SIP/192.168.0.2-081b0bc0 > -- Attempting native bridge of > SIP/192.168.0.2-081b0bc0 and SIP/325405-081b68f8 > == Spawn extension (andes, 111325405, 1) exited > non-zero on 'SIP/192.168.0.2-081b0bc0' > > > extension.conf > > [andes] > > exten => _325405,1,Answer > exten => _325405,2,Noop(Cuenta cliente >>> > ${ACCOUNTCODE}) > exten => _325405,3,Set(NUMERO=111${EXTEN}) > exten => _325405,4,goto(${NUMERO},1) > > exten => _111.,1,Dial(SIP/${NUMERO:3},3) > exten => > _111.,2,agi,trafico/graba.py|${ACCOUNTCODE}|${ANSWEREDTIME}|${DIALSTATUS}|${NUMERO:3} > exten => _111.,3,hangup > > > Any idea. > > Thanks. > > Fernando Villarroel Noriel > > > > ____________________________________________________________________________________ > Looking for earth-friendly autos? > Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center. > http://autos.yahoo.com/green_center/ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Pyst-users mailing list > Pys...@li... > https://lists.sourceforge.net/lists/listinfo/pyst-users -- Matthew Nicholson Digium |
From: FERNANDO V. <fvi...@ya...> - 2007-01-29 06:51:00
|
Hello I have the following problem; when I execute this script python, if the result is different to ANSWER works perfect and it keeps the registry to me in the data base. -- Executing Answer("SIP/192.168.0.2-081b0bc0", "") in new stack -- Executing NoOp("SIP/192.168.0.2-081b0bc0", "Cuenta cliente >>> andescall") in new stack -- Executing Set("SIP/192.168.0.2-081b0bc0", "NUMERO=111325405") in new stack -- Executing Goto("SIP/192.168.0.2-081b0bc0", "111325405|1") in new stack -- Goto (andes,111325405,1) -- Executing Dial("SIP/192.168.0.2-081b0bc0", "SIP/325405|3") in new stack -- Called 325405 -- Got SIP response 486 "Busy Here" back from 192.168.0.10 -- SIP/325405-081b68f8 is busy == Everyone is busy/congested at this time (1:1/0/0) -- Executing AGI("SIP/192.168.0.2-081b0bc0", "trafico/graba.py|andescall||BUSY|325405") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/trafico/graba.py trafico/graba.py|andescall||BUSY|325405: 0 trafico/graba.py|andescall||BUSY|325405: BUSY -- AGI Script trafico/graba.py completed, returning 0 -- Executing Hangup("SIP/192.168.0.2-081b0bc0", "") in new stack == Spawn extension (andes, 111325405, 3) exited non-zero on 'SIP/192.168.0.2-081b0bc0' But the result is ANSWER does not execute the AGI to me so that? -- Executing Answer("SIP/192.168.0.2-081b0bc0", "") in new stack -- Executing NoOp("SIP/192.168.0.2-081b0bc0", "Cuenta cliente >>> andescall") in new stack -- Executing Set("SIP/192.168.0.2-081b0bc0", "NUMERO=111325405") in new stack -- Executing Goto("SIP/192.168.0.2-081b0bc0", "111325405|1") in new stack -- Goto (andes,111325405,1) -- Executing Dial("SIP/192.168.0.2-081b0bc0", "SIP/325405|3") in new stack -- Called 325405 -- SIP/325405-081b68f8 is ringing -- SIP/325405-081b68f8 answered SIP/192.168.0.2-081b0bc0 -- Attempting native bridge of SIP/192.168.0.2-081b0bc0 and SIP/325405-081b68f8 == Spawn extension (andes, 111325405, 1) exited non-zero on 'SIP/192.168.0.2-081b0bc0' extension.conf [andes] exten => _325405,1,Answer exten => _325405,2,Noop(Cuenta cliente >>> ${ACCOUNTCODE}) exten => _325405,3,Set(NUMERO=111${EXTEN}) exten => _325405,4,goto(${NUMERO},1) exten => _111.,1,Dial(SIP/${NUMERO:3},3) exten => _111.,2,agi,trafico/graba.py|${ACCOUNTCODE}|${ANSWEREDTIME}|${DIALSTATUS}|${NUMERO:3} exten => _111.,3,hangup Any idea. Thanks. Fernando Villarroel Noriel ____________________________________________________________________________________ Looking for earth-friendly autos? Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/ |
From: Matthew N. <mni...@di...> - 2006-11-28 22:51:45
|
I just posted a new release. Several bug fixes are included. Please test. Changes: If upgrading from... 0.1.0: * agi.get_variable no longer throws an exception, instead it returns an empty string when a channel variable is not set. * manager.quit() has be renamed to manager.close() -- Matthew Nicholson Digium |
From: FERNANDO V. <fvi...@ya...> - 2006-10-30 21:49:34
|
Thanks, just send a Link with the solution, but it is indeed what you suggest to me. thanks Matthew --- Matthew Nicholson <mni...@di...> wrote: > You can put all of the channels in a group in > zapata.conf then dial the > group (zap/g1 for group 1). It will pick the first > available channel. > You can also just run the Dial application on a > channel and check the > DIALSTATUS variable for the result. > > FERNANDO VILLARROEL wrote: > > Hello. > > > > I am doing application for machine with card E1 > > connected to Channel bank, but I have had problems > > since you accustom my scrip tries to leave by a > > occupied channel or, but I believe that I have > > problems of concurrence since I have a data base > where > > I identify each channel of channel bank and am > marking > > like occupied each one of them, but you accustom > > another instance of my AGI tries to leave by a > channel > > or occupied returning a CHANNUNAVAIL, reason why I > > lose many calls. > > > > What I want to do is to consult through pyst the > E1 > > card first to know how that channel must available > and > > make the DIAL by that channel, with no need to use > > Base de Datos. > > > > It is possible, or I must think about another > type of > > solution, some suggestion?. > > > > Fernando Villarroel Noriel. > > > > > > > > > ____________________________________________________________________________________ > > We have the perfect Group for you. Check out the > handy changes to Yahoo! Groups > > (http://groups.yahoo.com) > > > > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support > web services, security? > > Get stuff done quickly with pre-integrated > technology to make your job easier > > Download IBM WebSphere Application Server v.1.0.1 > based on Apache Geronimo > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > Pyst-users mailing list > > Pys...@li... > > > https://lists.sourceforge.net/lists/listinfo/pyst-users > > -- > Matthew Nicholson > Digium > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support > web services, security? > Get stuff done quickly with pre-integrated > technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 > based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Pyst-users mailing list > Pys...@li... > https://lists.sourceforge.net/lists/listinfo/pyst-users > ____________________________________________________________________________________ Get your email and see which of your friends are online - Right on the New Yahoo.com (http://www.yahoo.com/preview) |
From: FERNANDO V. <fvi...@ya...> - 2006-10-30 21:45:12
|
Excuse the solution was here: http://home.cogeco.ca/~camstuff/agi.html in individual the following method: CHANNEL STATUS [<channelname>] Purpose Return the status of the specified channel. If no channel name is specified, return the status of the current channel. Returns -1 There is no channel that matches the given <channelname> 0 Channel is down and available 1 Channel is down, but reserved 2 Channel is off hook 3 Digits (or equivalent) have been dialed 4 Line is ringing 5 Remote end is ringing 6 Line is up 7 Line is busy Examples CHANNEL STATUS Return the status of the current channel. CHANNEL STATUS Zap/9-1 Return the status of channel Zap/9-1 Note The <channelname> to use is the same as the channel names reported by the Asterisk console 'show channels' command. Thanks in any case Fernando Villarroel Noriel. > Hello. > > I am doing application for machine with card E1 > connected to Channel bank, but I have had problems > since you accustom my scrip tries to leave by a > occupied channel or, but I believe that I have > problems of concurrence since I have a data base > where > I identify each channel of channel bank and am > marking > like occupied each one of them, but you accustom > another instance of my AGI tries to leave by a > channel > or occupied returning a CHANNUNAVAIL, reason why I > lose many calls. > > What I want to do is to consult through pyst the E1 > card first to know how that channel must available > and > make the DIAL by that channel, with no need to use > Base de Datos. > > It is possible, or I must think about another type > of > solution, some suggestion?. > > Fernando Villarroel Noriel. > > > > ____________________________________________________________________________________ > We have the perfect Group for you. Check out the > handy changes to Yahoo! Groups > (http://groups.yahoo.com) > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support > web services, security? > Get stuff done quickly with pre-integrated > technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 > based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Pyst-users mailing list > Pys...@li... > https://lists.sourceforge.net/lists/listinfo/pyst-users > ____________________________________________________________________________________ Get your email and see which of your friends are online - Right on the New Yahoo.com (http://www.yahoo.com/preview) |
From: Matthew N. <mni...@di...> - 2006-10-30 20:39:51
|
You can put all of the channels in a group in zapata.conf then dial the group (zap/g1 for group 1). It will pick the first available channel. You can also just run the Dial application on a channel and check the DIALSTATUS variable for the result. FERNANDO VILLARROEL wrote: > Hello. > > I am doing application for machine with card E1 > connected to Channel bank, but I have had problems > since you accustom my scrip tries to leave by a > occupied channel or, but I believe that I have > problems of concurrence since I have a data base where > I identify each channel of channel bank and am marking > like occupied each one of them, but you accustom > another instance of my AGI tries to leave by a channel > or occupied returning a CHANNUNAVAIL, reason why I > lose many calls. > > What I want to do is to consult through pyst the E1 > card first to know how that channel must available and > make the DIAL by that channel, with no need to use > Base de Datos. > > It is possible, or I must think about another type of > solution, some suggestion?. > > Fernando Villarroel Noriel. > > > > ____________________________________________________________________________________ > We have the perfect Group for you. Check out the handy changes to Yahoo! Groups > (http://groups.yahoo.com) > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Pyst-users mailing list > Pys...@li... > https://lists.sourceforge.net/lists/listinfo/pyst-users -- Matthew Nicholson Digium |
From: FERNANDO V. <fvi...@ya...> - 2006-10-30 19:56:34
|
Hello. I am doing application for machine with card E1 connected to Channel bank, but I have had problems since you accustom my scrip tries to leave by a occupied channel or, but I believe that I have problems of concurrence since I have a data base where I identify each channel of channel bank and am marking like occupied each one of them, but you accustom another instance of my AGI tries to leave by a channel or occupied returning a CHANNUNAVAIL, reason why I lose many calls. What I want to do is to consult through pyst the E1 card first to know how that channel must available and make the DIAL by that channel, with no need to use Base de Datos. It is possible, or I must think about another type of solution, some suggestion?. Fernando Villarroel Noriel. ____________________________________________________________________________________ We have the perfect Group for you. Check out the handy changes to Yahoo! Groups (http://groups.yahoo.com) |
From: FERNANDO V. <fvi...@ya...> - 2006-10-26 20:49:18
|
Ok thanks Matthew. --- Matthew Nicholson <mni...@di...> wrote: > No, you cannot do this with pyst. You could just > write a program to > parse the logs and put them in a database. The logs > are written to > files in /var/log/asterisk/ > > FERNANDO VILLARROEL wrote: > > Hello. > > They excuse my English, I am of Chile Sud America. > I > > have developed several applications in Python for > > Aterisk. > > Now what I want to do is to capture log that > throws > > Asterisk, notice, error, warnings, etc. in its > console > > and to take them to a data base. > > > > As I can do it with pyst. > > > > Feranando Villarroel Noriel > > Chillan - Chile. > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection around > > http://mail.yahoo.com > > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support > web services, security? > > Get stuff done quickly with pre-integrated > technology to make your job easier > > Download IBM WebSphere Application Server v.1.0.1 > based on Apache Geronimo > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > Pyst-users mailing list > > Pys...@li... > > > https://lists.sourceforge.net/lists/listinfo/pyst-users > > -- > Matthew Nicholson > Digium > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support > web services, security? > Get stuff done quickly with pre-integrated > technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 > based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Pyst-users mailing list > Pys...@li... > https://lists.sourceforge.net/lists/listinfo/pyst-users > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Matthew N. <mni...@di...> - 2006-10-26 16:53:32
|
No, you cannot do this with pyst. You could just write a program to parse the logs and put them in a database. The logs are written to files in /var/log/asterisk/ FERNANDO VILLARROEL wrote: > Hello. > They excuse my English, I am of Chile Sud America. I > have developed several applications in Python for > Aterisk. > Now what I want to do is to capture log that throws > Asterisk, notice, error, warnings, etc. in its console > and to take them to a data base. > > As I can do it with pyst. > > Feranando Villarroel Noriel > Chillan - Chile. > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Pyst-users mailing list > Pys...@li... > https://lists.sourceforge.net/lists/listinfo/pyst-users -- Matthew Nicholson Digium |
From: FERNANDO V. <fvi...@ya...> - 2006-10-25 21:40:16
|
Hello. They excuse my English, I am of Chile Sud America. I have developed several applications in Python for Aterisk. Now what I want to do is to capture log that throws Asterisk, notice, error, warnings, etc. in its console and to take them to a data base. As I can do it with pyst. Feranando Villarroel Noriel Chillan - Chile. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |