Simone,
At a first glance, make Your magic on the route[INBOUD], just after
ALIAS lookup.
Didn't see further, but you should make the same some point before use
of some forward function (t_relay,p.ex.)
Edson.
P.S.: Your configuration file is a mess to read, since you are asking us
to read, understand and provide solutions to _your_ problems, could you,
at least, provide some indentation and clean all unused and commented
command lines??? It would help....
Em 17/06/2011 06:50, Simone Felici escreveu:
Hi to all,
I need to edit our ser installation (OLD ser-2.0.0-rc1) implementing a
check to rewrite the INVITE URI address in case a flag on a DB is set or
not. I'm not proof on this and as always the solution is to find out on
the production system without the possibility (for now) to upgrade to
most recent version. In fact I would load the flag with the db_ops module.
The scenario should be the follow:
1. a call is coming from sip or from pstn to an internal sip account
2. the ser should check if a given flag for the called account is set
(db_ops)
3. if it's set it should take the destination URI (taken from location
db table) and rewrite the number to another known number. i.e. from
sip:123456789@IP;uniqu=... to sip:new987654321@IP;uniq=...
My first issue is to identify WHERE ser execute the INVITE to the sip
account and how rewrite the URI.
Could someone point me to the right place and give me some suggestion?
The ser.cfg used could be read from a previous post of me:
http://www.mail-archive.com/sr-users@lists.sip-router.org/msg04900.html
Thank's a lot!
Simon
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users