YAYPM Installation on windows: Difference between revisions

From Yate Documentation
Jump to navigation Jump to search
Created page with " ===External dependencies=== ''From readme.txt'' found in share/scripts/yaypm<br> Python 2.4(Python 2.5 is better as it allows to use inlineCallbacks - '''I used 2.5''')<br> T..."
 
 
(10 intermediate revisions by one other user not shown)
Line 3: Line 3:
''From readme.txt'' found in share/scripts/yaypm<br>
''From readme.txt'' found in share/scripts/yaypm<br>
Python 2.4(Python 2.5 is better as it allows to use inlineCallbacks - '''I used 2.5''')<br>
Python 2.4(Python 2.5 is better as it allows to use inlineCallbacks - '''I used 2.5''')<br>
Twisted 2.x ([[http://twistedmatrix.com]])<br>
Twisted 2.x (http://twistedmatrix.com)<br>
Zope 3.x (http://www.zope.org/Products/ZopeInterface) <br>
Zope 3.x (http://www.zope.org/Products/ZopeInterface) <br>
''additional requirements not mentioned in readme.txt''<br>
''additional requirements not mentioned in readme.txt''<br>
pywin32 ([[http://sourceforge.net/projects/pywin32/]])  
pywin32 (http://sourceforge.net/projects/pywin32/)


===Installation===
===Installation===
Line 23: Line 23:
  port=5039
  port=5039
  role=global
  role=global
 
===Testing===
===Testing===


Open <yaypmhome>\examples\pbx.py and replace the string "maciejka" with a configured extension (example: 1001)
Open <yaypmhome>\examples\pbx.py and replace the string "maciejka" with a configured extension (example: 1001)<br>
Save the file<br>
Save the file<br>
run yate<br>
run yate<br>
execute pbx.y - you should see appear something like
execute pbx.py - you should see appear something like
&#8592;[37m&#8592;[1mpbx&#8592;[0;0m &#8592;[22;32mDEBUG&#8592;[0;0m Watching for calls to: 1001
   
   
  &#8592;[37m&#8592;[1mpbx&#8592;[0;0m &#8592;[22;32mDEBUG&#8592;[0;0m Watching for calls to: 1001
placing a call to 1001 you should also see some more debug messages from pbx.py.
placing a call to 1001 you should also see some more debug messages from pbx.py.
'''See also'''
*[[YAYPM]]
[[Category:YAYPM]] [[Category:Programmers]] [[Category:Windows]] [[Category:Scripting]]

Latest revision as of 12:17, 4 November 2013

External dependencies

From readme.txt found in share/scripts/yaypm
Python 2.4(Python 2.5 is better as it allows to use inlineCallbacks - I used 2.5)
Twisted 2.x (http://twistedmatrix.com)
Zope 3.x (http://www.zope.org/Products/ZopeInterface)
additional requirements not mentioned in readme.txt
pywin32 (http://sourceforge.net/projects/pywin32/)

Installation

Install external dependencies then execute

python setup.py install

Configuring in Yate

Add the following section to extmodule.conf (the word after "listener" will become the module name)

extmodule.conf

[listener test]
type=tcp
addr=0.0.0.0
port=5039
role=global

Testing

Open <yaypmhome>\examples\pbx.py and replace the string "maciejka" with a configured extension (example: 1001)
Save the file
run yate
execute pbx.py - you should see appear something like

 ←[37m←[1mpbx←[0;0m ←[22;32mDEBUG←[0;0m Watching for calls to: 1001

placing a call to 1001 you should also see some more debug messages from pbx.py.


See also