SS7 Routing Numbers - Emergency number

Hello,

I’m using asterisk as a VOIP<->PSTN gateway with one E1 Trung and SS7 signaling. I have following problem. When from voip is called emergency number (in poland it is 112, and in US AFAIK 911) as I understand regulations in Poland i have to pass it throu SS7 in following format:

XXCYYY112

Where:

XX is a direction number (in us it will be number representing state)
C - is hexadecimal “C” or 0xC
YYY it is numer representing emergency office in "state"
112 is our emergency number

EX: 15C100112

I don’t know how to configure asterisk to pass “C hex” throu SS7 trunk.

Please Help. Anybody?

I Solved the problem. I had to change libss7 code to make emergency call routing passible.

The solution for everybody:

Changes:
Index: isup.c

— isup.c (wersja 254)
+++ isup.c (kopia robocza)
@@ -216,6 +216,8 @@
return 8;
case ‘9’:
return 9;

  •   case 'c':
    
  •   	return 0xc;
      case '#':
      	return 0xf;
      default:
    

@@ -246,6 +248,8 @@
return ‘8’;
case 9:
return ‘9’;

  •   case 12:
    
  •   	return 'c';
      case 15:
      	return '#';
      default:
vserver2:/usr/src/libss7# svn diff
Index: isup.c
===================================================================
--- isup.c	(wersja 254)
+++ isup.c	(kopia robocza)
@@ -216,6 +216,8 @@
 			return 8;
 		case '9':
 			return 9;
+		case 'c':
+			return 0xc;
 		case '#':
 			return 0xf;
 		default:
@@ -246,6 +248,8 @@
 			return '8';
 		case 9:
 			return '9';
+		case 12:
+			return 'c';
 		case 15:
 			return '#';
 		default:

Note that Digium won’t use any patch submitted through this forum.

I’ve mailed this patch also to libss7 maintainer:

Author:
Matthew Fredrickson <creslin [at] digium [dot] com>

I’ve puted it also here in case somebody else need it before commit to trunk.