Cool, that worked. All I was missing was the without the ",1" (I was doing 
something like Goto(${my_already_stored_number}))
Thanks !

----- Original Message ----- 
From: "Simon P. Ditner" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, August 04, 2008 6:30 PM
Subject: Re: [on-asterisk] *69


Hi Liviu,

A 'goto' should do the trick:

[ata-inbound]
include => outbound-routes
exten => *69,1,Goto(${my_already_stored_number},1)

[outbound-routes]
exten => _416NXXXXXX,1,Dial(SIP/[EMAIL PROTECTED])
exten => _905NXXXXXX,1,Dial(SIP/[EMAIL PROTECTED])
...

If you need an extra call leg for some reason you can use the local
channel:

exten => *69,1,Dial(LOCAL/[EMAIL PROTECTED])

Cheers,
spd

On Mon, 4 Aug 2008, Liviu Toma wrote:

> Hello,
>
> I would like to implement something like the *69 feature in my Asterisk (I
> know that some adapters (Linksys and Sipura at least) handle it by
> themselves, by storing the number of the last caller and redialing that
> number when you *69 but I have some ATAs which don't have the feature and
> send the *69 string to Asterisk)
> I am able to store the last calling number in my asterisk. The problem I
> have is that I use different SIP trunks for dialing different 
> destinations,
> so I can't have a generic
> exten => *69,1,Dial(SIP/PeerX,${my_already_stored_number})
> because I don't know which "PeerX" to use.
> Is there a way to have Asterisk dial the number using its dial plan ?
>
> Thanks,
> Liviu
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to