line is an optional URI parameter that allows calls from the same IP address to be distinguished. It’s been supported in chan_pjsip for outgoing registrations for a long time, and looks like has it has been recently added to the FreePBX GUI:
You are simply seeing it being used in the inbound registration direction, where its use should be completely transparent, as even unknown parameters should just be sent, as is, in outgoing requests.
Is your SIP-channel-driver in settings/advanced setting on “both” or non pjsip only? Can you find the new extension at admin / config edit → xxxsip.endpoint.conf. I would try to create a new pjsip endpoint, which may be either listening in port 5160 or on port 5060 is sip settings are “both”.
SIP Channel driver WAS set to ONLY PJSIP when I first set up this sever…when issue of endpoints arose, I enabled BOTH Chan_sip and Chan_pjsip and set my Ports etc accordingly - but that did not fix it…
Yes - the extension 111 does exist in that config file but NOT show when I run pjsip show endpoints or pjsip show contacts. … I copied this from the pjsip.config…
[111]
type=endpoint
aors=111
auth=111-auth
tos_audio=ef
tos_video=af41
cos_audio=5
cos_video=4
allow=
context=from-internal
callerid=Bret Martin <111>
There’s no allowed codecs, which is an invalid configuration for the endpoint. This would result in the endpoint not being loaded, and it would not show up in “pjsip show endpoints”.
OK - I thought the Global setting would take care of it - I left the extensions Allow/Disallow default which is for this extension…
Disallowed Coceds … Blank
Allowed Codecs…yes ( I did not put the “yes” there )
So OK what are the best practice settings for an individual extension… for the Disallowed and Allowed Codecs?
I remember seeing
Disallowed = ALL
Allowed = g729&ulaw&g722
(Having two endpoints register with exactly the same address doesn’t seem to be a good idea, even though one is deleted before the attempt to add the other. I don’t think that is why the authentication failed.)
seems not to be the point.
Both endpoints allow for 5 connects at the same time.
I can register at 92 with 3 different hardphones, softphones and whatever on port 5060, 5061.
All comming via NAT (in fact 192.168.50.xxx internal and same routers address 91.22.xxx.yyy)
It work at 92
None is registering at endpoint 91.
In the example above I de-registered at 92, changed the yealink account to 91, put in the new password - and errormessage. not registered.
config for 92 and 91 is identical in pjsip.endpoint.conf, aor.conf and auth.conf PW is cp - paste from admin-gui to yealink gui.
May there be any misconf in settings - advanced settings or in sip-settings? I changed some things after the creation of 92 and before setting up 91, specifically for http.conf because of trying a solution for web-rtc.
Not if they have the same port as well and don’t use something like a line parameter to disambiguate them. It looks like the contact did include a user, so, if the other side were FreePBX, it wouldn’t be able distinguish the endpoint, but the DIDs would still be different, so a different incoming route could be matched.
I did point out that it was de-registering, so there wasn’t actually a conflict I just felt it was pushing the boundaries a little too much for comfort.
I have to say, that 91 does not have an incomming route until now. But in the first step I just wanted to create a situation, where extensions within the FreePBX can talk to each other and maybe can talk and see each other by using plain asterisk webrtc video conf from PC to PC. Thing is that 20 Zulu licences with UCP are fare to expensive for more or less private use.
What is a line parameter and where do I input such one? Finally the goal for this FreePBX will be to substitute 3 on-premise installations by one cloud-FreePBX where 20 extension shall register shall register from one (external) IP (yealinks behind a local router), 5 from another ext. IP, and further 5 from a third IP. In addition PCs with softphones may come from a 4th IP and maybe some mobile phones register with their providers IP.
Therefore my current private FreePBX will grow to my corporate PBX - once I fullfills the required needs.
You are probably better off ignoring line= unless there is evidence that it is really needed. Simultaneous registrations from the same IP might end up being distinguished by port number.
However, in the immediate context, this is something that would have to be configured on the phones. I noticed one phone configuration screen shot, posted today, seems to have an option to enable them.
I posted a link about using one the other way, from FreePBX, in the last few days, i.e. when you have multiple accounts with the same ITSP, from a single FreePBX box.
At this point we should be looking at the results of pjsip set logger on to see what is happening during the REGISTER process and that the device is sending things properly.