Hi,

I would like as exsample  dial internal 15 and the folowme shoult take me to 
the internal number 11

I  my extensions.conf I have :

exten =>15,1,Set(CHANNEL(language)=de)
exten =>15,n,AGI(lookup.agi, ${CALLERID(num)})
exten =>15,n,Set(CALLERID(name)=${LONGNAME})
exten =>15,n,Macro(local-followme,${EXTEN})
exten =>15,n,Playback(tt-monkeysintro) 
exten =>15,n,Dial(SIP/15,10,r)
exten =>15,n,Answer
exten =>15,n,Playback(vm-nobodyavail) 
exten =>15,n,Voicemail(15) 
exten =>15,n,Hangup

 
[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)

after I called  internal 15 at the CLI I get this:

= Using SIP RTP CoS mark 5
    -- Executing [15@10:1] Set("SIP/10-000000ce", "CHANNEL(language)=de") in 
new stack
    -- Executing [15@10:2] AGI("SIP/10-000000ce", "lookup.agi, 10") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/lookup.agi
    -- <SIP/10-000000ce>AGI Script lookup.agi completed, returning 0
    -- Executing [15@10:3] Set("SIP/10-000000ce", "CALLERID(name)=10") in new 
stack
    -- Executing [15@10:4] Macro("SIP/10-000000ce", "local-followme,15") in new 
stack
    -- Executing [s@macro-local-followme:1] GotoIf("SIP/10-000000ce", 
"0?nofollow") in new stack
    -- Executing [s@macro-local-followme:2] GotoIf("SIP/10-000000ce", 
"0?nofollow:follow") in new stack
    -- Goto (macro-local-followme,s,3)
    -- Executing [s@macro-local-followme:3] Dial("SIP/10-000000ce", 
"SIP/15,20") in new stack
[Nov 26 03:19:44] WARNING[22995]: app_dial.c:2041 dial_exec_full: Unable to 
create channel of type 'SIP' (cause 20 - Unknown)
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [s@macro-local-followme:4] FollowMe("SIP/10-000000ce", 
"15,san") in new stack
[Nov 26 03:19:44] WARNING[22995]: file.c:644 ast_openstream_full: File 
followme/status does not exist in any format
[Nov 26 03:19:44] WARNING[22995]: file.c:950 ast_streamfile: Unable to open 
followme/status (format 0x8 (alaw)): No such file or directory
    -- <SIP/10-000000ce> Playing 'vm-rec-name.gsm' (language 'de')
    -- <SIP/10-000000ce> Playing 'beep.gsm' (language 'de')
    -- x=0, open writing:  /var/spool/asterisk/followme.1322273984.258 format: 
sln, 0x89dac20
    -- Took too long, cutting it short...
    -- <SIP/10-000000ce> Playing 'auth-thankyou.gsm' (language 'de')
[Nov 26 03:19:54] WARNING[22995]: file.c:644 ast_openstream_full: File 
followme/pls-hold-while-try does not exist in any format
[Nov 26 03:19:54] WARNING[22995]: file.c:950 ast_streamfile: Unable to open 
followme/pls-hold-while-try (format 0x8 (alaw)): No such file or directory
    -- Executing [s@macro-local-followme:5] Goto("SIP/10-000000ce", 
"s-CHANUNAVAIL,1") in new stack
    -- Goto (macro-local-followme,s-CHANUNAVAIL,1)
    -- Executing [s-CHANUNAVAIL@macro-local-followme:1] Goto("SIP/10-000000ce", 
"s-NOANSWER,1") in new stack
    -- Goto (macro-local-followme,s-NOANSWER,1)
    -- Executing [s-NOANSWER@macro-local-followme:1] 
VoiceMail("SIP/10-000000ce", "15,u") in new stack
    -- <SIP/10-000000ce> Playing 'vm-theperson.gsm' (language 'de')
    -- <SIP/10-000000ce> Playing 'digits/1.gsm' (language 'de')
    -- <SIP/10-000000ce> Playing 'digits/5.gsm' (language 'de')
    -- <SIP/10-000000ce> Playing 'vm-isunavail.gsm' (language 'de')
    -- <SIP/10-000000ce> Playing 'vm-intro.gsm' (language 'de')
    -- <SIP/10-000000ce> Playing 'beep.gsm' (language 'de')

regards
nedi

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
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].

Reply via email to