Goodmorning All,

Daniel, thank you for your feedback.

The relative path was just for example, in the Kamailio config I am useing the absolute path.

But the feedback does help me point my nose in the right direction.

Rgds,

Gertjan


On 6/5/19 2:48 PM, Daniel-Constantin Mierla wrote:
Hello,

are you sure that the script is executed? You give a relative path and
kamailio changes working directory to / if you don't give -w parameter?
Try with absolute path.

Cheers,
Daniel

On 05.06.19 14:10, Gertjan Wolzak wrote:
Hello Kamailions,

I have the following challenge.

I want to create a time dependent callerid, based on the time of a
outgoing call a callerid will be set.

I have a php script, that provides me an id number which relates to an
cli.

When I run that php script from the console, the id is shown in the
console.

When I run the script within the kamailio configuration,
exec_avp("../script.php", "$avp(s:cliId)"); ,no output commande is
saved in the avp variable.

I think I am not presenting the result of the php script correctly. I
have tried with an echo $variable; and with and fwrite(STDOUT,
$variable); but no luck.

I'm not a PHP coder so I am not surprised of the missing luck, but
maybe somebody has a golden tip for me?

Rgds,

Gertjan



_______________________________________________
Kamailio (SER) - Users Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

_______________________________________________
Kamailio (SER) - Users Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to