Koozali.org: home of the SME Server

Call Park issue with Sail 587

Offline ldkeen

  • *
  • 403
  • +0/-0
Call Park issue with Sail 587
« on: January 14, 2008, 10:16:29 AM »
Hey Jeff,
Hope you guys had a great chrissy break and some good new year celebrations. Just having a look a 587 which looks great but having an issue with Call Park. It's not new to 587 I just haven't had a chance to get around to documenting it. Here's what happens:
My Nokia N80 is ext 5005
My GXP2000 is ext 5000
I ring the grandstream from my Nokia then place the call into a park location by dialing #*5# on the GXP2000 dialpad. Almost straight away the Nokia is disconnected and I am disconnected from the asterisk console. I turned on AGI debug to try and see what's happening but can't quite work it out. Here's the output from the console:
Code: [Select]
    -- Executing [5000@internal:1] AGI("SIP/5005-08bcefe8", "selintra|OutCluster|5000") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
AGI Tx >> agi_request: selintra
AGI Tx >> agi_channel: SIP/5005-08bcefe8
AGI Tx >> agi_language: en
AGI Tx >> agi_type: SIP
AGI Tx >> agi_uniqueid: 1200300842.9
AGI Tx >> agi_callerid: 5005
AGI Tx >> agi_calleridname: 5005
AGI Tx >> agi_callingpres: 0
AGI Tx >> agi_callingani2: 0
AGI Tx >> agi_callington: 0
AGI Tx >> agi_callingtns: 0
AGI Tx >> agi_dnid: 5000
AGI Tx >> agi_rdnis: unknown
AGI Tx >> agi_context: internal
AGI Tx >> agi_extension: 5000
AGI Tx >> agi_priority: 1
AGI Tx >> agi_enhanced: 0.0
AGI Tx >> agi_accountcode:
AGI Tx >>
AGI Rx << SET PRIORITY 1
AGI Tx >> 200 result=0
AGI Rx << SET EXTENSION 5000
AGI Tx >> 200 result=0
AGI Rx << SET CONTEXT default
AGI Tx >> 200 result=0
    -- AGI Script selintra completed, returning 0
    -- Executing [5000@default:1] AGI("SIP/5005-08bcefe8", "selintra|InCall|") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
AGI Tx >> agi_request: selintra
AGI Tx >> agi_channel: SIP/5005-08bcefe8
AGI Tx >> agi_language: en
AGI Tx >> agi_type: SIP
AGI Tx >> agi_uniqueid: 1200300842.9
AGI Tx >> agi_callerid: 5005
AGI Tx >> agi_calleridname: 5005
AGI Tx >> agi_callingpres: 0
AGI Tx >> agi_callingani2: 0
AGI Tx >> agi_callington: 0
AGI Tx >> agi_callingtns: 0
AGI Tx >> agi_dnid: 5000
AGI Tx >> agi_rdnis: unknown
AGI Tx >> agi_context: default
AGI Tx >> agi_extension: 5000
AGI Tx >> agi_priority: 1
AGI Tx >> agi_enhanced: 0.0
AGI Tx >> agi_accountcode:
AGI Tx >>
AGI Rx << DATABASE GET "STAT" "OCSTAT"
AGI Tx >> 200 result=0
AGI Rx << DATABASE GET "cfimopen" "5000"
AGI Tx >> 200 result=0
AGI Rx << DATABASE GET "cfim" "5000"
AGI Tx >> 200 result=0
AGI Rx << DATABASE GET "STAT" "OCSTAT"
AGI Tx >> 200 result=0
AGI Rx << DATABASE GET "cfimopen" "5000"
AGI Tx >> 200 result=0
AGI Rx << DATABASE GET "STAT" "OCSTAT"
AGI Tx >> 200 result=0
AGI Rx << DATABASE GET "cfim" "5000"
AGI Tx >> 200 result=0
AGI Rx << DATABASE GET "ringdelay" "5000"
AGI Tx >> 200 result=0
AGI Rx << GET VARIABLE MOH
AGI Tx >> 200 result=0
AGI Rx << EXEC Dial SIP/5000|30|tTwW
    -- AGI Script Executing Application: (Dial) Options: (SIP/5000|30|tTwW)
    -- Called 5000
    -- SIP/5000-08bd0a20 is ringing
    -- SIP/5000-08bd0a20 answered SIP/5005-08bcefe8
    -- Started music on hold, class 'default', on SIP/5005-08bcefe8
    -- <SIP/5000-08bd0a20> Playing 'pbx-transfer' (language 'en')
    -- Stopped music on hold on SIP/5005-08bcefe8
    -- Started music on hold, class 'default', on SIP/5005-08bcefe8
  == Parked SIP/5005-08bcefe8 on 101@parkedcalls. Will timeout back to extension [default] 5000, 1 in 180 seconds
    -- <SIP/5000-08bd0a20> Playing 'digits/1' (language 'en')
    -- <SIP/5000-08bd0a20> Playing 'digits/0' (language 'en')
    -- <SIP/5000-08bd0a20> Playing 'digits/1' (language 'en')
    -- Added extension '101' priority 1 to parkedcalls
