[Asterisk-bsd] pickup problem

Diego Valencia dvalencia at powervt.com.ar
Wed Mar 22 16:12:10 MST 2006


Hi everyone, I have a problem with pickup:

My extensions looks as:

exten => s,1,Wait,1                     ; Wait a second, just for fun
exten => s,2,Answer                     ; Answer the line
exten => s,3,Set(TIMEOUT(digit)=10)      ; Set Digit Timeout to 10 seconds
exten => s,4,Set(TIMEOUT(response)=3)  ; Set Response Timeout to 3 seconds
exten => s,5,Set(LANGUAGE()=es)         ; Set language to spanish
exten => s,6(restart),BackGround(001_IVR1) ; Play a congratulatory message
exten => s,7,WaitExten          ; Wait for an extension to be dialed.

exten => s,8,Dial(SIP/241,30)  ;dial 241 if nothing is dialed.

exten => _8.,1,Pickup(${EXTEN:1})   ; pickup

exten => 210,1,Dial(SIP/210,30)
exten => 211,1,Dial(SIP/211,30)
exten => 241,1,Dial(SIP/241,30)

I can't pickup the call when the priority 8 is executed (time out expired). 
If the number is dialed (210, 211, 241) before the time out expire, the 
pickup feature works fine.

    -- Executing Wait("SIP/5890020-709f", "1") in new stack
    -- Executing Answer("SIP/5890020-709f", "") in new stack
    -- Executing Set("SIP/5890020-709f", "TIMEOUT(digit)=10") in new stack
    -- Digit timeout set to 10
    -- Executing Set("SIP/5890020-709f", "TIMEOUT(response)=3") in new stack
    -- Response timeout set to 3
    -- Executing Set("SIP/5890020-709f", "LANGUAGE()=es") in new stack
    -- Executing BackGround("SIP/5890020-709f", "001_IVR1") in new stack
    -- Playing '001_IVR1' (language 'es')
    -- Executing WaitExten("SIP/5890020-709f", "") in new stack
    -- Timeout on SIP/5890020-709f, continuing...
    -- Executing Dial("SIP/5890020-709f", "SIP/241|30") in new stack
    -- Called 241
    -- SIP/241-3b7a is ringing

    -- Executing Pickup("SIP/210-c7f7", "241") in new stack  ### I get 
SIP/2.0 603 Declined event on my phone


____________________
Diego Valencia
Network Support
IP-Tel SA
Tel: 0351-5890002
Movil: 0351-155194286

 



More information about the Asterisk-BSD mailing list