Re: [SR-Users] Use of variables for force_send_socket

2017-04-04 Thread Brandon Armstead
Just a guess, have you tried: modparam("pv", "varset", "externalip=s:udp:1.2.3.4:5060") or modparam("pv", "varset", "externalip=s:tcp:1.2.3.4:5060") etc... Also maybe instead of force_send_socket method, a direct assignment? $fs = $var(externalip); On Tue, Apr 4, 2017 at 8:14 AM, Jöran Vinze

Re: [SR-Users] Use of variables for force_send_socket

2017-04-04 Thread Daniel-Constantin Mierla
Hello, see $fs variable. I also plan to move force_send_socket() (or make a new function set_send_socket()) in corex module to allow vars as parameter. Cheers, Daniel On 04.04.17 17:14, Jöran Vinzens wrote: > Hi all, > > i try to re-arrange my config and i try to use a variable declared in > m

Re: [SR-Users] Use of variables for force_send_socket

2017-04-04 Thread Carsten Bock
Hi Jöran, have you tried it using the $fs PV (http://kamailio.org/wiki/cookbooks/devel/pseudovariables#fs_-_forced_socket)? Probably, that one works better for use-cases like yours Thanks, Carsten 2017-04-04 17:14 GMT+02:00 Jöran Vinzens : > Hi all, > > i try to re-arrange my config and i tr

[SR-Users] Use of variables for force_send_socket

2017-04-04 Thread Jöran Vinzens
Hi all, i try to re-arrange my config and i try to use a variable declared in modparam pv such like: modparam("pv", "varset", "externalip=s:1.2.3.4") and use it as: force_send_socket($var(externalip)); unfortunately the kamailio does not start with this configuration and telling me bad config fi