AGI Tx >> 200 result=10
  == Auto fallthrough, channel 'SIP/5005-08bcefe8' status is 'ANSWER'
    -- Executing [h@default:1] Hangup("SIP/5005-08bcefe8", "") in new stack
    -- Stopped music on hold on SIP/5005-08bcefe8
  == Spawn extension (default, h, 1) exited non-zero on 'SIP/5005-08bcefe8'
  == SIP/5005-08bcefe8 got tired of being parked
asterisk*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
I'm running smeserver 7.3 fully updated with asterisk-1.4.16.1-52.el4,  sail-2.2.1-587 and zaptel-1.4.7.1-44.el4
Any ideas on what might be happening?
Many thanks,
Lloyd
« Last Edit: January 14, 2008, 10:20:32 AM by ldkeen »

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Call Park issue with Sail 587
« Reply #1 on: January 14, 2008, 08:11:01 PM »
Hi Lloyd

Happy New Year mate.

Parking is interesting.  With most of the better SIP phones it gives problems.  If you do #*5# on a SNOM it can crash asterisk.  So....  We turned off # blind transfer in features.  You can turn it back on if you want but beware of unwanted side-effects...

Instead, use a regular SIP re-invite transfer by pressing "transfer" (the regular transfer button on the phone), wait for dial tone and then do *5 and "Send" (whatever the regular SIP send is on the phone).  This effectively, transfers the call into the park area and you will hear your parking slot announcement. 

Now, here's the clever bit...  -587 also supports visual parking, but ONLY if you run asterisk 1.4 (won't work with 1.2).   Lets say you have 2 parks, 701 and 702.  Set up one or two BLF keys on your phone to watch 701 and 702.  Now set up a speeddial on one of the other buttons, point it at *5 and label it "PARK".  Now you can do "Transfer"->"PARK" and the relevant park lamp will come on (it will light up an all phones that are watching the parks).  You can now hit the park button on any phone to retrive the call.  Too cool for skool mate!.

The only other thing you MUST do to make this work is, in the asterisk stanza for the extension, you must include ...
Code: [Select]
subscribecontext=extensions
insecure=very
call-limit={1 or more}


You may not need the insecure-very, we've had variouis reports from folk saying you do and some saying you don't.

Kind Regards

S

Offline jibe

  • ***
  • 128
  • +0/-0
Re: Call Park issue with Sail 587
« Reply #2 on: June 23, 2008, 05:16:23 PM »
Hi,

Transfer phone key+*5+send is working fine, the calls are parked correctly, but I don't hear anything (no parking slot announcement).

I tried to add the given code
Code: [Select]
subscribecontext=extensions
insecure=very
call-limit={1 or more}
in the extensions. Am I wrong ?

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Call Park issue with Sail 587
« Reply #3 on: June 23, 2008, 06:24:02 PM »
The BLF and call park guide is here

http://www.selintra.com/docs/cgi-bin/view/Main/DocChapter256

A lot depends upon the phone you are using.   Usually, you can get away with # (wait for "transfer"), then *5.  This should give you the announce (or, if you are using SNOMs it might bring Asterisk down, see above)  If your phones have BLF capability then you might want to try the visual call park/release described in the documentation (see above).  In general, if you blind transfer to *5 (which is what I think you are doing) then you won't hear the announce.

*5 with asterisk is always a bit iffy so you'll probably need to play around with it to get it to work the way you want.

Kind Regards 


Offline jibe

  • ***
  • 128
  • +0/-0
Re: Call Park issue with Sail 587
« Reply #4 on: June 24, 2008, 11:33:38 PM »
Hi,

Thanks.

In fact, it was a problem on this phone. I fixed the setup, no more problem now. You put me on the right way, as in fact the announced transfer was programmed as blind transfer !