[SR-Users] New functionality LCR + force_send_socket() - sanity check

Iñaki Baz Castillo ibc at aliax.net
Sun Jun 27 00:32:42 CEST 2010


2010/6/26 Juha Heinanen <jh at tutpro.com>:
> Geoffrey Mina writes:
>
>> OK, I am running into some errors when starting my script:
>>
>> if(to_gw("1")){
>>     force_send_socket(X.X.X.180:5060);
>> }else if(to_gw("3")){
>>     force_send_socket(X.X.X.179:5060);
>> }else if(to_gw("4")){
>>     force_send_socket(X.X.X.189:5060);
>> }
>>
>> Jun 25 16:45:14 atl-sipgateway1 /usr/local/sbin/kamailio[15942]:
>> ERROR:core:pv_parse_spec: bad parameters
>
> you need to call to_gw_grp("1").

That is not documented in 1.5:

  http://kamailio.org/docs/modules/1.5.x/lcr.html#id2527249

In fact suh documentation states that to_gw("1") is the correct syntax. ¿?

-- 
Iñaki Baz Castillo
<ibc at aliax.net>



More information about the sr-users mailing list