Freepbx / Asterisk PJsip Multipe Devices

Home » Asterisk Users » Freepbx / Asterisk PJsip Multipe Devices
Asterisk Users 13 Comments

Hello,

I have some user that had have a hardwarephone and an softphone. I use pjsip driver and set “Max Contacts = 2” to have register both at the same time.

But Only the softphone is ring. the hardware phone is mute.

How can i fix this?

13 thoughts on - Freepbx / Asterisk PJsip Multipe Devices

  • Hi, look at your registrations, is the hardware phone registered?
    if yes, which phone vendor do you want to connect? can you make outgoing calls with hardwarephone?

    BR Cyril

    Am Mittwoch, den 06.02.2019, 13:00 +0100 schrieb basti:

  • both phones are registered. and the hardware phone can also make calls. but an incoming call is not displayed and also not hearing.

    Call Waiting is also disabled.

  • Are both the hardware phone and the softphone on the same network?

    If not, is one behind NAT and the other directly routed?


    “The tofu battle I saw last weekend was quite brutal.”

    – Marija Danute Brigita Kuncaitis

    Please reply to the list;
    please *don’t* CC me.

  • If you shut down the softphone, does the hardware phone then ring?

    Antony.


    The truth is rarely pure, and never simple.

    – Oscar Wilde

    Please reply to the list;
    please *don’t* CC me.

  • both phones are in the same net. when the soft phone is shut down, on hardware phone only an led is flashing to show an incoming call but no sound.

    both phones use the same extension. that is the reason why I use pjsip.

  • You can do this in the dial plan. Register the devices separately and include both addresses in the Dial() command.

    Mitch

  • that was my first idea.

    and how should an other user know which number he should dial?

    user a: soft phone extension 100
    hardware phone extension 101

  • Eric sent you a link of how to do it at the PJSIP level. To do it in the dial plan, something like

    exten => _6XXX,1,Dial(PJSIP/SoftPhone&PJSIP/HardwarePhone)

    Mitch

  • I think the question was “how do I do this with FreePBX”, and a dialplan suggestion is likely difficult to do that way.

    I use groups: each phone has a different extension number (e.g., 601, 602, etc), and I created a dial group (600) which contains the phones’ extensions. Then, a caller merely needs to dial 600 and it’ll ring at several places. I’ll leave it as an exercise for the reader to figure out how to dial from extension 601 but supply callerid = 600.

    —–Original Message—

  • Or just do it right using the PJSIP_DIALPLAN_CONTACTS function:

    Dial(${PJSIP_DIAL_CONTACTS(${EXTEN})})

    With best regards

    Florian Floimair Innovation – Software-Development

    COMMEND INTERNATIONAL GMBH
    A-5020 Salzburg, Saalachstraße 51
    http://www.commend.com <http://www.commend.com/>

    Security and Communication by Commend

    FN 178618z | LG Salzburg

    Am 06.02.19, 15:26 schrieb “asterisk-users im Auftrag von Mitch Claborn” :

    You can do this in the dial plan. Register the devices separately and
    include both addresses in the Dial() command.

    Mitch

    >>>>>> Hi,
    >>>>>> look at your registrations, is the hardware phone registered?
    >>>>>> if yes, which phone vendor do you want to connect? can you make
    >>>>>> outgoing calls with hardwarephone?
    >>>>>>
    >>>>>> BR Cyril
    >>>>>>
    >>>>>> Am Mittwoch, den 06.02.2019, 13:00 +0100 schrieb basti:
    >>>>>>> Hello,
    >>>>>>>
    >>>>>>> I have some user that had have a hardwarephone and an softphone. I
    >>>>>>> use pjsip driver and set “Max Contacts = 2” to have register both at the
    >>>>>>> same time.
    >>>>>>>
    >>>>>>> But Only the softphone is ring. the hardware phone is mute.
    >>>>>>>
    >>>>>>> How can i fix this?
    >>>
    >>
    >