[Asterisk-Users] nested dial, or jump to another line to continue dialing.

Joseph syscon at interbaun.com
Wed Aug 31 15:20:41 MST 2005


On Wed, 2005-08-31 at 21:05 +0800, El Flynn wrote:
> Joseph wrote:
> > Is it possible to do nested dial() command on one line, 
> > Dial number, wait new seconds, dial another number etc.
> > or dial number and jump to another line to continue dialing.
> > 
> > D(ww) doesn't work as it sends DTMF but before the call is bridged, and
> > I need to send numbers after the call is bridged. 
> > 
> 
> If you do a "show application dial" at the CLI:
> 
> <snip>
>        'D([digits])'  -- Send DTMF digit string *after* called party has answered
>               but before the bridge. (w=500ms sec pause)
> 
> Hmm.. it does say that DTMF is sent *after* called party has answered. it's been 
> working for me since asterisk-1.0-RC2
> 
> Flynn

Here is a session with "D()"
exten => _51,1,Dial(SIP/4791270 at pstn-5665,30,D(wwwwww218))

Executing Dial("SIP/11-3dec", "SIP/4791270 at pstn-5665|30|D(wwwwww218)") in new stack
    -- Called 4791270 at pstn-5665
    -- SIP/pstn-5665-713c is ringing
    -- SIP/pstn-5665-713c answered SIP/11-3dec
    -- Goto (office-open,s,1)
    -- Executing Wait("SIP/pstn-1270-e0f5", "2") in new stack
    -- Attempting native bridge of SIP/11-3dec and SIP/pstn-5665-713c
    -- Executing Answer("SIP/pstn-1270-e0f5", "") in new stack
    -- Executing NVBackgroundDetect("SIP/pstn-1270-e0f5", "welcome|t") in new stack
    -- Playing 'welcome' (language 'en')
    -- Executing Goto("SIP/pstn-1270-e0f5", "1|1") in new stack
    -- Goto (office-open,1,1)

It is not passing DTMF(218)
-----------end session "D()"-------------

Here is Macro session:
exten => _51,1,Dial(SIP/4791270 at pstn-5665,,TM(continue))

[macro-continue];
exten => s,1,Wait(5)
exten => s,2,SendDTMF(218)

Executing Dial("SIP/11-fe6c", "SIP/4791270 at pstn-5665||TM(continue)") in new stack
    -- Called 4791270 at pstn-5665
    -- SIP/pstn-5665-c577 is ringing
    -- SIP/pstn-5665-c577 answered SIP/11-fe6c
    -- Executing Wait("SIP/pstn-5665-c577", "5") in new stack
    -- Goto (office-open,s,1)
    -- Executing Wait("SIP/pstn-1270-c291", "2") in new stack
    -- Executing SendDTMF("SIP/pstn-5665-c577", "218") in new stack
    -- Executing Answer("SIP/pstn-1270-c291", "") in new stack
    -- Executing NVBackgroundDetect("SIP/pstn-1270-c291", "welcome|t") in new stack
    -- Playing 'welcome' (language 'en')
    -- Attempting native bridge of SIP/11-fe6c and SIP/pstn-5665-c577

-------------- end Macro session----------

Here is the what should happen, Manual Dial ext. 218 after connecting.

Called 4791270 at pstn-5665
    -- SIP/pstn-5665-d4cd is ringing
    -- SIP/pstn-5665-d4cd answered SIP/11-5068
    -- Attempting native bridge of SIP/11-5068 and SIP/pstn-5665-d4cd
    -- Goto (office-open,s,1)
    -- Executing Wait("SIP/pstn-1270-acca", "2") in new stack
    -- Executing Answer("SIP/pstn-1270-acca", "") in new stack
    -- Executing NVBackgroundDetect("SIP/pstn-1270-acca", "welcome|t") in new stack
    -- Playing 'sys_concept_welcome' (language 'en')
Aug 31 15:56:31 NOTICE[22090]: app_nv_backgrounddetect.c:242 nv_background_detect_exec: DTMF received (matching to exten)

-- 
#Joseph



More information about the asterisk-users mailing list