Skip to content

Comments

command.py: Add support for alert_notification PDU#20

Closed
asdfuser wants to merge 1 commit intopython-smpplib:masterfrom
asdfuser:master
Closed

command.py: Add support for alert_notification PDU#20
asdfuser wants to merge 1 commit intopython-smpplib:masterfrom
asdfuser:master

Conversation

@asdfuser
Copy link
Contributor

This adds support for alert_notification PDUs which openbsc SMPP generates each time a phone attaches to or detaches from the GSM network.

Without this patch an alert_notification PDU generates an assert inside the program using python-smpplib

super(AlertNotification, self).__init__(command, **kwargs)
self._set_vars(**(dict.fromkeys(self.params)))

def prep(self):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you need this method?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, remove it, check if it works and I'll merge it

@asdfuser
Copy link
Contributor Author

No and generating an alert notification should probably not be needed. Do you want me to remove the method?

@code-of-kpp
Copy link
Member

@asdfuser?

@code-of-kpp
Copy link
Member

in favor of #27

code-of-kpp pushed a commit that referenced this pull request May 27, 2017
command.py: Add support for alert_notification PDU (replaces PR #20)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants