This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.0.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /usr/local/share/usb_modeswitch/12d1:1f01 | |
# Huawei E353 (3.se) and others | |
TargetVendor=0x12d1 | |
TargetProductList="14db,14dc" | |
HuaweiNewMode=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pickle | |
from twisted.internet.defer import inlineCallbacks | |
from twisted.internet import reactor | |
from twisted.internet.protocol import ClientCreator | |
from twisted.python import log | |
from txamqp.protocol import AMQClient | |
from txamqp.client import TwistedDelegate | |
import txamqp.spec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
An example of scenario with the following actions: | |
1. Add and start a SMPP Client connector | |
2. Provision a DefaultRoute to that connector | |
3. Provision a User | |
This is a demonstration of using PB (PerspectiveBroker) API to gain control Jasmin. | |
The jasmin SMS gateway shall be already running and having | |
a pb listening on 8989. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pickle | |
from twisted.internet.defer import inlineCallbacks | |
from twisted.internet import reactor | |
from twisted.internet.protocol import ClientCreator | |
from twisted.python import log | |
from txamqp.protocol import AMQClient | |
from txamqp.client import TwistedDelegate | |
import txamqp.spec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from twisted.internet import defer, reactor | |
from jasmin.vendor.smpp.pdu.operations import DeliverSM | |
from jasmin.queues.configs import AmqpConfig | |
from jasmin.queues.factory import AmqpFactory | |
from jasmin.routing.jasminApi import SmppServerSystemIdConnector | |
from jasmin.routing.content import RoutedDeliverSmContent | |
from jasmin.queues.test.test_amqp import waitFor | |
@defer.inlineCallbacks | |
def connect_and_publish(pdu, dc): |