[Asterisk-Users] Transfer to specific park number

Kris Seraphine baryonyx5 at gmail.com
Sun Mar 19 16:02:17 MST 2006


Hi

I'd like to allow users to transfer a call to a specific park number.  This
way, the receptionist can tranfer a call park for ext 100 at park number
7100 etc...

It seems like this should be fairly simple using the Park(ext) app but it
doesn't work for me.  No matter what I extension I use, the system just
picks the next available park number.   I've simplified my dialplan for
testing.  Here's what I'm working with now

Features.conf
--------------------------

[general]
parkext => 70
parkpos => 7000-7010
context => parkedcalls
courtesytone = beep
xfersound = beep
xferfailsound = beeperr
findslot => first
pickupexten = *8
featuredigittimeout = 500

[featuremap]
blindxfer => #1
automon => *1
atxfer => *2


Extensions.conf
------------------------------------

[general]
static=yes
writeprotect=yes
autofallthrough=yes
clearglobalvars=no
priorityjumping=no


[globals]
CONSOLE=Console/dsp                             ; Console interface for demo
IAXINFO=guest                                   ; IAXtel username/password

[macro-stdexten];

exten => s,1,Dial(${ARG2},10,rtwTW)
exten => s,2,Goto(s-${DIALSTATUS},1)
exten => s-NOANSWER,1,Voicemail(u${ARG1})
exten => s-NOANSWER,2,Goto(default,s,1)
exten => s-BUSY,1,Voicemail(b${ARG1})
exten => s-BUSY,2,Goto(default,s,1)
exten => _s-.,1,Goto(s-NOANSWER,1)
exten => a,1,VoicemailMain(${ARG1})

[internal]
include => parkedcalls
exten => 100,1,Macro(stdexten,${EXTEN},SIP/${EXTEN})
exten => 101,1,Macro(stdexten,${EXTEN},SIP/${EXTEN})
exten => 102,1,Macro(stdexten,${EXTEN},SIP/${EXTEN})
exten => 103,1,Macro(stdexten,${EXTEN},SIP/${EXTEN})
exten => 104,1,Macro(stdexten,${EXTEN},SIP/${EXTEN})
exten => 123,1,Answer()
exten => 123,2,Park(7002)


If I transfer a call to 123, it parks it on 7000.  Here's the output from
the console.

    -- Executing Macro("SIP/100-fd8c", "stdexten|101|SIP/101") in new stack
    -- Executing Dial("SIP/100-fd8c", "SIP/101|10|rtwTW") in new stack
    -- Called 101
    -- SIP/101-85d6 is ringing
    -- SIP/101-85d6 answered SIP/100-fd8c
    -- Attempting native bridge of SIP/100-fd8c and SIP/101-85d6
Asterisk1*CLI>
Asterisk1*CLI>
    -- Started music on hold, class 'default', on channel 'SIP/100-fd8c'
    -- Stopped music on hold on SIP/100-fd8c
    -- Executing Answer("SIP/101-16b7", "") in new stack
    -- Executing Park("SIP/101-16b7", "7002") in new stack
  == Parked SIP/101-16b7 on 7000. Will timeout back to extension [internal]
s, 1 in 45 seconds
    -- Added extension '7000' priority 1 to parkedcalls
    -- Playing 'digits/7' (language 'en')
    -- Playing 'digits/0' (language 'en')
    -- Playing 'digits/0' (language 'en')
    -- Playing 'digits/0' (language 'en')
    -- Started music on hold, class 'default', on channel 'SIP/101-16b7'
  == Spawn extension (internal, s, 1) exited KEEPALIVE on 'SIP/101-16b7'

I'm using Asterisk 1.2.5.

I'm fairly new to asterisk so it's possible I'm missing something simple.

Any suggestions would be appreciated.

Thanks

--
kris seraphine
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060319/e26f2772/attachment.htm


More information about the asterisk-users mailing list