Asterisk course

SIP extension

A minimal PJSIP endpoint.

An endpoint needs an auth object, an AOR, and the endpoint itself. The softphone’s username and password must match. Codecs should overlap — start with ulaw/alaw in a lab so you are not debugging transcoding and registration at the same time.

Watch pjsip show endpoints and pjsip set logger on while the phone registers. A 401 followed by a successful REGISTER is normal. A tight loop of 401s is a password or username mismatch.