Geoffrey Mina writes:

> modparam("pv","shvset","gw_one=s:1.1.1.1:5060")
> modparam("pv","shvset","gw_two=s:1.1.1.2:5060")
> 
> route{
> 
>   load_gws();
>   next_gw();
> 
>   if(to_gw("1")){
>       force_send_socket($shv(gw_one));
>    }else if(to_gw("2")){
>       force_send_socket($shv(gw_two));
>   }
> 
> }

force_send_socket does what do want to do, but i don't know if it
accepts pv argument.  also, i don't see why you need to use pv argument,
rather than write force_send_socket(1.1.1.1:5060), etc.

-- juha

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to