summaryrefslogtreecommitdiffstats
path: root/src/mtp3_codec.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/mtp3_codec.erl')
-rw-r--r--src/mtp3_codec.erl8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mtp3_codec.erl b/src/mtp3_codec.erl
index 0ab39ab..df5b6b1 100644
--- a/src/mtp3_codec.erl
+++ b/src/mtp3_codec.erl
@@ -38,10 +38,12 @@ parse_mtp3_msg(DataBin) when is_binary(DataBin) ->
payload = Payload}.
-encode_mtp3_routing_label(#mtp3_routing_label{sig_link_sel = Sls, origin_pc = Opc,
- dest_pc = Dpc}) ->
+encode_mtp3_routing_label(#mtp3_routing_label{sig_link_sel = Sls, origin_pc = OpcIn,
+ dest_pc = DpcIn}) ->
+ Opc = osmo_util:pointcode2int(OpcIn),
+ Dpc = osmo_util:pointcode2int(DpcIn),
<<Sls:4/big, Opc:14/big, Dpc:14/big>>.
-
+
encode_mtp3_msg(#mtp3_msg{network_ind = NetInd, service_ind = ServiceInd,
routing_label = RoutLbl, payload = Payload}) ->
RoutLblBin = encode_mtp3_routing_label(RoutLbl),