Can you use  sed  in the exec_dset() command?

 

-mark

 

-----Original Message-----
From: serusers-bounces@lists.iptel.org [mailto:serusers-bounces@lists.iptel.org] On Behalf Of
Mark Wehberg
Sent:
Friday, June 25, 2004 10:27 AM
To:
serusers@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