diff --git a/README.md b/README.md index 83a6ff3..25fdee1 100644 --- a/README.md +++ b/README.md @@ -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." diff --git a/asterisk/extensions.conf b/asterisk/extensions.conf index 018a4cd..76b4d5d 100644 --- a/asterisk/extensions.conf +++ b/asterisk/extensions.conf @@ -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) diff --git a/asterisk/sip.conf b/asterisk/sip.conf index 037ec5f..267413e 100644 --- a/asterisk/sip.conf +++ b/asterisk/sip.conf @@ -23,8 +23,8 @@ ; Twilio trunk. [twilio](trunk) - context=+441234567890 - fromuser=+441234567890 + context=441234567890 + fromuser=441234567890 host=example.pstn.ie1.twilio.com ; Internal extensions.