I am creating a channel using the ARI as described here:
POST /channels/create¶
And I will be trying to create a channel to ALL endpoints registered to a single PJSIP extension. I was able to get the URI for contacting all 3 of the endpoints using the PJSIP_DIAL_CONTACTS function, and it returned:
PJSIP/123/sip:123@192.168.1.10:5060&PJSIP/123/sip:123@192.168.1.20:5060;line=8554&PJSIP/123/sip:123@192.168.1.20:5060;line=5534
In order for me to use the create function above, I have to pass the “endpoint” variable. Can I pass everything that PJSIP_DIAL_CONTACTS returned, and the pjsip channel driver will call all three (like a ring group) and only the first handset that answers will get the call? Or do I have to create 3 channels in the bridge (one for each endpoint in the returned URI), and then delete the other two as soon as the first has answered?
Also can I safely pass the “;line=xxx” suffix into as the endpoint variable for this ARI function? Or do I have to trim off the “;” and everything after as shown below:
PJSIP/123/sip:123@
192.168.1.20:5060;line=5534
becomes
PJSIP/123/sip:123@
192.168.1.20:5060