dpinedo - 2012-09-13

Hi,
I'm redirectin calls with d_routing module. The redirection works properly. But I'd like
to have information of the redirection in the SIP messages. Because when I redirect a call I
can't see the information of the redirected URI in the SIP messages.
What I have in the dr_gateways is:
+---+----+----+------------+-----+--------+-----+--------+-------------------+
| id | gwid | type | address          | strip | pri_prefix | attrs | probe_mode | description                 |
+---+----+----+------------+-----+--------+-----+--------+-------------------+
|  1 | 1    |    1 | 666999@192.1.44.2 |     0 | 666999     | NULL  |          0 | Prism Server               |

and in dr_rules:
+-----+------+-------+------+-------+------+-----+-----+---------------+
| ruleid | groupid | prefix   | timerec | priority | routeid | gwlist | attrs | description           |
+-----+------+-------+------+-------+------+-----+-----+---------------+
|      3 | 5       | 93111222 |         |        0 | NULL    | 1      | NULL  | Calls From the street |
+-----+------+-------+------+-------+------+-----+-----+---------------+

When I make a call to the number 93111222 and a
do_routing("5")
the call is redirected to the host 192.1.44.2, but to the user 93111222 instead 666999
1) There is a way to redirect to a especific SIP user, not only a host?

When I recive the call in the host 192.1.44.2 the called user in SIP package is
93111222@OpenSIPSserver
and I can't see any information about the redirected URI (666999@192.1.44.2).
I can add this information with
add_rr_param(";redirection=usera@192.1.44.2");
in the "opensips.cfg", but I have to do it hardcoded, and I'd like to do it as a result of
the do_routing("5") function (or something similar). So..
2) There is a way to include the redirection information in the SIP package?

Any idea?

Thanks