[asterisk-users] Two sip extensions
Steve Edwards
asterisk.org at sedwards.com
Thu Jul 18 10:35:39 CDT 2019
On Thu, 18 Jul 2019, Joshua C. Colp wrote:
> On Thu, Jul 18, 2019, at 10:10 AM, Jerry Geis wrote:
>> I have two SIP extensions defined in sip.conf
>>
>> register => 4450 at 10.20.1.1/4450
>> [4450]
>> type=friend
>> username=4450
>> host=10.20.1.1
>> allow=all
>> dtmfmode=inband
>> context=incoming
>>
>> register => 4451 at 10.20.1.1/4451
>> [4451]
>> type=friend
>> username=4451
>> host=10.20.1.1
>> allow=all
>> dtmfmode=inband
>> context=incoming
>
> "register" lines have to be under the general section. They can't be within a friend/peer/user.
I format my entries in sip.conf like below to keep everything related to
the endpoint together.
; 4450
[general](+)
register = 4450 at 10.20.1.1/4450
[4450]
allow = all
context = incoming
dtmfmode = inband
host = 10.20.1.1
type = friend
username = 4450
; 4451
[general](+)
register = 4451 at 10.20.1.1/4451
[4451]
allow = all
context = incoming
dtmfmode = inband
host = 10.20.1.1
type = friend
username = 4451
I like to keep the parameters in each stanza sorted and 'tabbed out' to
make it easier to compare stanzas and because I'm just that kind of guy :)
--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST
https://www.linkedin.com/in/steve-edwards-4244281
More information about the asterisk-users
mailing list