[Serusers] How can I redirect SIP invitation

Jan Janak jan at iptel.org
Tue Nov 16 13:50:12 CET 2004


That's what lookup function is for. It will take the URI in the
Request-URI and lookup all contacts for that URI in the database. So if
user test is registered with your server and has many contacts
registered then just do lookup("location") and the function will return
all of them. Later, when you call t_relay, the server will fork the
request and forward a copy to each registered contact.

  Jan.

On 16-11 10:40, Nicolas Ruiz wrote:
> Hello,
> 
> - I have a group : "TEST"
> - In this group, i have a lot of phone's numbers.
> 
> Only my group "TEST" is REGISTERED on SER.
> 
> How can i redirect INVITE requests who arrive on SER to this phone's
> numbers, to the IP@ of the group "TEST".
> 
> I have configured that, for this moment :
> 
>    if (is_user_in("To","TEST")){
>                         forward("62.38.29.6", 5060);
>                         break;
>                 };
> 
> HOW CAN I FIND THE IP@ OF THE GROUP "TEST" REGISTERED ???
> 
> Thanks a lot for your help.
> 
> Best Regards
> Nicolas RUIZ
> 

> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers




More information about the sr-users mailing list