简体   繁体   中英

How to handle caller id when using Asterisk ARI external to external

Right now, I'm making outgoing calls using Asterisk ARI from my mobile number to another mobile number, using the below request:

endpoint=PJSIP/mynumber&extension=1**other_number&context=from-internal&priority=1&timeout=30

In this situation, I would like to display the custom caller id number, when calling other number. How can I achieve that?

You need to pass your callerid number as Query paramter. add,

callerId=987654321

if you want to display caller id name also,

callerId=<User 1>987654321

*Note the it is "I" (callerId) and not "i" (callerid) in the parameter name.

You just need to add one more query string callerId. It will be like &callerId=1234567890 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM