Hi,
Raúl Alexis Betancor Santana wrote:
On Friday 04 December 2009 18:25:03 Alex Balashov wrote:
cd sems-1.1.0/apps/dsm
fgrep -HRi header .
That's what I checked :-( ... but looking at the rest of the apps ... I don't
see any direct function to add headers, I saw one to remove headers and to
get headers values .. but not to modify them.
check the latest revision (1623):
B2B.clearHeaders()
clear the headers used for outgoing INVITE on B leg
B2B.addHeader(string header)
add a header for outgoing INVITE on B leg
B2B.setHeaders(string headers [, replace_crlf=true|false])
set headers for outgoing INVITE on B leg
replace_crlf=true for replacing \r\n with CRLF
e.g.
B2B.setHeaders("P-One: value\r\nP-Two: anothervalue", true)
e.g.
B2B.clearHeaders();
B2B.setHeaders("P-Tist: tast\r\nP-help: me\r\n", true);
B2B.connectCallee("sip:[email protected]", "sip:[email protected]")
or
B2B.addHeader(P-Test: tust);
B2B.addHeader(P-Tist: tast);
B2B.connectCallee("sip:[email protected]", "sip:[email protected]")
btw, 1.1.0 DSM is really outdated.
Regards
Stefan
--
Stefan Sayer
VoIP Services Development
Warschauer Str. 24
10243 Berlin
tel:+491621366449
sip:[email protected]
email/xmpp:[email protected]
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems