Bugs item #2487485, was opened at 2009-01-05 00:07 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2487485&group_id=232389
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: modules Group: trunk Status: Open Resolution: None Priority: 5 Private: No Submitted By: Julian Yap (jyap) Assigned to: Nobody/Anonymous (nobody) Summary: Can't add an alias using opensipsctlrc when 'user' is exists Initial Comment: I am using the alias_db module in a multi-domain set up. The opensipsctlrc command does not let me add an alias as an IP address as well as a domain when the 'user' portion is the same. Example settings: Server: a.domain.com IP of server: 1.2.3.4 User: [email protected] Alias: [email protected] Here is the error when trying to add both aliases to the dbaliases table: # opensipsctl alias_db add [email protected] [email protected] INFO: +18085551234 alias already in dbaliases table There are no config options in opensipsctlrc to be multi-domain aware so I would say that opensipsctl is broken in this respect. The relevant IF statement in opensipsctl only looks up the 'user' portion to check that it is unique: if is_value_in_db $DA_TABLE $DA_ALIAS_USER_COLUMN $TMP_OSIPSUSER; then minfo "$TMP_OSIPSUSER alias already in $DA_TABLE table" exit 0 fi The current workaround is to add both combinations to the DB manually without using opensipsctl. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2487485&group_id=232389 _______________________________________________ Devel mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
