I am new to Asterisk and I am porting an old CSTA-based GUI to AMI. Most things work fine already and I can use Originate to start calls. But we use PJSIP with multiple registrations per extension (DECT mobile phone and desktop phone), so Originate rings both devices and the one I pick up is connected to the created call.
I would like to select which device is used for the call, but I don’t find any info about the syntax.
E.g. pjsip show endpoints gave me this:
... Endpoint: 64/64 Not in use 0 of inf InAuth: 64-auth/64 Aor: 64 10 Contact: 64/sip:firstname.lastname@example.org:61068;line=21815 c34f659efb Avail 19.965 Contact: 64/sip:email@example.com:61060;line=bj3vmsc e557fd9af3 Avail 17.545 ...
I tried things like this the following but either I get “Origination failure” or both outgoing phones ring:
Channel: 64/sip:firstname.lastname@example.org:61060;line=bj3vmsc Context: default Exten: 123 Priority: 1
I guess I am missing something obvious, but where in the docu could I find info about this topic?