How to configure Asterisk as SIP server

hello,

i have installed asterisk1.4.4and also Asterisk GUI 2.0

it’s working well , but i want to configure Asterisk as a SIP Server and to create two Sip user accounts. so that two sip clients (say X-lite)can register and make call to each other.

any suggestions and ideas are appreciated

Thanks
Chandu

If you add them as users inside a context you should be able to do this.

hello ,

i added 2 user accounts in sip.conf

[1000]
type=friend
secret=1000
host=dynamic
callerid=“xyz”<1000>
context=test
allow=ulaw
[2000]
type=friend
secret=2000
host=dynamic
callerid=“abc”<2000>
context=test
allow=ulaw

and in the extensions.conf under the context " test" i added

[test]
exten => 1000,1,Dial(SIP/1000)
exten => 2000,1,Dial(SIP/2000)

if i execute the command at CLI
*CLI>sip show users

am getting the above added user list but, when i try to register with SIP softphone(ekiga), geting a message registration failed

am not geting where i did the mistake,
pls help me in fixing this

Regards
chandu

c

Please do the following:

  1. Paste the output when you do a “sip show users”.
  2. Make sure verbosity is at least 5 (Enter the asterisk cli via “asterisk -rvvvvv”)
  3. Paste any output that is generated in the CLI when you try to register your SIP phones with your asterisk server.

With all this present, a solution may make itself available…

Also check your softphone configuration. I presume the “registration failed” message is being reported by the softphone (as opposed to Asterisk)? Unless the softphone is configured correctly, the registration attempt is not even reaching Asterisk…