<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.24.5">
</HEAD>
<BODY>
Hello !<BR>
<BR>
My macro to avoid voicemail of a cellphone is not really working. Can you take a look at it :<BR>
<BR>
This is the macro :<BR>
<BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">[macro-testgsm]</FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">exten => s,1,NoOp(inside macro testgsm)</FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">exten => s,n,Wait(2)</FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">exten => s,n,Read(INPUT,,1,1,1)</FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">exten => s,n,GoToIf($["${INPUT}"=="1"]?exit:hangup)</FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">exten => s,n(exit),MacroExit()</FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">exten => s,n(hangup),Hangup()</FONT></FONT><BR>
<BR>
<BR>
This is what the CLI shows :<BR>
(my zoiper softphone with account testlocal is the caller, sin50 is the cellphone/GSM)<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE>
[Mar 4 10:36:52] -- SIP/sin50-09f55f80 answered IAX2/testlocal-15506
[Mar 4 10:36:52] -- Executing [s@macro-testgsm:1] NoOp("SIP/sin50-09f55f80", "inside macro testgsm") in new stack
[Mar 4 10:36:52] -- Executing [s@macro-testgsm:2] Wait("SIP/sin50-09f55f80", "2") in new stack
[Mar 4 10:36:54] -- Executing [s@macro-testgsm:3] Read("SIP/sin50-09f55f80", "INPUT||1|1|1") in new stack
[Mar 4 10:36:54] -- Accepting a maximum of 1 digits.
[Mar 4 10:37:00] -- User entered nothing.
[Mar 4 10:37:00] -- Executing [s@macro-testgsm:4] GotoIf("SIP/sin50-09f55f80", "0?exit:hangup") in new stack
[Mar 4 10:37:00] -- Goto (macro-testgsm,s,6)
[Mar 4 10:37:00] -- Executing [s@macro-testgsm:6] Hangup("SIP/sin50-09f55f80", "") in new stack
[Mar 4 10:37:00] == Spawn extension (macro-testgsm, s, 6) exited non-zero on 'SIP/sin50-09f55f80' in macro 'testgsm'
[Mar 4 10:37:19] == Spawn extension (zoiper, sin, 1) exited non-zero on 'IAX2/testlocal-15506'
</PRE>
</BLOCKQUOTE>
<BR>
The CLI says the channel has hung up, but in fact my zoiper softphone is connected to sin50 and seconds are counting. This way I will surely be stranded on a voicemail-system !<BR>
<BR>
Can anyone advise ?<BR>
<BR>
Thank you !<BR>
Jonas.<BR>
<BR>
<BR>
On Tue, 2010-03-02 at 14:42 -0500, Fred Posner wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
> Jonas
You can avoid this is several ways... one of the ways I like best is to dial with a macro that then requires the recipient to press 1 or some dtmf confirmation to accept the call. Very good at avoiding voicemail, cell phone service messages, etc.
---fred
<A HREF="http://qxork.com">http://qxork.com</A>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>