Just separate the dialstrings for A and B with an ampersand in the parameters of Dial.
I believe FreePBX also supports this, but the user interface for configuring will be different, so you will have to ask on their forum.
In fact, this is one of the reasons why FreePBXâs use of the term extension is confusing, as they use it for A and B, whereas, as per your usage, Asterisk only uses it for 3001.
Iâm not sure what you mean by this. In the example provided with FreePBX 3001, 3002 and 3003 would be extensions on the system. 3001 would be A, 3002 would be B and 3003 would be C. They would like that B also has Aâs extension on their phone so they both can answer it. This is not an uncommon setup.
In most SIP systems the ability to have multiple devices registered or associated with a single account (or extension/peer/endpoint) is very very common. Asterisk has lacked in this until the introduction of PJSIP. So the answer in this case is that 3001 be a PJSIP based extension so that both A and B can have them as accounts on their phones.
And while doing Dial(SIP/3001&SIP/3002) will also work, it will also be based on the states of those two. So if B has 3002 DNDâd or something theyâll never get the calls being dialed as theyâll be ignored. If they are just doing Dial(PJSIP/3001) then B will get dialed no matter what their personal extension state (3002) is.
In Asterisk only things that appear immediately after â=>â in extensions.conf are extensions. In particular, in a simple case, there may be no way of ringing just A or just B.
Some other PABXes (e.g. SL/1 (although it has since been renamed and may be obsolete), or even main network switches, like System X, use the terms directory number, for what Asterisk calls an extension, and equipment number for what appears after SIP/. The OP clearly understood this distinction, but failure to understand it often leads people to not using the full power of Asterisk.
Although it is a violation of best practice (because it makes it easy for attackers to guess the user part of the device authentication data), a lot of things take advantage of making the equipment number the same as the primary directory number, which means people fail to see the distinction. Suggested best practice is to use MAC addreses as equipment numbers.
When used with circuit switched devices, this confusion doesnât arise as the equipment numbers are constrained by the hardware/DAHDI.
FreePBX, unfortunately, confuses directory and equipment numbers, in this way. I think they use the concept of a virtual extension to get themselves out of the limitations that this introduces.
This is an Asterisk (maybe even FreeSWITCH) thing. In the PBX world (SIP or not) people refer to their accounts as an Extension. Hence âIf you know your partyâs extension you may dial it at anytimeâ common recording in IVRs because to norms out there an extension is their phone. It is what you dial to reach a destination. Within Asterisk it is a completely different thing because an extension in the extensions.conf doesnât have to be dialable, it can be called on internally without the users or anyone but the Admin knowing it exists.
However, in the general world of PBXes the concept of an Extension is any destination that is can be dialed by a caller or user and be connected to a user (phone) or an internal application (voicemail, etc). So while Asterisk can have user,bob,1 no regular user will ever grasp how âbobâ is an extension because they canât dial âbobâ or they can but to them it means itâs 202 because thatâs what âbobâ would translate to on their keypad.
Asterisk, unfortunately in the SIP world, has the reputation like Cisco in the networking world (or even in SIP) which is it doesnât 100% follow standards and there are the âAsterisk waysâ of doing things. Chan_SIP was never fully or in some cases close to being RFC compliant. Even PJSIP is lacking some RFC compliance for some important things.
In all my years of using Asterisk Iâve always had something like Kamailio or another variation of a SIP Proxy/SBC that sat in front of Asterisk to help cover the gaps that Asterisk had and still has. Gaps that donât exist on fully or more fully RFC compliant systems.
When IP Phone-C calls the extension-3001, only one phone(IP Phone-A) is ringing. IP Phone-B does not ring. The extensions are configured as PJSIP extension in FreePBX. Is there any specific configuration that needs to be done in FreePBX to enable Shared line appearance?
No, FreePBX will Dial all the known contacts in the AOR record for the PJSIP endpoint. So if this is already a PJSIP endpoint and the phone isnât receiving calls you need to look as to why.
You need to run âpjsip set logger onâ and look at the SIP messages. Is the INVITE being sent to that phone contact? Is a reply coming back?
Are the phones and the PBX one the same local network?
Please note that I am new to Asterisk and I have tried the following to accomplish SLA configuration so any sample configuration inputs would help.Reloaded the core and dialplan after modifying the files however SLA is not working as expected.
Iâve never used sla.conf. If you are using the ability of chan_pjsip to handle multiple concurrent registrations I doubt that would interact with sla.conf at all, and you would only include the one device, corresponding to the AOR, in the dial string.
For chan_sip, you might use SIP/3001_phone1&SIP/3002_phone2 assuming you had used those device names in sip.conf.
I have tried to modify the AORS of the file â/etc/asterisk/pjsip.endpoint.confâ to something like below and when 3001 is dialed from IP-Phone-C, IP-Phone-A receives two calls instead of
IP-Phone-A receiving one call and another call by IP-Phone-B.
[3001]
type=endpoint
aors=3001,3001
If the AORS are modified like below then both IP-Phone-A and IP-Phone-B receives the call but both are on different extensions. When IP-Phone-A answers the call , IP-Phone-B stops to ring
What are you doing? Did you not read anything on PJSIP?
An AOR can have MULTIPLE contacts associated with it. If you have an PJSIP endpoint and the AOR has 5 contacts in it when you do Dial(PJSIP/3001) all 5 contacts are called. If you do Dial(PJSIP/3001&PJSIP/3001) youâre doing nothing but opening two calls to all 5 contacts.
There should be no need to have multiple AORs associated with the endpoint unless you are doing some advanced call routing that is waaaaay outside the scope of FreePBX.
On plain Asterisk the function PJSIP_DIAL_CONTACTS will dial all the contacts associated with the endpoint, but as you re using FreePBX in case the FreePBX dial plan do not use it, you would need to check on the advance settings o alter the dial plan directly on the extensions _ override _ freepbx.conf file
I am not sure where or how to add the contacts to the endpoint in Asterisk.
Say suppose,
Extension 3001(IP Phone-A) has 2 contacts that is ,
Contact-1 = 3002(IP Phone-C) and
Contact-2=3001(IP Phone-B).
When (IP Phone-D) calls Extension 3001, Will both (IP Phone-A) and (IP Phone-B) ring?
If youâre using FreePBX you go into the Advanced tab and set the Max Contacts to the number of total contacts you want to have. they would all use the same user and password to register with.
If youâre just using Asterisk, you set the max_contacts in the aor section of the config.