[SR-Users] ALIAS_DB module resolving to multiple user at domain does not work when use_domain is set to 1

Daniel-Constantin Mierla miconda at gmail.com
Tue Oct 29 10:39:09 CET 2013


Hello,

On 10/23/13 11:01 AM, Vassilis Radis wrote:
> The documentation of the append_brances(int) function in ALIAS _DB 
> module says:
>
>  "If the alias resolves to many SIP IDs, the first is replacing the 
> R-URI, the rest are added as branches."
>
> However this only works if not using the domain for resolving, i.e. 
> use_domain is set to 0. This happens because there is a unique 
> constraint on the dbaliases table for the columns (alias_username, 
> alias_domain). Would it hurt to drop the constraint so that I can have 
> multiple branches when resolving username AND domain? Any other 
> suggestions/comments?
no, it doesn't hurt. I will remove the constraint from the database 
table definition as well.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Trainings - Berlin, Nov 25-28
   - more details about Kamailio trainings at http://www.asipto.com -

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20131029/a697aa73/attachment.html>


More information about the sr-users mailing list