How to make dialplan rules for outbound calls only

Status
Not open for further replies.
I am trying to properly set a rule for cidlookup for outbound calls.
Currently, my cidlookup rule is this:
Code:
order: 98
condition : destination_number : ^.*$
action : cidlookup : $1
action : set : effective_caller_id_name=${cidlookup(${caller_id_number})}
 
I tried to use "direction" as condition, but is not working. Infatc it is not showing neither in the "Type" dropdown.

At the moment I set up a condition, destination_number : ^(destionation_number), in the cidlookup dialplan and it seems to work, looking up the cid only for the inbonud calls.
 
Status
Not open for further replies.