Hi,
Can anyone help? I want to get from the URI the user value and insert into the <rewrite("sip:user@domain")> command in the ser.cfg. Please help...Thanks.
Regards, Shirley
On Jan 07, 2004 at 22:50, Shirley Toh shirleytoh@jpcomputers.com.sg wrote:
Hi,
Can anyone help? I want to get from the URI the user value and insert into the <rewrite("sip:user@domain")> command in the ser.cfg. Please help...Thanks.
If you want to rewrite only the domain or domain and port and keep the user, then use rewritehostport("host:port") or rewritehost("host").
You could also use subst_uri from the textops module to run a reg.exp. substition on the uri (e.g.: /sip:([^@]+)@.*/sip:test_\1@domain/).
Andrei