Solution 1 : .call file create an asterisk .call file in /var/spool/asterisk/outgoing exemple : python callback.py 5668 demo-congrats #!/bin/python import os import sys callFile = "/tmp/test.call" number = sys.argv[1] data = sys.argv[2] open(callFile, "w").write("""Channel: %s CallerID: Patoche <5212> Priority: 1 Context: default Application: Playback Data: %s """%(number, data)) os.chown(callFile, 107, 113) os.system("mv /tmp/test.call /var/spool/asterisk/outgoing") Using AMI : you can use python script amioriginate : https://github.com/russellb/amiutils python amioriginate.py -d -u login -p secret -a playback -D demo-congrats SIP/5212 |
* Asterisk POC >