Fix invalid context.
This commit is contained in:
parent
c2362359cb
commit
0c9f971e33
|
@ -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.
|
If authentication is used by your SIP provider, the credentials should also be inserted into this trunk definition.
|
||||||
```
|
```
|
||||||
[newtrunk](trunk)
|
[newtrunk](trunk)
|
||||||
context=+441234567890
|
context=441234567890
|
||||||
fromuser=+441234567890
|
fromuser=441234567890
|
||||||
host=example.pstn.ie1.twilio.com
|
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.
|
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)
|
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."
|
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."
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
[+441234567890]
|
[441234567890]
|
||||||
; Redirect incoming calls from trunk with context +441234567890 to internal extension 0.
|
; Redirect incoming calls from trunk with context +441234567890 to internal extension 0.
|
||||||
exten => _+X.,1,Goto(internal,0,1)
|
exten => _+X.,1,Goto(internal,0,1)
|
||||||
|
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
|
|
||||||
; Twilio trunk.
|
; Twilio trunk.
|
||||||
[twilio](trunk)
|
[twilio](trunk)
|
||||||
context=+441234567890
|
context=441234567890
|
||||||
fromuser=+441234567890
|
fromuser=441234567890
|
||||||
host=example.pstn.ie1.twilio.com
|
host=example.pstn.ie1.twilio.com
|
||||||
|
|
||||||
; Internal extensions.
|
; Internal extensions.
|
||||||
|
|
Loading…
Reference in New Issue