Take a look at the functions from the textops module.
Klaus
Mark Wehberg wrote:
Can you use sed in the exec_dset() command?
-mark
-----Original Message-----
*From:* serusers-bounces(a)iptel.org [mailto:serusers-bounces@lists.iptel.org]
*On Behalf Of *Mark Wehberg
*Sent:* Friday, June 25, 2004 10:27 AM
*To:* serusers(a)lists.iptel.org
*Subject:* [Serusers] Replacing URI
Hello Everyone,
I am trying to change the URI within the ser.cfg using the replace
command. Has anyone done this before? What I need to do is strip some
of the info after the “@” and forward the message back out. So, I can’t
necessarily use the rewritehostport (or rewritehost, rewriteport)
commands. Ay help would be greatly appreciated….
Simple Example
INVITE sip:mark@sip.abc.def.com:5060
Want to change to
INVITE sip:mark@sip.def.com:5060
Thanks,
Mark
------------------------------------------------------------------------
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers