Author |
|
speedvoip Vetran
Joined: August 07 2008 Location: Canada Posts: 156
|
Posted: October 12 2008 at 10:35pm | IP Logged
|
|
|
With media engine, all SIP messages contain Lanscape-specified and fixed "user-agent" field. So How to change it into my own preferred one?
|
Back to Top |
|
|
support Administrator
Joined: January 26 2005 Location: United States Posts: 1666
|
Posted: October 14 2008 at 8:07am | IP Logged
|
|
|
Hi George,
At the moment, you can’t change the User agent header in SIP that the media engine transmits. Others have requesting this capability also and we have it on our “todo” list. It just a low priority over other things that are needed.
We will probably add this capability to a future rev.
In case others are curious, here is what George is talking about. Below is a typical INVITE request the media engine transmits for an outgoing call. The “User-Agent:” SIP header field is fixed and shown in RED.
Code:
INVITE sip:111@ps SIP/2.0
Via: SIP/2.0/UDP 192.168.1.2:5068;rport;branch=z9hG4bK0f318b2e
From: "Test Phone 333" <sip:333@ps>;tag=f31ee07;x-UaId=xxxxx-yyyy-zzzzzz
To: <sip:111@ps>
Contact: <sip:333@192.168.1.2:5068>;x-inst="VGVzdCBDYWxsIERhdGEgZnJvbSB0aGUgVlBob25lIGFwcC4="
Call-Id: 44d88cca-c95a-423c-97e7-e4b660d2afaa-00001fd4@192.168.1.2
CSeq: 3266823 INVITE
Max-Forwards: 70
Organization: 44388BAF-8E86-4E68-8CB3-4ED9BB21E9C4
x-CustomHeader-Extension-333: "This is a modified transmitted SIP message."
x-ConferenceList: ="1,2"
x-PhoneLine: 0
Content-Length: 434
User-Agent: LanScape VOIP Media Engine/5.12.8.15 (www.LanScapeCorp.com)
Allow: INVITE, ACK, OPTIONS, BYE, CANCEL, SUBSCRIBE, NOTIFY
Content-Type: application/sdp
v=0
o=333 254898593 254898593 IN IP4 192.168.1.2
s=LanScape
c=IN IP4 192.168.1.2
t=0 0
m=audio 20004 RTP/AVP 18 97 0 8 124 125 126 101
a=rtpmap:18 G729/8000/1
a=rtpmap:97 ILBC/8000/1
a=rtpmap:0 PCMU/8000/1
a=rtpmap:8 PCMA/8000/1
a=rtpmap:124 PCM/8000/1
a=rtpmap:125 PCM/11050/1
a=rtpmap:126 PCM/22050/1
a=rtpmap:101 telephone-event/8000/1
a=sendrecv
a=fmtp:18 annexb=no
a=fmtp:97 mode=30
a=ptime:20
a=fmtp:101 0-16
|
|
|
What we will probably do is add a new API that will allow VOIP apps to specify a “Server:” or “User-Agent:” SIP header that the application can define.
Support
|
Back to Top |
|
|
speedvoip Vetran
Joined: August 07 2008 Location: Canada Posts: 156
|
Posted: October 18 2008 at 2:19am | IP Logged
|
|
|
With API ModifySipMessage, user-agent header can be modified into my preferred one?
|
Back to Top |
|
|
support Administrator
Joined: January 26 2005 Location: United States Posts: 1666
|
Posted: October 18 2008 at 1:08pm | IP Logged
|
|
|
Hi George,
You are correct… that will work. Completely forgot about that….
By the way, v6 media engine will contain a new API to specify the contents of all transmitted SIP “User-Agent:” headers.
Support
|
Back to Top |
|
|