iosdev1111
iosdev1111

Reputation: 1112

How to set caller id or remote pary id linphone?

I have one ios application with audio calling functionality using linphone. I have to change caller id or remote party id. i.e. I have registered with 1000 number. But while calling i have multiple DIDs to choose from in my application. Does linphone provide any option other than setting custom header for this?

From: "1000" sip:[email protected] I have registered with 1000 but at time of calling i want to use 1001. So in above invite header i want to replace 1000 with 1001.

Here i want to change from to other DID at time of calling. Does linphone provide any option for this?

Upvotes: 0

Views: 2706

Answers (2)

Faheem
Faheem

Reputation: 41

You can change CallerID by adding a SIP Header Remote-Party-ID: "<NEW_CALLERID>". No Need to change the FROM Header. If you change the FROM Header it will break the SIP Authentication & Authorization Flow.

Upvotes: 0

iosdev1111
iosdev1111

Reputation: 1112

It seems like as of now linphone for ios is not providing such options.

So, i have set parameter as custom header using below code.

 linphone_call_params_add_custom_header(lcallParams,"X-HeaderName",["1001" UTF8String]);

Upvotes: 0

Related Questions