John,
Thanks for sticking around. We must be doing something right.
You would call this macro using something like this:
[localphones]
exten => 4401,1,Macro(local-followme,${EXTEN})
exten => 4401,n,Congestion(5)
[inboundjnctn]
exten => 12125555555,1,Answer()
exten => 12125555555,2,Goto(localphones,4401,1)
Make sure you set the dialing context and music on hold context on the
preferences tab on the web interface. Otherwise calls will fail.
Darrick
So on your incoming call, instead of using the Dial() command, use the
Goto() command.
On 12/11/2009 12:02 AM, John Reynolds wrote:
> Hi All,
>
> I have used astlinux for many years now (0.3), but I must admit that
> my dialplan is very basic. I use it at home, so the need for a more
> sophisticated DP has not emerged.
> I would like to start using the followme feature. I have a net5501,
> and am running the 0.7 beta image (astlinux-0.7-3417 - Asterisk
> 1.4.26.3) with the gui version 1.6.02.
>
> Using the web interface, I have created a record/entry in the followme
> tab. I know that it will not work until I have an entry in
> extensions.conf, but I'm not sure what to put there... that is my
> question. I have read the VoIP-Info wiki pages on this, and have
> found Lonnie's web site that give a description and info for use of
> the web interface. From Lonnie's site, the follow could/should be
> added:
>
> [macro-local-followme]
> exten => s,1,GotoIf($[${DB_EXISTS(followme/${ARG1})}=0]?nofollow)
> exten => s,n,GotoIf($[${DB_RESULT:0:1}=0]?nofollow:follow)
> exten => s,n(follow),Dial(SIP/${ARG1},20)
> exten => s,n,Followme(${ARG1},san)
> exten => s,n,Goto(s-${DIALSTATUS},1)
> exten => s,n(nofollow),Dial(SIP/${ARG1},20)
> exten => s,n,Goto(s-${DIALSTATUS},1)
> exten => s-NOANSWER,1,Voicemail(${ARG1},u) ; If unavailable, send to
> voicemail
> exten => s-BUSY,1,Voicemail(${ARG1},b) ; If busy, send to voicemail w/ busy
> ann
> exten => _s-.,1,Goto(s-NOANSWER,1)
>
>
> So my question would be, how would I incorporate this bit of code, or
> more specifically, how would I refer my inbound call context to this
> one for processing?
> Here is what I have for my inbound context:
>
> [inboundjnctn]
> exten => 12125555555,1,Answer()
> exten => 12125555555,2,Dial(SIP/4401,20)
> exten => 12125555555,3,VoiceMail(4401,u)
> exten => 12125555555,103,VoiceMail(4401,b)
>
>
> Please enlighten me, and if I have just asked the most basic and
> idiotic question, please let me know, and I will keep reading until it
> makes sense... but that may take a couple weeks. Thank you in
> advance.
>
> John R.
>
> ------------------------------------------------------------------------------
> Return on Information:
> Google Enterprise Search pays you back
> Get the facts.
> http://p.sf.net/sfu/google-dev2dev
> _______________________________________________
> Astlinux-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/astlinux-users
>
> Donations to support AstLinux are graciously accepted via PayPal to
> [email protected].
--
Darrick Hartman
DJH Solutions, LLC
http://www.djhsolutions.com
Small Business IT Specialists
Office: 920.547.4535
Cell: 920.901.3113
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Astlinux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users
Donations to support AstLinux are graciously accepted via PayPal to
[email protected].