Search code examples
ioslinphonelinphone-sdkcaller-id

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?


Solution

  • 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]);