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 <[email protected]>

Reply via email to