0

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:1000@172.0.0.0 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?

iosdev1111
  • 1,048
  • 1
  • 13
  • 32

2 Answers2

0

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]);
iosdev1111
  • 1,048
  • 1
  • 13
  • 32
0

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.

Faheem
  • 39
  • 6
  • I'm new to Linphone, how do you set custom headers in Linphone? Googling just brings be back to this answer. – Aaron_H Jun 16 '22 at 17:48