If you want to do a dynamic mapping, try using the dialplan module http://www.opensips.org/html/docs/modules/1.6.x/dialplan.html
you can use a "regexp" or "string equal" translation over the from domain - see http://www.opensips.org/html/docs/modules/1.6.x/dialplan.html#id227156 and use it like db_translate("1","$fd/$var(x)") -> if this is succesful (like from domain found), $var(x) will contain the destination (the replace field from translation rule). Regards, Bogdan Labus wrote: > Thx for reply. > I mean "From URI". > > For example: > If I call from [email protected] (or othe user from SIP domain domain1.loc) > => opensips will route my call to pstn.contoso.com. > If I call from [email protected] (or othe user from SIP domain domain2.loc) > => opensips will route my call to asterisk.example.com. > > And if call coming from asterisk.example.com or pstn.contoso.com I need to > route this to my mediation server IP: A.A.A.A > -- Bogdan-Andrei Iancu www.voice-system.ro _______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
