[asterisk-users] Exit Dial Application

Danny Nicholas danny at debsinc.com
Wed Apr 15 09:24:54 CDT 2009


This is what you "Really" want; It should work with SIP or Zap

exten => _X.,1,Dial(${DIALNUM},${ARG2},tT)
exten => _X.-NOANSWER,1,background(press5tocallback)
exten => -X.-NOANSWER,2,waitexten(5)
exten => 5,1,goto(callback,s,1)

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Atis Lezdins
Sent: Wednesday, April 15, 2009 9:03 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Exit Dial Application

On Wed, Apr 15, 2009 at 4:47 PM, Christoph Fuerstaller
<fuch_lists at kurtkrenn.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Danny,
>
> Danny Nicholas schrieb:
>> Here's how core show application dial says you should do it:
>> Change your dial to
>> exten => _X.,n,Dial(${DIALNUM},${ARG2},dtT,callback)
> I'm not sure if this is correct. core show application dial says:
> Dial(Technology/resource[&Tech2/resource2...][|timeout][|options][|URL])
> If I configure what you wrote, then callback is passed as URL to the
called party.
> "The optional URL will be sent to the called party if the channel supports
it."
>
> I don't think that's what I want.
> What I want is: If A dials B and B doesn't answer, A can press 5 and place
an automatic
> callback. If B is back and places or takes a call, the automatic callback
to A should be
> started.
>
> I've found a possibility to do this via answering the call before the
dial. But ... that's
> not an ideal solution. I would prefer not to answer the call in the
dialplan. Does the
> option 'd' implies an answered channel? Or is this a Bug?
>

I think the limitation could be by analogous Zap phones, as they
probably don't support sending DTMF on unanswered channel. You could
try it opposite way - Dial from SIP phone to Zap.

Regards,
Atis

-- 
Atis Lezdins,
VoIP Project Manager / Developer,
IQ Labs Inc,
atis at iq-labs.net
Skype: atis.lezdins
Cell Phone: +371 28806004
Cell Phone: +1 800 7300689
Work phone: +1 800 7502835

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list