1
0
Fork 0

Fix invalid context.

This commit is contained in:
Jack Hadrill 2020-02-15 04:49:15 +00:00
parent c2362359cb
commit 0c9f971e33
3 changed files with 6 additions and 6 deletions

View File

@ -70,14 +70,14 @@ Provide at the very least, a `context` and a `host`. Optionally, provide a `from
If authentication is used by your SIP provider, the credentials should also be inserted into this trunk definition.
```
[newtrunk](trunk)
context=+441234567890
fromuser=+441234567890
context=441234567890
fromuser=441234567890
host=example.pstn.ie1.twilio.com
```
Remembering that incoming calls from the trunk will be redirected to its `context`, create a new context in `extensions.conf` of the same name.
```
[+441234567890]
[441234567890]
exten => _+X.,1,Goto(internal,0,1)
```
This `exten` line states: "For all incoming calls whose caller ID starts with a '+' and is of any length, dial extension `0` in the `internal` context."

View File

@ -1,4 +1,4 @@
[+441234567890]
[441234567890]
; Redirect incoming calls from trunk with context +441234567890 to internal extension 0.
exten => _+X.,1,Goto(internal,0,1)

View File

@ -23,8 +23,8 @@
; Twilio trunk.
[twilio](trunk)
context=+441234567890
fromuser=+441234567890
context=441234567890
fromuser=441234567890
host=example.pstn.ie1.twilio.com
; Internal extensions.