Here's a small series with some minor fixes I found when looking at multiple SMS in a single RR connection.
For the MO case, it actually now works as described in the spec in the no-error case. But what can happen is that after the second CM SERVICE REQUEST, we may never receive the last CP-ACK of the previous transaction (and thus leak a transaction). The spec says than when receiving a CP-DATA after a CM SERVICE REQUEST we should consider we also implicitely received the last CP-ACK of the previous transaction ... that's not implemented yet.
For the MT case, it currently makes several RR connection which is quite bad ... to be fixed.
Sylvain