Highlight a phrase and click this icon to search it on Swyx-Forum   Highlight a phrase and click this icon to search it within the Swyx Knowledgebase   Highlight a phrase and click this icon to search it using Goolge   Highlight a phrase and click this icon to search it using Wikipedia

Forum

Bookmark and Share

Forum

Bookmark and Share

 
  Forums  Client  Configuration -...  Putting call on hold for few seconds
Previous Previous
 
Next Next
New Post 6/29/2009 6:57 PM
Unresolved
User is offline Oskar
11 posts
www.svar.is
9th Level Poster


Putting call on hold for few seconds  (Iceland)

This is a very simple call routing script, I need to connect the call then if the user is busy I want to park the call on hold for x number of seconds and then try again.

all ideas welcome :)

regards
Oskar

 
New Post 6/29/2009 11:22 PM
User is offline Morten Rokosz
987 posts
www.linkedin.com/in/rokosz
1st Level Poster








Re: Putting call on hold for few seconds  (Norway)

Since you wil use ECR anyway, why do you not simply build a queue? There are predefined Action Blocks for this in GSE.


Morten Rokosz
(Swyx T.A.G Member)

The best way to predict the future is to invent it.

 
New Post 6/30/2009 12:46 AM
User is offline Mirjam
78 posts
www.itnetworld.co.nz
5th Level Poster






Re: Putting call on hold for few seconds  (New Zealand)

Hi  Oskar


There is a small sample ECR script to download which routes an incoming calls according to user state speaking, available and logged off.

If a called party is speaking, the caller has options to be redirected to the main office number, leave a voicemail, send a callback request message or can wait until the called party is becoming free. If the user status of the called party changes from speaking to available, the “parked” caller will be immediately altering at the User extension.

Click here and download "Advanced DDI call routing".

Maybe this helps you.

Cheers
Mirjam

New Zealand & Australia Swyx Distributor

 
New Post 6/30/2009 10:58 AM
User is offline Tom Wellige
1237 posts
www.swyx.com
1st Level Poster








Re: Putting call on hold for few seconds  (Germany)
Modified By Tom Wellige  on 6/30/2009 10:40:20 AM)

 Oskar wrote

This is a very simple call routing script, I need to connect the call then if the user is busy I want to park the call on hold for x number of seconds and then try again.

Hi Oskar,

there is a block to put the current call on hold (i.e. starting some announcement/music) within the GSE. Once you have called that you can use a simple vbscript loop to check the availability of a certain user. Don't miss to place a PBXScript.Sleep 1000 into this loop !

You can use the following function to check the the client state (place it into the start block of your gse script):

Function IsAgentFree ( sNumber )
    Dim bReturn
bReturn = False
    Dim PBXConfig
    Set PBXConfig = PBXScript.CreateObject("IpPbxSrv.PBXConfig")
    PBXConfig.Initialize PBXUser
    Dim Users
    Set Users = PBXConfig.GetUserByAddress (sNumber)
    Dim User
    For Each User in Users
        ' does the server recognize this user a free ?
        If User.State = 2 Then
            ' check if client would really take the call (and not having locked it's lines)
            If PBXScript.IsUserOrGroupBusy (sNumber) = 0 Then bReturn = True
        End If
    Next
    IsAgentFree = bReturn
End Function

 

To put everything together:

  • use the Hold block to put the call on hold
  • use a VBScript code block to place the loop in

 

While Not IsAgentFree (100)
    PBXScript.Sleep 1000
Wend
  • use a Connect To block to connect the call.
    please note that the Connect To block will automatically activate the call on hold, so you don't need to call the Activate block by yourself.

But maybe Morten is right by suggesting to use the build in queue blocks for this. The queue itself does in fact nearly the same a described above.

 

Regards, Tom.

 

 

 


Tom Wellige
(Lead Solution Consultant, Swyx)



"It is a capital mistake to theorize before you have all the evidence. It biases the judgment."
(Sir Arthur Conan Doyle - Sherlock Holmes - A Study in Scarlet)

 
Previous Previous
 
Next Next
  Forums  Client  Configuration -...  Putting call on hold for few seconds

Bookmark and Share

 

Forum Policy

The discussion forums at Swyx Forum are dedicated to the discussion of Swyx, SwyxWare and related topics.

For the benefit of the community and to protect the integrity of swyx-form, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial products and non-commercial products which are not directly related to SwyxWare, it's OEM versions or a forum topic.
  2. No Flaming or Trolling.
  3. No Profanity, Racism, or Prejudice.
  4. Furthermore, make sure your posts comply to our Terms of Use.
  5. Newest development in German law defines online forums as journalistic content, making the forum owner and all posters to journalists. With this statement the forum owner declares that neither he nor his users are journalists with all legal consequences.
  6. The forums are currently unmoderated, meaning all postings will appear immediately after submission. If this turns out not working due to massive abuse all forums will switch to moderated mode, meaning a posting must be approved after submission my a moderator before appearing.
  7. You can use any language you like (except for the project forums) but keep in mind that by using english you will reach the largest audience.
  8. Within the project forums english language is mandatory.

 

Forum Help
Sponsors
Atia Communications
UCIT cloud communication
IPIT Ltd
bluvo AG
logic-base GmbH

 

Statistics
Threads1771
Postings8010
Most active (Posts)
Most popular (Views)
Most active (Posts)
logic-base GmbH
www.logic-base.de
Atia Communications
www.atiacomms.com
UCIT Nordic
www.ucit.no
IPIT Ltd
www.ipit.co.uk
bluvo AG
www.bluvo.de