-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interface version encoding #194
Comments
thanks. Will look into it. |
Note to self;
|
@Profx5 hi, would you mind trying out this beta version: https://pypi.org/project/naz/0.7.8b0/ |
@komuw, I tested this version, and it works well, thank you! |
komuw
added a commit
that referenced
this issue
Feb 16, 2020
What: - Fix a bug where `naz` was not formatting 1octet integers correctly Why: - Fixes: #194
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Python 3.8.1
naz 0.7.7
MacOS 10.15.3
Hi. I tried to test my application, which uses naz over this simulator and got problems with bind stage.
With this example you can reproduce the problem:
Here logs
Via Wireshark I found that version in the packet is zero
Now let's look at this code
naz/naz/client.py
Line 631 in 895a269
">L"
means that will be used 4 octets, but SMPP v3.4 documentation says that interface_version should be size of 1 octet (also asaddr_ton
andaddr_npi
).So, I think, here should be
struct.pack(">B", self.interface_version)
.But it doesn't help.
After that fix, I got version 2.2 in the BindTranceiver message.
Looks like default interface_version should be 0x34
The text was updated successfully, but these errors were encountered: