Hi everyone, I have been trying with no success to find out how I can write a dialplan condition based on the agent field as shown in "sofia status profile internal reg". Basically I need to execute my script ONLY if the agent contains a specific string (in my case the string starts with iOS).
On top of this I also want it to execute this condition in the correct place so that I can delay the dialplan from ringing the agent for 2 seconds. I have not yet found the best place to put this using dialplan manager.
Any help or pointers would be much appreciated! Once I have cracked this I will be posting up a howto for IOS push notifications in fusionpbx.
for for example something like below
On top of this I also want it to execute this condition in the correct place so that I can delay the dialplan from ringing the agent for 2 seconds. I have not yet found the best place to put this using dialplan manager.
Any help or pointers would be much appreciated! Once I have cracked this I will be posting up a howto for IOS push notifications in fusionpbx.
for for example something like below
Code:
<condition field="sofia_agent" expression="^([iOS])$">
<action application="set" data="result=${system(/opt/push ${destination_number}@${domain_name} ${outbound_caller_id_number} ${outbound_caller_id_name})}"/>
<action application="sleep" data="2000"/>
</condition>
Last edited: