Hello all,
I need help about this:
When an INVITE packet is received by SER, a Perl script changes the SDP of this INVITE and the result of this script (new INVITE with new SDP) is saved in a txt file.
My question is:
How can I do that SER sends the new INVITE, which is in a txt file.
I have tried to do this with REPLACE command but I think is not possible because It doesn`t accept "regular expression" as substitute and I don´t know how save this new SDP in variables which can be process by SER.
Please help me.
Thank you very much.
_________________________________________________________________ Consigue el nuevo Windows Live Messenger http://get.live.com/messenger/overview
Both replace() and subst() methods of textops module support regexps. Just try latest (pre)release.
Hth, Bogdan.
Benito Caracuel wrote:
Hello all,
I need help about this:
When an INVITE packet is received by SER, a Perl script changes the SDP of this INVITE and the result of this script (new INVITE with new SDP) is saved in a txt file.
My question is:
How can I do that SER sends the new INVITE, which is in a txt file.
I have tried to do this with REPLACE command but I think is not possible because It doesn`t accept "regular expression" as substitute and I don´t know how save this new SDP in variables which can be process by SER.
Please help me.
Thank you very much.
Consigue el nuevo Windows Live Messenger Pruébalo
http://get.live.com/messenger/overview
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Hi,
I'm not 100% sure but if you add/remove stuff from the sdp that ser will update the content-lenght header. Atleast I've had problems with this and subst.
-A * Bogdan Pintea pintea@iptego.de [061109 14:06]:
Both replace() and subst() methods of textops module support regexps. Just try latest (pre)release.
Hth, Bogdan.
Benito Caracuel wrote:
Hello all,
I need help about this:
When an INVITE packet is received by SER, a Perl script changes the SDP of this INVITE and the result of this script (new INVITE with new SDP) is saved in a txt file.
My question is:
How can I do that SER sends the new INVITE, which is in a txt file.
I have tried to do this with REPLACE command but I think is not possible because It doesn`t accept "regular expression" as substitute and I don?t know how save this new SDP in variables which can be process by SER.
Please help me.
Thank you very much.
Consigue el nuevo Windows Live Messenger Pru?balo
http://get.live.com/messenger/overview
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- Bogdan Pintea
iptego GmbH - VoIP Security http://www.iptego.de
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
On Nov 09, 2006 at 14:25, Atle Samuelsen clona@cyberhouse.no wrote:
Hi,
I'm not 100% sure but if you add/remove stuff from the sdp that ser will update the content-lenght header. Atleast I've had problems with this and subst.
Yes, it doesn't always update the content-length (it will work only if the message was fully parsed prior to the subst/replace). An ugly workarround is to use: append_hf("") before any subst/replace that might modifiy the sdp (not tested but it should work).
I could add subst_body, replace_body & replace_all_body if people are interested (should be ok even with the freeze since they don't change anything else and they are a kind of bugfix).
Andrei
[...]