Skip to content

Commit

Permalink
add test python script
Browse files Browse the repository at this point in the history
  • Loading branch information
vassilux committed Sep 16, 2014
1 parent dc9122b commit 882e9db
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/import_data_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,27 @@
import sys
import MySQLdb
'''
Please create virtualenv revor
mkvirtualenv --no-site-packages revor
and install mysql-python with pip
pip install mysql-python
'''

'''
incomming
INSERT INTO asteriskcdrdb.cdr (calldate, clid, src, dst, channel, dcontext, disposition,billsec,duration,
uniqueid,dstchannel, dnid, recordfile, import) VALUES(now(), 'Kebab <551234578>',
'551234578', '4002', 'DAHDI/i5/551234578-1', 'incomming', 'ANSWERED', '5',
'10', '139412787.59', '', '1157', NULL, 0)
'''

'''
Outgoing example
'1400147484', '"Cyril Hellstern" <6006>', '6006', '8181', 'SIP/6006-0000001b', 'to-g200be', 'ANSWERED', '0', '1', '1400147484.27', 'SIP/g200beprovider-0000001c', '8181', NULL
'''

incall_clid="Toto <551234578>"
incall_src="551234578"
incall_dst="6005"
Expand Down

0 comments on commit 882e9db

Please sign in to comment.