[asterisk-users] Get last dialed number in a context?
Patrick Laimbock
patrick at laimbock.com
Tue Jun 3 05:53:35 CDT 2014
On 03-06-14 11:31, Stefan Gofferje wrote:
> Hi,
>
> I would like to implement an auto-redial function in a context. The idea
> is about like this:
>
> Dial a number
> Hear busy
> Hangup
> Pick up again
> Dial a code like *123
> => jumps into a context which redials until callresult is not busy
>
> Maybe like this:
>
> [autoredial]
> exten => s,1,Set(number=${CHANNEL(lastdialed)})
> exten => s,2,Dial(SIP/${number}@account,60,g)
> exten => s,3,Wait(15)
> exten => s,4,GotoIf( [ "${DIALSTATUS}" = "BUSY" ]?2)
> exten => s,5,Hangup
>
> For that I'd need to somewhere get the last dialed number from the
> channel/line I'm initiating the call from. Is something like this
> already implemented?
Have you looked at Call Completion Supplementary Services (CCSS)?
https://wiki.asterisk.org/wiki/pages/viewpage.action?pageId=5243096
Cheers,
Patrick
More information about the asterisk-users
mailing list