[asterisk-users] missed call notification
Sherwood McGowan
sherwood.mcgowan at gmail.com
Fri Apr 22 09:41:06 CDT 2011
On Fri, Apr 22, 2011 at 9:32 AM, satish patel <satish_lx at hotmail.com> wrote:
> How this guys using "h" extension in macro
> http://www.theschmandts.org/blog/?p=28
>
> why its not working for me only. I am the caller and if i hangup then it
> should parse "h" extension right ?
>
> ------------------------------
> From: satish_lx at hotmail.com
>
> To: asterisk-users at lists.digium.com
> Date: Thu, 21 Apr 2011 18:16:00 +0000
>
> Subject: Re: [asterisk-users] missed call notification
>
> I am always googleing before putting anything here.. I was confused that's
> why i came across to you guys! Still i am confused :(
>
> -S
>
> ------------------------------
> Date: Thu, 21 Apr 2011 13:01:52 -0500
> From: sherwood.mcgowan at gmail.com
> To: asterisk-users at lists.digium.com
> Subject: Re: [asterisk-users] missed call notification
>
> On Thu, Apr 21, 2011 at 12:26 PM, satish patel <satish_lx at hotmail.com>wrote:
>
> Hi,
>
> I am looking at http://www.theschmandts.org/blog/?p=28 to setup missed
> call notification but i am having issue. following is my dialplan
>
> [macro-stdexten]
> exten => s,1,Dial(${ARG2})
> exten => s,2,Goto(s-${DIALSTATUS},1) ; Jump
> based on status (NOANSWER,BUSY,CHANUNAVAIL,CONGESTION,ANSWER)
> exten => s-NOANSWER,1,Voicemail(${ARG1},u) ; If unavailable,
> send to voicemail w/ unavail announce
> exten => s-NOANSWER,2,Goto(default,s,1) ; If they press #,
> return to start
> exten => s-BUSY,1,Voicemail(${ARG1},b) ; If busy, send to
> voicemail w/ busy announce
> exten => s-BUSY,2,Goto(default,s,1) ; If they
> press #, return to start
> exten => _s-.,1,Goto(s-NOANSWER,1) ; Treat
> anything else as no answer
> exten => a,1,VoicemailMain(${ARG1}) ; If they
> press *, send the user into VoicemailMain
> exten => h,1,System(/var/lib/asterisk/agi-bin/processcallemail.sh "${ARG3}"
> "${CALLERID(num)}" "${CALLERID(name)}" "${DIALSTATUS}" "${VMSTATUS}"
> "${EXTEN}")
>
>
> [from-sip]
> exten => _7[0123]XX,1,macro(stdexten,${EXTEN},sip/${EXTEN})
>
>
>
> Following CLI output look like its not executing h extension in
> macro-stdexten. But if i add h extension in [from-sip] it works! do you know
> why ?
>
> -- Executing [7207 at from-sip:1] Macro("SIP/7101-0000000a",
> "stdexten,7207,sip/7207") in new stack
> -- Executing [s at macro-stdexten:1] Dial("SIP/7101-0000000a",
> "sip/7207") in new stack
> == Using SIP RTP CoS mark 5
> -- Called 7207
> -- SIP/7207-0000000b is ringing
> == Spawn extension (macro-stdexten, s, 1) exited non-zero on
> 'SIP/7101-0000000a' in macro 'stdexten'
> == Spawn extension (from-sip, 7207, 1) exited non-zero on
> 'SIP/7101-0000000a'
> -- Executing [h at from-sip:1] Hangup("SIP/7101-0000000a", "") in new
> stack
> == Spawn extension (from-sip, h, 1) exited non-zero on
> 'SIP/7101-0000000a'
>
>
>
All I can say is that you have scientific proof that the macro's h extension
is NOT being executed but the calling context's h extension *is*. Nevermind
why, that's more of a developer conversation. The reality is, you can
accomplish your task by putting the code you need in the calling context's h
extension.
--
Sherwood McGowan
Telecommunications and VOIP Consultant
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110422/e2d7683d/attachment.htm>
More information about the asterisk-users
mailing list