I am using the UserAgentClient Example with a few modification on the FROM Header, but I am not able to change the Contact Header.
It is always "anonymous@...."
I could find out, that I can change the host part, with sipTransport.ContactHost = "siptrunk.example.net"; but not the User Part.
I need to change it, to another value, because my SIP Trunk Provider checks the Contact Header.
Is there a possibility to change that?
I am using this calldescriptor:
// Start the thread that places the call.
SIPCallDescriptor callDescriptor = new SIPCallDescriptor(
SIPConstants.SIP_DEFAULT_USERNAME,
DEFAULT_PASSWORD,
callUri.ToString(),
"sip:+4xxxxxxxxxx@siptrunk.example.net",
callUri.CanonicalAddress,
null, null, SIPConstants.SIP_DEFAULT_USERNAME,
SIPCallDirection.Out,
SDP.SDP_MIME_CONTENTTYPE,
offerSDP.ToString(),
null);
uac.Call(callDescriptor, null);
Hello!
I am using the UserAgentClient Example with a few modification on the FROM Header, but I am not able to change the Contact Header.
It is always "anonymous@...." I could find out, that I can change the host part, with
sipTransport.ContactHost = "siptrunk.example.net";
but not the User Part.I need to change it, to another value, because my SIP Trunk Provider checks the Contact Header.
Is there a possibility to change that?
I am using this calldescriptor:
Thanks!