[sr-dev] [kamailio/kamailio] pv: add the $env() PV class to read env vars (#978)

Victor Seva notifications at github.com
Tue Feb 7 19:05:42 CET 2017


linuxmaniac commented on this pull request.



> @@ -3238,11 +3238,11 @@ int pv_get_msg_attrs(sip_msg_t *msg, pv_param_t *param, pv_value_t *res)
 
 int pv_parse_env_name(pv_spec_p sp, str *in)
 {
+	char *csname;
+
 	if(in->s==NULL || in->len<=0)

FTR, it works nicely 
```
route[TEST] {
	$var(tmp) = $env(FAKE);
	xlog("L_NOTICE", "PATH=$env(PATH) FAKE=$var(tmp)\n");
	return;
}
```
```
 3(1978) NOTICE: <script>: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin FAKE=0
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/978
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20170207/90addcab/attachment.html>


More information about the sr-dev mailing list