Phones Wont Register

Also having a similar problem. Just installed the newest version of FreePBX as the OP. We have an external phone that we can’t register. Tried with SIP and PJSIP, cannot make or receive calls (goes straight to VM). Can anyone help shed some light?

        -- Executing [[email protected]:5] Gosub("PJSIP/1805-0000000f", "sub-presencestate-display,s,1(1321)") in new stack
[2014-11-17 17:43:27] WARNING[11090][C-00000010]: func_presencestate.c:133 presence_read: PRESENCE_STATE unknown
        -- Executing [[email protected]:1] Goto("PJSIP/1805-0000000f", "state-,1") in new stack
    -- Goto (sub-presencestate-display,state-,1)
    -- Executing [[email protected]:1] Set("PJSIP/1805-00000030", "PRESENCESTATE_DISPLAY=") in new stack
    -- Executing [[email protected]:2] Return("PJSIP/1805-00000030", "") in new stack

As we sit and wait, this shows up in the console.

[2014-11-17 17:49:31] NOTICE[7894]: res_pjsip/pjsip_distributor.c:255 log_unidentified_request: Request from '"Unknown" <sip:[email protected]>' failed for '181.71.181.151:5060' (callid: [email protected]:5060) - No matching endpoint found
[2014-11-17 17:49:31] NOTICE[7894]: res_pjsip/pjsip_distributor.c:255 log_unidentified_request: Request from '"Unknown" <sip:[email protected]>' failed for '181.71.181.151:5061' (callid: [email protected]:5060) - No matching endpoint found

If we check for connected sip peers …

FreePBX*CLI> sip show peers
Name/username             Host                                    Dyn Forcerport Comedia    ACL Port     Status      Description           
1321                      181.71.181.151                              Yes        Yes         A  5060     OK (1 ms)              

Along with an entry for the inbound and outbound trunk, sip_additional.conf says …

[1321]
deny=0.0.0.0/0.0.0.0
secret=VerySecret123
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=office.domain.com
trustrpid=yes
sendrpid=no
type=friend
nat=force_rport,comedia
port=5060
qualify=yes
qualifyfreq=60
transport=udp
avpf=no
force_avp=no
icesupport=yes
encryption=no
callgroup=
pickupgroup=
dial=SIP/1321
[email protected]
permit=0.0.0.0/0.0.0.0
callerid=Name <1321>
callcounter=yes
faxdetect=no
cc_monitor_policy=generic

Note everything was working before the upgrade. All secrets and settings were transferred exactly step-by-step according to extension.

@xpat

You are registering as a PJSIP extension when you created a SIP extension. That is your issue.

I do see that. Why would it be trying to register as PJSIP? This happens even if I recreate the extension as SIP from step one.

Have you been able to resolve this problem. I am running to the same issue.

Thanks,
EMP

You are registering to pjsip (port 5060) when you have configured it as chan_sip (port 5061). Either change your device to register to port 5061, change the endpoint to pjsip, or change the ports (Sip Settings)

EMP, yes we fixed it. To be honest, I don’t know what the problem was, perhaps as xrobau suggests, it was simply a port issue (although I recall trying trying to change that without success, perhaps it was my mistake). I ended up resetting the phone, recreating the extension and associated settings, everything works now.