Quantcast
Channel: User marcelog - Stack Overflow
Browsing all 41 articles
Browse latest View live

Comment by marcelog on How to extract the destination number using an...

@TomHare mm I wouldn't do it that way.. If you really want that, try using local channels, or even doing a core show channel <channelName> where you can see the "Target" value (actually all...

View Article



Comment by marcelog on When to use erlang application:start or...

@Vivilar Hi, see: erlang.org/doc/man/app.html filling the {applications, Apps} option will make those Apps start (and their deps) before yours. included_applications will not start them, just load...

View Article

Comment by marcelog on ODBC crashs after 8 hours of inactivity

@Bertaud Hi! Correct. I know it's in the C api (dev.mysql.com/doc/refman/5.0/en/mysql-ping.html), but I'm not sure about how to do it using the odbc driver

View Article

Comment by marcelog on How can I insert call duration of an Asterisk call...

@Karadous Sure. See: voip-info.org/wiki/view/Asterisk+variables. So just use ${ANSWEREDTIME} and (possible) use the option g of the dial command.

View Article

Comment by marcelog on erlang typechecking

I suggested guards in my answer too, but I see guards more as a complement to pattern matching, when defining functions of the same arity but with different behaviour depending on the argument type, as...

View Article


Comment by marcelog on How to stop Playback command when a digit is detected?

@MattJordan Isn't that designed specifically for reading (and jumping to) extensions instead of meaning-less digits? I chose Read for the answer because the OP did not specify the intention. Also, you...

View Article

Comment by marcelog on Redundancy without central control point?

@Porcupine Hi! For the network stuff (the client "connecting" to a server), you can use CARP (will depend on a number of things),having lots of nodes sharing the IP address. Once the connection is made...

View Article

Comment by marcelog on Phing - large deploy

I'd say the recommended way is to have continuous integration + continuous delivery. Cant you split your project into modules? That way you would make a CI server generate different artifacts from...

View Article


Comment by marcelog on Grammar for the Chef Language

Well, I couldn't do it with one actually. I'll update the question to include a smaller, concrete example (I did at first, but the question got a little too long)

View Article


Comment by marcelog on Guard for tuple of integers

cool, just a note: the runtime check would be lost in this case, so a call with {undefined, whatever} would reach the function (guards would not be there)

View Article

Comment by marcelog on answer incoming call with AMI / AGI

Perhaps this will help to clarify: stackoverflow.com/questions/10836466/asterisk-ami-pickup-cal‌​l/…

View Article

Comment by marcelog on Assigning the same value twice in Erlang

Great! Note that pattern matching has many uses in Erlang that I left out of the answer because you specifically asked about one use case, but you can use pattern matching in function clauses,...

View Article

Comment by marcelog on Run callbacks when user hung up call from IVR

Why do you say that handling the signal "doesn't work"? See: wiki.asterisk.org/wiki/display/AST/Application_AGI" A locally executed AGI script will receive SIGHUP on hangup from the channel except when...

View Article


Comment by marcelog on depends in phpunit doesn't seem to be working

phpunit.de/manual/current/en/… --> "PHPUnit supports the declaration of explicit dependencies between test methods. Such dependencies do not define the order in which the test methods are to be...

View Article

Answer by marcelog for What makes Erlang unsuitable for computationally...

It's just that C code might be considerable faster most of the time. Erlang is great at fault tolerance, distributed computing, and concurrency. Programmers tend to be equally proficient in writing...

View Article


Answer by marcelog for Where can I see executed "Originate" command from...

Use a network sniffer, such as tcpdump or wireshark, and capture the packets that come and go to/from asterisk. By default, it uses 5038/tcp. Check your manager.conf file, and look for the bindaddr and...

View Article

Answer by marcelog for Set an email as SEEN on IMAP server

I think the problem is with the "1" you have hardcoded. I replaced the "1" with: foreach ($result as $mail) { $status = imap_setflag_full($mbox, $mail, "\\Seen \\Flagged", ST_UID);}and it seems to...

View Article


Answer by marcelog for Leading zero for outbound asterisk call

It's been a while for me using libss7, but have you tried looking at these options in...

View Article

Answer by marcelog for Guard for tuple of integers

hmmm well you can't exactly define your own guards, since the idea is to be completely sure that they don't have side effects (http://www.erlang.org/doc/reference_manual/expressions.html#id80042).This...

View Article

Answer by marcelog for running a script on startup and have it restart if...

Try with monit or daemontools, they are specifically designed to supervise other processes

View Article
Browsing all 41 articles
Browse latest View live




Latest Images