Get caller and callee from Linphone

I have asterisk server and I am using Linphone to register user and initiate call. Can I get caller and callee from Linphone before initiating the call. I have to use caller and callee value in my java code. Can you please provide me the way to get caller and callee value from Linphone

This question sounds too easy, which may mean that you are either not asking for the obvious, or you are not asking how to do it on Asterisk, but on some product, like FreePBX, which uses Asterisk internally, or you are talking about Linphone APIs, and Asterisk is irrelevant.

Callee is ${EXTEN} at the start of dialplan execution. Caller is ${CALLERID(num)}.

we are getting EXTEN and ${CALLERID(num)} after call is intialized. can we get caller and callee before call is initialized. If yes can you please provide me way how can we use that in my java code. For connecting java to Asterisk I am using AMI.

On Monday 10 February 2025 at 11:14:42, vandana738 via Asterisk Community
wrote:

we are getting EXTEN and ${CALLERID(num)} after call is intialized.

What do you mean by “initialized”?

can we get caller and callee before call is initialized.

If you mean “before the call arrives with Asterisk and enters the dialplan”,
then no.

Antony.


“Hi, I’ve found a fault with the English language and I need an entomologist.”
“I think you mean an etymologist.”
“No. It’s a bug, not a feature.”

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