Reputation: 1
i have a ruby app with for post something as arg to my web server for example: i want to send phone number for adding in my database i use this command
ruby /home/test.rb 123456
now i want to send callerid with asterisk in my extension.conf in set this commands
exten => 111,1,NoOp(${CDR})
exten => 111,2,System(ruby /home/test.rb "${CDR(clid)}")
exten => 111,3,Dial,sip/111
exten => 111,4,Congestion
but nothing send to my ruby file help please
Upvotes: 0
Views: 141
Reputation: 15259
1) Always use full path in System() command
2) for more control use AGI command.
3) Note, that asterisk will run script as user "asterisk". So ensure your script have no issues with permissions( like can't write log etc)
Upvotes: 1