Hi folks,
I discussed this issue in previous email ( [SR-Users Modifying $rU after lookup() ) but the question is a bit different now.
I would like to change uri like lookup() function does it, but for the specific user. Problem is I want to have one registration (X) for several numbers. When this number is called I have to perform lookup() for this one common registration (X) and send this call there.
To do this I changed $rU just before lookup() for X, and after lookup() I changed it back for the original number (both changes were done using variables $rU). However when there are two registrations (X1, X2), only X1 can be changed for the original number and the second one (X2) is sent to user without modification.
I also found function reg_fetch_contacts(domain, uri, profile) but in documentation there is $ulc variable mentioned. This variable is not documented.
Is there any way how to perform lookup for specific user?
Thanks for the answer.
Regards,
Efelin
Efelin Novak writes:
I would like to change uri like lookup() function does it, but for the specific user. Problem is I want to have one registration (X) for several numbers. When this number is called I have to perform lookup() for this one common registration (X) and send this call there.
perhaps you could define the other numbers as aliases for X.
-- juha
Am 10.08.2011 15:17, schrieb Juha Heinanen:
Efelin Novak writes:
I would like to change uri like lookup() function does it, but for the specific user. Problem is I want to have one registration (X) for several numbers. When this number is called I have to perform lookup() for this one common registration (X) and send this call there.
perhaps you could define the other numbers as aliases for X.
some more hints: Use this function before lookup() to map the user's "aliases" to the user's main identity (under which the registration will be done).
http://www.kamailio.org/docs/modules/3.1.x/modules_k/alias_db.html#id2916034
regards klaus
Hi thanks for answers,
unfortunately I need to send original RURI username (rU) to the user. Setting up aliases_db I came to this situation:
1. RURI: john@domain.com 2. alias_db_lookup("dbaliases") 3. RURI: X@domain.com 4. lookup("location") 5. RURI: X@192.168.1.2
I would like to have john@192.168.1.2 at step 5.
Is it possible somehow?
2011/8/11 Klaus Darilion klaus.mailinglists@pernau.at:
Am 10.08.2011 15:17, schrieb Juha Heinanen:
Efelin Novak writes:
I would like to change uri like lookup() function does it, but for the specific user. Problem is I want to have one registration (X) for several numbers. When this number is called I have to perform lookup() for this one common registration (X) and send this call there.
perhaps you could define the other numbers as aliases for X.
some more hints: Use this function before lookup() to map the user's "aliases" to the user's main identity (under which the registration will be done).
http://www.kamailio.org/docs/modules/3.1.x/modules_k/alias_db.html#id2916034
regards klaus
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Am 12.08.2011 14:31, schrieb Efelin Novak:
Hi thanks for answers,
unfortunately I need to send original RURI username (rU) to the user. Setting up aliases_db I came to this situation:
0. $var(temp) = $rU;
- RURI: john@domain.com
- alias_db_lookup("dbaliases")
- RURI: X@domain.com
- lookup("location")
- RURI: X@192.168.1.2
6. $rU = $var(temp); 7. RURI: john@192.168.1.2
6. only modifies the main branch unless you do it in a branch route.
regards Klaus
I would like to have john@192.168.1.2 at step 5.
Is it possible somehow?
2011/8/11 Klaus Darilion klaus.mailinglists@pernau.at:
Am 10.08.2011 15:17, schrieb Juha Heinanen:
Efelin Novak writes:
I would like to change uri like lookup() function does it, but for the specific user. Problem is I want to have one registration (X) for several numbers. When this number is called I have to perform lookup() for this one common registration (X) and send this call there.
perhaps you could define the other numbers as aliases for X.
some more hints: Use this function before lookup() to map the user's "aliases" to the user's main identity (under which the registration will be done).
http://www.kamailio.org/docs/modules/3.1.x/modules_k/alias_db.html#id2916034
regards klaus
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Thanks,
the branch route worked well.
Efelin
2011/8/12 Klaus Darilion klaus.mailinglists@pernau.at:
Am 12.08.2011 14:31, schrieb Efelin Novak:
Hi thanks for answers,
unfortunately I need to send original RURI username (rU) to the user. Setting up aliases_db I came to this situation:
- $var(temp) = $rU;
- RURI: john@domain.com
- alias_db_lookup("dbaliases")
- RURI: X@domain.com
- lookup("location")
- RURI: X@192.168.1.2
$rU = $var(temp);
RURI: john@192.168.1.2
only modifies the main branch unless you do it in a branch route.
regards Klaus
I would like to have john@192.168.1.2 at step 5.
Is it possible somehow?
2011/8/11 Klaus Darilion klaus.mailinglists@pernau.at:
Am 10.08.2011 15:17, schrieb Juha Heinanen:
Efelin Novak writes:
I would like to change uri like lookup() function does it, but for the specific user. Problem is I want to have one registration (X) for several numbers. When this number is called I have to perform lookup() for this one common registration (X) and send this call there.
perhaps you could define the other numbers as aliases for X.
some more hints: Use this function before lookup() to map the user's "aliases" to the user's main identity (under which the registration will be done).
http://www.kamailio.org/docs/modules/3.1.x/modules_k/alias_db.html#id2916034
regards klaus
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users