I presumed that aliases could be used for quickie destination routing, but for some reason my RTP isn't connecting up after. If I put the same alias into droute, it works. Am I understanding aliases wrong?
That would be a difficult question to answer without having some specific details. However, it is safe to say that alias_db_lookup() does not alter RTP parameters in any way; it simply modifies your request URI with the result of a database lookup, much as any routing-related module does, in the end.
On 03/14/2014 06:09 PM, Pete Ashdown wrote:
I presumed that aliases could be used for quickie destination routing, but for some reason my RTP isn't connecting up after. If I put the same alias into droute, it works. Am I understanding aliases wrong?
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
On 03/14/2014 04:10 PM, Alex Balashov wrote:
That would be a difficult question to answer without having some specific details. However, it is safe to say that alias_db_lookup() does not alter RTP parameters in any way; it simply modifies your request URI with the result of a database lookup, much as any routing-related module does, in the end.
On 03/14/2014 06:09 PM, Pete Ashdown wrote:
I presumed that aliases could be used for quickie destination routing, but for some reason my RTP isn't connecting up after. If I put the same alias into droute, it works. Am I understanding aliases wrong?
After starting to paste the kamailio.cfg snippets, I noticed I was using route(SIPOUT) instead of route(RELAY) for the aliases. Switching it to RELAY fixed it. What is the difference between the two? Does SIPOUT only work for devices registered with Kamailio?
On Fri, Mar 14, 2014 at 5:13 PM, Pete Ashdown pashdown@xmission.com wrote:
After starting to paste the kamailio.cfg snippets, I noticed I was using route(SIPOUT) instead of route(RELAY) for the aliases. Switching it to RELAY fixed it. What is the difference between the two? Does SIPOUT only work for devices registered with Kamailio?
Assuming you haven't changed the default config, SIPOUT only handles routing to foreign domains:
# Routing to foreign domains route[SIPOUT] { if (!uri==myself) { append_hf("P-hint: outbound\r\n"); route(RELAY); } }
If your alias is still a local URI, SIPOUT would just ignore the message and exit the block.
Corey