[asterisk-users] Asterisk and cellphone/GSM voicemailbox
jonas kellens
jonas.kellens at telenet.be
Thu Mar 4 03:45:01 CST 2010
Hello !
My macro to avoid voicemail of a cellphone is not really working. Can
you take a look at it :
This is the macro :
[macro-testgsm]
exten => s,1,NoOp(inside macro testgsm)
exten => s,n,Wait(2)
exten => s,n,Read(INPUT,,1,1,1)
exten => s,n,GoToIf($["${INPUT}"=="1"]?exit:hangup)
exten => s,n(exit),MacroExit()
exten => s,n(hangup),Hangup()
This is what the CLI shows :
(my zoiper softphone with account testlocal is the caller, sin50 is the
cellphone/GSM)
> [Mar 4 10:36:52] -- SIP/sin50-09f55f80 answered IAX2/testlocal-15506
> [Mar 4 10:36:52] -- Executing [s at macro-testgsm:1] NoOp("SIP/sin50-09f55f80", "inside macro testgsm") in new stack
> [Mar 4 10:36:52] -- Executing [s at macro-testgsm:2] Wait("SIP/sin50-09f55f80", "2") in new stack
> [Mar 4 10:36:54] -- Executing [s at 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 at 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 at 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'
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 !
Can anyone advise ?
Thank you !
Jonas.
On Tue, 2010-03-02 at 14:42 -0500, Fred Posner wrote:
> > 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
> http://qxork.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100304/d806351b/attachment.htm
More information about the asterisk-users
mailing list