laforge has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/libosmo-sccp/+/27325 )


Change subject: sccp_demo_user: make sure the command-line specified point 
codes are used
......................................................................

sccp_demo_user: make sure the command-line specified point codes are used

Change-Id: I983066199e5d8f056895fdad370e3b4439b4dba4
---
M examples/internal.h
M examples/sccp_demo_user.c
M examples/sccp_test_vty.c
3 files changed, 7 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/25/27325/1

diff --git a/examples/internal.h b/examples/internal.h
index ef560ed..5dd439c 100644
--- a/examples/internal.h
+++ b/examples/internal.h
@@ -12,6 +12,9 @@

 struct osmo_sccp_user;

+extern struct osmo_sccp_addr g_calling_addr;
+extern struct osmo_sccp_addr g_called_addr;
+
 int sccp_test_user_vty_install(struct osmo_sccp_instance *inst, int ssn);

 int sccp_test_server_init(struct osmo_sccp_instance *sccp);
diff --git a/examples/sccp_demo_user.c b/examples/sccp_demo_user.c
index 5f443e2..bcb95f4 100644
--- a/examples/sccp_demo_user.c
+++ b/examples/sccp_demo_user.c
@@ -300,6 +300,8 @@
                }
                sccp_test_server_init(g_sccp);
        }
+       g_calling_addr.pc = local_pc;
+       g_called_addr.pc = remote_pc;
 
        while (1) {
                osmo_select_main(0);
diff --git a/examples/sccp_test_vty.c b/examples/sccp_test_vty.c
index c477c8b..044ecf2 100644
--- a/examples/sccp_test_vty.c
+++ b/examples/sccp_test_vty.c
@@ -13,13 +13,13 @@

 static struct osmo_sccp_user *g_scu;

-static struct osmo_sccp_addr g_calling_addr = {
+struct osmo_sccp_addr g_calling_addr = {
        .presence = OSMO_SCCP_ADDR_T_SSN | OSMO_SCCP_ADDR_T_PC,
        .ri = OSMO_SCCP_RI_SSN_PC,
        .pc = 23,
 };

-static struct osmo_sccp_addr g_called_addr = {
+struct osmo_sccp_addr g_called_addr = {
        .presence = OSMO_SCCP_ADDR_T_SSN | OSMO_SCCP_ADDR_T_PC,
        .ssn = 1,
        .ri = OSMO_SCCP_RI_SSN_PC,

--
To view, visit https://gerrit.osmocom.org/c/libosmo-sccp/+/27325
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Change-Id: I983066199e5d8f056895fdad370e3b4439b4dba4
Gerrit-Change-Number: 27325
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <[email protected]>
Gerrit-MessageType: newchange

Reply via email to