Change in osmo-sip-connector[master]: Support Emergency Calling

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Keith Whyte gerrit-no-reply at lists.osmocom.org
Tue Jan 22 14:57:19 UTC 2019


Keith Whyte has uploaded this change for review. ( https://gerrit.osmocom.org/12682


Change subject: Support Emergency Calling
......................................................................

Support Emergency Calling

LCR supports emergency calling by sending the string 'emergency' as callee to
the SIP side.

This does the same

Change-Id: I5d0adb61dfa82e7ded5f41d9bc773d546112c9f1
---
M src/mncc.c
1 file changed, 6 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-sip-connector refs/changes/82/12682/1

diff --git a/src/mncc.c b/src/mncc.c
index ea6a9fc..e42f932 100644
--- a/src/mncc.c
+++ b/src/mncc.c
@@ -424,6 +424,11 @@
 
 	data = (const struct gsm_mncc *) buf;
 
+	if (data->emergency) {
+		strcpy((char *)data->called.number, "emergency");
+		goto cont_setup;
+	}
+
 	/* screen arguments */
 	if ((data->fields & MNCC_F_CALLED) == 0) {
 		LOGP(DMNCC, LOGL_ERROR,
@@ -445,6 +450,7 @@
 		return mncc_send(conn, MNCC_REJ_REQ, data->callref);
 	}
 
+	cont_setup:
 	/* Create an RTP port and then allocate a call */
 	call = call_mncc_create();
 	if (!call) {

-- 
To view, visit https://gerrit.osmocom.org/12682
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-sip-connector
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5d0adb61dfa82e7ded5f41d9bc773d546112c9f1
Gerrit-Change-Number: 12682
Gerrit-PatchSet: 1
Gerrit-Owner: Keith Whyte <keith at rhizomatica.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190122/26cd3a92/attachment.htm>


More information about the gerrit-log mailing list