Hi Everyone,
I’m new to asterisk. I’m trying to create a phone for my toddler so he can dial a single number and hear a clip from paw patrol (or something similar).
I have asterisk (and my configuration) working with a softphone, but I’m having issues getting it working with the physical phone. I’m using a Linksys PAP2 with the cheapest old fashioned phone that I can.
The configuration was taken from Hello World - Asterisk Documentation. My configuration is:
pjsip.conf:
[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0
[6001]
type=endpoint
context=from-internal
disallow=all
allow=ulaw
auth=6001
aors=6001
[6001]
type=auth
auth_type=userpass
password=unsecurepassword
username=6001
[6001]
type=aor
max_contacts=5
sip.conf:
[general]
context=default
[6001]
type=friend
context=from-internal
host=dynamic
secret=unsecurepassword
disallow=all
allow=ulaw
extensions.conf:
[from-internal]
exten = 100,1,Answer()
same = n,Wait(1)
same = n,Playback(hello-world)
same = n,Hangup()
In the PAP2 configuration, I set the dial plan to “x” (IP dialing disabled, emergency number blank).
When I dial “1”, I immediately get a busy tone. When I dial any number other than “1”, I get the error message:
[Dec 16 19:38:12] NOTICE[3291]: res_pjsip_session.c:4022 new_invite: 6001: Call (UDP:192.168.1.144:5060) to extension '2' rejected because extension not found in context 'from-internal'.
Because the softphone works, I suspect that the issue is somewhere in the PAP2. I know this isn’t a PAP2 forum, but this is the right audience.
Does anyone know what I need to do to get it working?
Thanks!