path: root/include
diff options
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-09-08 15:39:18 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-09-08 15:50:32 +0200
commitf6673b725758c1942835cb7241a3510bfec12c6a (patch)
tree4124843e2cc6337a8470c05fc1e90104ee8548a6 /include
parente75a6297da9337db95e94c4eb1cebc1e72fb9d41 (diff)
RAB Assign for voice: heed the x213 nsap flag
Add use_x213_nsap arg to ranap_new_msg_rab_assign_voice() and new_transp_info_rtp(). Pass this to new_transp_layer_addr() to compose 32bit addresses when use_x213_nsap == false. This is analogous to ranap_new_msg_rab_assign_data(). Particularly, the ip.access nano3G does not accept x213 NSAP 56bit addresses, so we want to send 32bit addresses there. Change-Id: I0c3c95d709c8a2b1c48d7a187faca34102226329
Diffstat (limited to 'include')
1 files changed, 3 insertions, 1 deletions
diff --git a/include/osmocom/ranap/ranap_msg_factory.h b/include/osmocom/ranap/ranap_msg_factory.h
index 9639881..120c6e6 100644
--- a/include/osmocom/ranap/ranap_msg_factory.h
+++ b/include/osmocom/ranap/ranap_msg_factory.h
@@ -32,7 +32,9 @@ struct msgb *ranap_new_msg_iu_rel_compl(void);
struct msgb *ranap_new_msg_paging_cmd(const char *imsi, const uint32_t *tmsi, int is_ps, uint32_t cause);
/*! \brief generate RANAP RAB ASSIGNMENT REQUEST message for CS (voice) */
-struct msgb *ranap_new_msg_rab_assign_voice(uint8_t rab_id, uint32_t rtp_ip, uint16_t rtp_port);
+struct msgb *ranap_new_msg_rab_assign_voice(uint8_t rab_id, uint32_t rtp_ip,
+ uint16_t rtp_port,
+ bool use_x213_nsap);
/*! \brief generate RANAP RAB ASSIGNMENT REQUEST message for PS (data) */
struct msgb *ranap_new_msg_rab_assign_data(uint8_t rab_id, uint32_t gtp_ip,