Exemplo n.º 1
0
#!/usr/bin/env python
# -*- coding: UTF-8 -*-

from __future__ import with_statement
from snoipclient import SnoipClient
import time


sc = SnoipClient(('0.0.0.0', 50009))
time.sleep(1)
sc.login('120', 'a120----------------')

time.sleep(3)

sc.send_keep_alive()

time.sleep(24)
Exemplo n.º 2
0
#!/usr/bin/env python
# -*- coding: UTF-8 -*-

from __future__ import with_statement
from snoipclient import SnoipClient
import time


# init a client at snoip port
sc = SnoipClient(('0.0.0.0', 50009))

#login 
sc.login('121', 'a121----------------')

#pause and let replies arrive
time.sleep(3)

sc.send_keep_alive()
time.sleep(1)

for i in xrange(10):
    #send invite
    sc.invite('120')

    #pause and let replies arrive
    time.sleep(4)

    with open('large_data.rtp', 'rb') as lines:
        i = 0
        for line in lines:
            sc.feed_rtp(line, i)
Exemplo n.º 3
0
#!/usr/bin/env python
# -*- coding: UTF-8 -*-


__author__ = 'Tzury Bar Yochay'
__version__ = '0.1'
__license__ = 'GPLv3'


from __future__ import with_statement
from snoipclient import SnoipClient
import time
from logger import log

sc = SnoipClient(('localhost', 50009))
sc.login('123', 'a123' + '-'*16)

while True:
    time.sleep(10)
    sc.send_keep_alive()