[SR-Users] force_send_socket
Daniel-Constantin Mierla
miconda at gmail.com
Wed Dec 11 11:08:43 CET 2013
On 11/12/13 10:53, Alex Balashov wrote:
> On 12/11/2013 04:48 AM, Daniel-Constantin Mierla wrote:
>>
>> On 11/12/13 10:46, Alex Balashov wrote:
>>> On 12/11/2013 04:45 AM, Daniel-Constantin Mierla wrote:
>>>
>>>> Actually, to work, the above line has to be:
>>>>
>>>> $fs = "udp:" + $sel(cfg_get.kamailio.bindip) + ":5060";
>>>
>>> I never did understand that. Some PVs seem to be substituted inside a
>>> string literal, others are not. What's the rule?
>> They were never substituted in expressions/statements that have quoted
>> string literals as standalone element. Only in parameters for functions
>> or names for variables (e.g. $sht(...)).
>
> Oh, I see. So, this will work:
>
> redis_cmd("srv", "SET user 1$rU", "r");
>
> but this will not:
>
> $fu = "sip:1$fU@$sel(cfg_get.term_gw):5060";
It is better said 'it will not work as you expect", because the
assignment works fine, just PVs are not replaced, they simply stay with
their name there.
Cheers,
Daniel
--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
More information about the sr-users
mailing list