I am trying to set the caller id to appear on the customer’s phone but it keeps showing anonymous.
Checking the documentation, it says I can set it:
- As a parameter
Query parameters => callerId: string – CallerID to use when dialing the endpoint or extension.
POST /ari/channels?endpoint=PJSIP/17162298050@clickproxytrunk&extension=s&context=ac_customer&callerId=12423424587&label=1
- As a body variable
Body parameter
variables: containers – The “variables” key in the body object holds variable key/value pairs to set on the channel on creation. Other keys in the body object are interpreted as query parameters. Ex. { “endpoint”: “SIP/Alice”, “variables”: { “CALLERID(name)”: “Alice” } }
{“variables”:{“ac_phone_id”:”2914552″,”ac_client_id”:”24″,”ac_original_agent_id”:”24″,”ac_calllist_id”:”2090″,”ac_campaign_id”:”50″,”ac_account_id”:”18010965″,”ac_campaign_id”:”50″,”ac_automaticvoicemailstatus”:”2″,”ac_callrecording_path”:”/sc_recordings/client_24/2018-01-04/recording_outbound_10879″,”ac_action_id”:”5″,”ac_stasis_sufix”:”lucas”,”CALLERID(all)”:”666-6666″}}
But none of them worked.