Quantcast
Channel: General Help - FreePBX Community Forums
Viewing all articles
Browse latest Browse all 12686

Cannot call 3 digit external emergency number

$
0
0

@dotcom wrote:

Hello all,

I'm trying to dial to an emergency 3 digit number 117, but Asterisk keeps dialing the local SIP/117 extension which doesn't exists.

Since I need to add a custom X-header, I'm using the from-internal-custom context in extension_custom:

[from-internal-custom]
exten => 117,1,NoOp(Emergency call...)
exten => 117,n,SIPAddHeader(X-Postalcode: 1000)
exten => 117,n,Set(CALLERID(num)=+3222222222)
exten => 117,n,Dial(SIP/trunk_prim_out/117)
exten => 117,n,Hangup

In the logs I see:

 -- Executing [117@from-internal:1] Dial("SIP/1092-00000eb0", "SIP/117,10,tT") in new stack
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [117@from-internal:2] GotoIf("SIP/1092-00000eb0", "1?TransferFailed") in new stack
  == Spawn extension (from-internal, 117, 2) exited non-zero on 'SIP/1092-00000eb0'
    -- Executing [h@from-internal:1] Macro("SIP/1092-00000eb0", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("SIP/1092-00000eb0", "1?theend") in new stack

When changing 117 to 1117 (4 digits) it is working correctly.

How can I call externally to 117 and prevent the call going to internal SIP/117?

Thanks a lot for your help!

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 12686

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>