-------------------------------------------------------------------------- REGISTER sip:172.16.12.231 SIP/2.0 From: sip:olduser@bevocal.com To: sip:olduser@bevocal.com Contact: sip:olduser@encamed006:5060;transport=udp;q=1;action=proxy;expires=3600 Call-ID: 12729303125234000@encamed006.bevocal.com CSeq: 12317 REGISTER Content-Length: 0 --------------------------------------------------------------------------
Hi List,
I was trying to replace user name "olduser" using rewriteuser("newuser") before saving in user db with save("location") with "newuser", but it it ignoring my rewriteuser("newuser") function in ser.cfg.
I am trying to forward newuser invite to olduser user agent.
Please find attached ser.cfg.
Plz help me to find how to configure ser.cfg to achieve this.
Thanks in advance. Karun
rewriteuser changes the user in the request URI. But REGISTER request do not have user in the request uri.
The important header in REGISTER messages are: Contact: the current location of the client To: the aor (public name) of the client
Thus, you have to rewrite the To: header.
regards, Klaus
Karun Chemudugunta wrote:
REGISTER sip:172.16.12.231 SIP/2.0 From: sip:olduser@bevocal.com To: sip:olduser@bevocal.com Contact: sip:olduser@encamed006:5060;transport=udp;q=1;action=proxy;expires=3600 Call-ID: 12729303125234000@encamed006.bevocal.com CSeq: 12317 REGISTER Content-Length: 0
Hi List,
I was trying to replace user name "olduser" using
rewriteuser("newuser") before saving in user db with save("location") with "newuser", but it it ignoring my rewriteuser("newuser") function in ser.cfg.
I am trying to forward newuser invite to olduser user agent.
Please find attached ser.cfg.
Plz help me to find how to configure ser.cfg to achieve this.
Thanks in advance. Karun
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers