How does Asterisk register device/peer


#1

Hello,

I am trying to register a Softphone(3 CX) on my Asterisk Server. The entry in the sip.conf is

[1001]
type=friend
username=1001
secret=1234
regexten=1001
callerid="James " <1001>
host=dynamic
context=my-context
qualify=yes

Now when I register my Softphone with User/Pass as 1001/1234 it gets registered.
I want to register more than one device with the same number but in different contexts.How can I accomplish something like that? One way I can think of is using Device MAC instead of phone number in device name. So my sip.conf now looks like

[008C8F9D]
type=friend
username=1001
secret=1234
regexten=1001
callerid="James " <1001>
host=dynamic
context=my-context
qualify=yes

But now using the same credentials I am unable to register my softphone on Asterisk Server.It gives error “No matching peer found”. Is there a part of Asterisk Registration I am missing?


#2

[quote][008C8F9D]
type=friend
username=1001
secret=1234
regexten=1001
callerid="James " <1001>
host=dynamic
context=my-context
qualify=yes[/quote]

i guress that for registration is [008C8F9D] that matters and not username field.


#3

Follow the security guidelines and don’t confuse sip.conf device names with extensions.conf extensions numbers, and you should have no problem.