Can I specify contacts in the Dial command?

I’m trying to dial multiple contacts in my dialplan using the Dial command. Specifically, I want to dial specific contacts that are associated with an AOR.

When I run pjsip show contacts, I get the following output:

Contact:  <Aor/ContactUri..............................> <Hash....> <Status> <RTT(ms)..>
==========================================================================================
Contact:  XXXXXXXXXX/sip:geslrish@<ip>:61504; 9be7d75545 Avail        43.444
Contact:  XXXXXXXXXX/sip:sqi057u1@<ip>:61505; 6300c6ag3 Avail        49.032

I want to dial all of these contacts. I’ve been able to send a MESSAGE to a specific contact using the MessageSend command, but I’m having trouble doing the same with the Dial command.

Is it possible to specify contacts in the Dial command? If so, how would I go about doing this?

Any help would be greatly appreciated.

The PJSIP_DIAL_CONTACTS function will generate the correct first parameter to Dial to do this.

The syntax for doing this from first principles is also documented, but should also be deducible from using that function.

Thank you for your response.

I referred to the following topic:

And I was able to dial by adding “transport=ws” to the contact and escaping the semicolon!

For example, I specified the following in Dial:

PJSIP/XXXXXXXXXX/sip:geslrish@<ip>:61504\;transport=ws&PJSIP/XXXXXXXXXX/sip:sqi057u1@<ip>:61505\;transport=ws

This worked perfectly. Thank you for your help!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.