@Session
    @SMPPClientConfigBuild
    @defer.inlineCallbacks
    def add_session(self, SMPPClientConfigInstance):
        st = yield self.pb['smppcm'].perspective_connector_add(
            pickle.dumps(SMPPClientConfigInstance, pickle.HIGHEST_PROTOCOL))

        if st:
            self.protocol.sendData(
                'Successfully added connector [%s]' % SMPPClientConfigInstance.id, prompt=False)
            self.stopSession()
        else:
            self.protocol.sendData('Failed adding connector, check log for details')
dataset/ETHPy150Open jookies/jasmin/jasmin/protocols/cli/smppccm.py/SmppCCManager.add_session/original