[OpenSIPS-Users] OpenSIPS and SIP source routing

Bogdan-Andrei Iancu bogdan at voice-system.ro
Thu Apr 22 18:49:38 CEST 2010


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 user at domain1.loc (or othe user from SIP domain domain1.loc)
> => opensips will route my call to pstn.contoso.com.
> If I call from user at domain2.loc (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




More information about the Users mailing list