No matching peer found while registration -Asterisk

Hi

We are using PJSUA with asterisk to register new sip extensions within our office , however we are having difficulties in registering new extensions .

below is the command we use with PJSUA :
./pjsua-i686-pc-linux-gnu --id=sip:99991@000.00.0.00:5060 --registrar=sip:000.00.0.00:5060 --realm=* --username=99991 --password=99991 --log-file=log --log-level=6

When we run the above command we get the below Response :
13:35:59.895 pjsua_acc.c …SIP registration failed, status=403 (Forbidden (Bad auth))

ON the (asterisk) , I see the below error under full log :
[2012-08-28 13:31:39] NOTICE[4484] chan_sip.c: Registration from ‘’ failed for ‘192.16.0.61’ - No matching peer found

can you please explain what does it mean by No matching peer found .
Also Can you please tell us the way/method to create Extensions without using GUI ?
Regards
Jay

You have no

[99991]

section in sip.conf (or in users.conf - typically used by GUIs) identifying it as a sip device.

You do not register sip extension, you register sip devices.

To create a new sip device manually, you normally add a section to sip.conf.

To create a new SIP extension, you add an entry to extensions.conf (.ael, etc.) which matches the extension number. It is possible, although bad practice, even if done by most GUIs, to make devices and extensions have the same name, in which case a wild card pattern in extensions.conf may meet the requirement for the extensions.conf entry.

Below is the interactive steps from pjsua which worked couple of days ago when we added a new extension :
+a indicates adding a new account :

+a
Your SIP URL: (empty to cancel): sip:3333@192.16.0.61:5060
URL of the registrar: (empty to cancel): sip:192.16.0.63:5060
Auth Realm: (empty to cancel): *
Auth Username: (empty to cancel): 3333
Auth Password: (empty to cancel): 8abc83zxws
18:51:30.204 pjsua_acc.c Adding account: id=sip:3333@172.16.0.61:5060
18:51:30.204 pjsua_acc.c .Account sip:3333@172.16.0.61:5060 added with id 2
18:51:30.204 pjsua_acc.c .Acc 2: setting registration…
18:51:30.205 pjsua_core.c …TX 546 bytes Request msg REGISTER/cseq=40829 (tdta0x9eeaca0) to UDP 192.16.0.63:5060:
REGISTER sip:192.16.0.63:5060 SIP/2.0
Via: SIP/2.0/UDP 192.16.0.61:5060;rport;branch=z9hG4bKPj0dd375a7-d9e0-4954-b7cd-5ae6d1eb2025
Max-Forwards: 70
From: ;tag=c2ca1504-3719-4af3-b8e4-a58d900fee24
To:
Call-ID: 80609035-4a69-404d-b795-71993e541b16
CSeq: 40829 REGISTER
User-Agent: PJSUA v2.0.1 Linux-2.6.18.194/i686/glibc-2.5
Contact:
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0


THe Reason we want a command line way/method to create extensions is because we have another application which would initate a service call and allocate extension to the users when they sign up .
so we would like to know it is possible instead of GUI .

Please Help.