[Users] how to route a call between servers

Daniel-Constantin Mierla daniel at voice-system.ro
Sat Mar 4 12:41:54 CET 2006



On 03/03/06 07:46, vikram sarathy wrote:
>
>   hi daniel,
>       thanks for this mail, i created a table in database and stored 
> ip's of all servers and by using avp_db_query() function, and trying 
> to  store all this ip's of server into default varables 
> "$avp(i:1);$avp(i:2);...".
> in my openser.conf file i am trying to do,
>         rewritehost("$avp(i:1)");
>
rewritehost() has no support for pseudo-variables. You have to use 
avp_pushto("$ruri/domain","$avp(i:1)").

Cheers,
Daniel

>         append_branch();
>         rewritehost("$avp(i:2)");
>         append_branch();
> for parrallel forking. here i have used 2 ip's hard coded. this has to 
> happen in generic, mean to say for the number of servers in database 
> list,rewritehost() and append_branch() has to called. is there any 
> function to do this.
>
> with regrads
> vicky
>
>
> On Thu, 02 Mar 2006 Daniel-Constantin Mierla wrote :
> >Hello,
> >
> >On 03/02/06 10:23, vikram sarathy wrote:
> >>
> >>  hi,
> >>  i have 3 servers in my setup, in which each server has a user 
> registered. i need to route a call from one server to other. in first 
> case i kept all servers in same domine and later i need to check with 
> all servers in different domains.
> >>
> >>can any one tell me is there any way to achive this.
> >>
> >one possible way, very simple, is to store for each user the address 
> of the server which keeps the location information. You can load the 
> address via avpops module and then set the dst_uri to it and forward.
> >
> >Other way is to split the users based on some rules (e.g, prefix) to 
> learn easily to which server the user belongs. As an alternative, you 
> can try serial/parallel forking to all servers.
> >
> >Daniel
> >
> >>
> >>with regards
> >>vicky
> >>
> >>vicky
> >>
> >>
> >><http://adworks.rediff.com/cgi-bin/AdWorks/sigclick.cgi/www.rediff.com/signature-home.htm/1507191490@Middle5?PARTNER=3> 
>
> >>------------------------------------------------------------------------
> >>
> >>_______________________________________________
> >>Users mailing list
> >>Users at openser.org
> >>http://openser.org/cgi-bin/mailman/listinfo/users
> >>
>
>
>
> <http://adworks.rediff.com/cgi-bin/AdWorks/sigclick.cgi/www.rediff.com/signature-home.htm/1507191490@Middle5?PARTNER=3> 





More information about the sr-users mailing list