Thanks,
Looks like it all just about hangs together, no authentication so that
reduces a layer of complexity!
Neill.....;o)
-----Original Message-----
From: Bogdan-Andrei Iancu [mailto:bogdan@voice-system.ro]
Sent: 18 January 2006 21:33
To: NEILL WILKINSON
Cc: users(a)openser.org
Subject: Re: [Users] textops regular expression matching = subst to replace
from field
Hi Neill,
NEILL WILKINSON wrote:
Bogdan,
thnx for the reply. I'll take a look at the UAC module.
Correct me please, if am wrong, but to achieve 3rd Party registration,
the To: field matches the AoR (e.g. boss(a)company.com
<mailto:boss@company.com>), request URI matches the registrar server
I'm sending the message to, and the From field is (basically) who is
registering the message, for 3rd party registration this could be for
example secretary(a)company.com <mailto:secretary@company.com>
that's correct
If in openser I get a register message - at this point
correctly
intended for the server, I want to "artificially" rewrite the message
to send on to another registrar, but with the From field populated
with a psuedo URI. Then I need to modify the REGISTER to contain the
registrar address I'm "forwarding" to, the From field to my psuedo 3rd
party and the rest of the header remains the same.
When the registrar I'm forwarding to receives the message it will
import the AoR from the To: field and the contact information.
Vola - 3rd party registration?
sound reasonable but you should be sure that the server accept 3rd party
registration. Also if authentication is required, the new FROM will be
challenged....
I know this sounds painful - but I'm trying to acheive something
pretty painful too! :o)
uac_replace_from () looks to be what you're suggesting?
yes - see
http://openser.org/docs/modules/1.1.x/uac.html#AEN108
to "reduce the pain", you may set the "from_restore_mode" to
"auto" ;)
regards,
bogdan
Regards,
Neill.....;o)
*/Bogdan-Andrei Iancu <bogdan(a)voice-system.ro>/* wrote:
Hi Neill,
there are two issues with what you are trying to do:
1) for REGISTER the TO hdr is used to identify the hdr and not FROM
2) if you change TO or FROM hdrs you may broke transaction matching
for replies on the UAC.
BTW, for proper FROM changing, look at the UAC module
regards,
bogdan
Neill Wilkinson wrote:
Hi all,
Looking to get a way to replace the From field in a REGISTER
message to the
forward on to another Registrar, as a third party
registration
I've tried something along the lines of:
If (subs("/(^From:)([ ]*)/\1 sip:newaddress@new.server/I"))
log(1,"Match!\n");
else
log(1,"No match\n");
I basically need help with the Regex syntax and a good means of
checking -
is egrep or sed a good means of testing?
Thanks.....
Neill...;o)
---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0603-2, 17/01/2006
Tested on: 1/18/2006 11:16:18
avast! - copyright (c) 1988-2004 ALWIL Software.
http://www.avast.com
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users
---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0603-3, 18/01/2006
Tested on: 1/18/2006 23:10:19
avast! - copyright (c) 1988-2004 ALWIL Software.
http://www.avast.com