Closed rnesytov closed 4 years ago
thanks. Will look into it.
Note to self;
struct.pack()
and struct.unpack()
and make sure that the format[1] characters we are using are in line with those specified in the v3.4 smpp specification. 0x34
in place of 34)@profx5 hi, would you mind trying out this beta version: https://pypi.org/project/naz/0.7.8b0/
and letting me know if there are any issues with it.
@komuw, I tested this version, and it works well, thank you!
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 https://github.com/komuw/naz/blob/895a269273bb5d445c75b63098375bd9bacccf7d/naz/client.py#L631
">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 bestruct.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