[Serusers] multiple domains

Maciej Świniarski maciej at task.gda.pl
Thu Mar 2 10:30:13 CET 2006


Hi,
i have a little problem i am using

modparam("usrloc|registrar|avpops", "use_domain", 1)

i have few domains ..for example

xxx.com
yyy.com
zzz.com

i also done some numbering plan and:
for

xxx.com have 10XX
yyy.com have 20XX
zzz.com have 30XX


i want to users from xxx.com can "ring" to yyy.com using
sip:20XX at yyy.com or just 20XX at xxx.com

the problem is how to setup route any connection going to numbers like
20XX from any domain will go to domain yyy.com

now i have done it with aliases so 
i put 2001 at xxx.com --> sip:2001 at yyy.com
but this suck

any one can tell me how to rewritedomain in uri ?

using rewritehost is good for forwarding call to other sip server ..
but those domains are all in one 

additionally there are things like
sameusername at xxx.com
sameusername at yyy.com
and all subscribers are in one mysql table so this must be done using
some route trick.
Can anyone have any idea?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20060302/8ccd2bc0/attachment.pgp>


More information about the sr-users mailing list