Re: [asterisk-users] 11.3: how to hang up on google voice

2013-03-07 Thread Joshua Colp

sean darcy wrote:

Some calls I get from google voice, I just send myself an email about
the call and want to hangup. But I can't seem to make gv know I've hung up.

extensions.conf:

same = n,GoToIf($[${CALLERID(num)}=office]?email)
.
same = n(email),System(/usr/local/bin/emailme)
same = n,Answer() ; also tried without this
same = n,Hangup()


You need to Answer, Wait, send a DTMF of 1, wait a bit more, and then 
hang up.


--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at:  www.digium.com   www.asterisk.org

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] 11.3: how to hang up on google voice

2013-03-07 Thread Gertjan Baarda
There might be something wrong with the evaluation. Can you post more
console regarding the GotoIf?
And are you sure its in the right context?

Sent from my iPhone

On 7 mrt. 2013, at 15:48, sean darcy seandar...@gmail.com wrote:

 Some calls I get from google voice, I just send myself an email about the 
 call and want to hangup. But I can't seem to make gv know I've hung up.

 extensions.conf:

 same = n,GoToIf($[${CALLERID(num)}=office]?email)
 .
 same = n(email),System(/usr/local/bin/emailme)
 same = n,Answer() ; also tried without this
 same = n,Hangup()

 console:

-- Executing [s@incoming-171:13] Answer(Motif/+1...-1b35, ) in new 
 stack
-- Executing [s@incoming-171:14] Hangup(Motif/+1..-1b35, ) in 
 new stack
  == Spawn extension (incoming-171, s, 14) exited non-zero on 
 'Motif/+1..-1b35'

 but the calling phone keeps ringing until the google voice attendant comes on.

 OTOH, if I dial an extension, hanging up works fine.

 So how do I get gv to recognize a hangup?

 sean


 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] 11.3: how to hang up on google voice

2013-03-07 Thread sean darcy

On 03/07/2013 09:48 AM, Joshua Colp wrote:

sean darcy wrote:

Some calls I get from google voice, I just send myself an email about
the call and want to hangup. But I can't seem to make gv know I've
hung up.

extensions.conf:

same = n,GoToIf($[${CALLERID(num)}=office]?email)
.
same = n(email),System(/usr/local/bin/emailme)
same = n,Answer() ; also tried without this
same = n,Hangup()


You need to Answer, Wait, send a DTMF of 1, wait a bit more, and then
hang up.


Brilliant.

 same = n(hangup),Answer()
 same = n,Wait(3)
 same = n,SendDTMF(1)
 same = n,Wait(3)
 same = n,Hangup()

Worked like a charm. It does cause gv to give a circuit busy. But that's ok.

sean


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users