View difference between Paste ID: xqBj1ACy and 7Ry48Bqj
SHOW: | | - or go back to the newest paste.
1-
#!/usr/bin/python
1+
def onDial(protocol,event):
2-
# -*- coding: utf-8 -*-
2+
3-
# https://github.com/asterisk/starpy/blob/master/examples/amicommand.py
3+
4-
# https://github.com/asterisk/starpy/blob/master/starpy/manager.py
4+
5-
# http://olihb.com/2010/08/08/incoming-call-popup-under-ubuntu-and-asterisk/
5+
6-
# http://www.oak-wood.co.uk/oss/callpoppy
6+
7-
import MySQLdb
7+
8-
import string
8+
9-
import datetime
9+
10-
from Daemon import Daemon
10+
11-
import sys
11+
12-
import urllib
12+
                           protocol.setVar(channel, "uniqueid", "test")