News & Reviews
More How-To's & Tips More News
More Reviews Device Configuration Tools
No account yet? Create one
Forgot your Username or Password?

Welcome to the Voxilla VoIP Forum.

Voxilla has been a trusted source for accurate, up-to-date information on the IP Communications industry since 2002. A dedicated staff of reporters and engineers produce feature articles and product reviews to keep industry watchers abreast of the people, companies, and trends driving a fast moving market.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.





Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old April 30th, 2008, 02:51 PM
tunelsys tunelsys is offline
Junior Member
 
Join Date: Mar 2008
Posts: 1
tunelsys is on a distinguished road
Default Outgoing calls on multiple sip lines

I have various sip lines and I want to make my outgoing calls trying to dial the first available line. To accomplish this I have the following entries in the AstDB

SIPLINES/line1 : line_name_1
SIPLINES/line2 : line_name_2
.
.
and so on....

and the following code in extensions.conf:

[macro-dial_all]
;
; Dial all macro:
; This macro is used when there are more than one sip lines defined and it
; will try to dial out the first available line.
;
; ${ARG1} - Dialed number
;
exten => s,1,NoOp(${ARG1})
exten => s,n,Set(dialnum=${ARG1})
exten => s,n,Goto(s-DOUT,1)

exten => s-DOUT,1,Set(DBKEY=0)
exten => s-DOUT,n(increment),Set(DBKEY=$[${DBKEY} + 1])
exten => s-DOUT,n,DBget(TRUNK=SIPLINES/line${DBKEY})
exten => s-DOUT,n,GotoIf($["foo${TRUNK}" = "foo"]?s-GIVEUP,1)
exten => s-DOUT,n,Dial(SIP/${dialnum}@${TRUNK}|20)
exten => s-DOUT,n,Goto(s-${DIALSTATUS},1)

exten => s-CHANUNAVAIL,1,Playback(pls-wait-connect-call)
exten => s-CHANUNAVAIL,n,Goto(s-DOUT,increment)
exten => s-BUSY,1,Playback(pls-wait-connect-call)
exten => s-BUSY,n,Goto(s-DOUT,increment)
exten => s-CONGESTION,1,Playback(pls-wait-connect-call)
exten => s-CONGESTION,n,Goto(s-DOUT,increment)
exten => s-NOANSWER,1,Playback(pls-wait-connect-call)
exten => s-NOANSWER,n,Goto(s-DOUT,increment)

exten => s-GIVEUP,1,Playback(all-outgoing-lines-unavailable)
exten => s-GIVEUP,n,Playback(please-try-again-later)
exten => s-GIVEUP,n,Congestion()
exten => s-GIVEUP,n,Hangup()

It works well but I have this problem: For example, when I dial a number the system will try to dial the first sipline in the AstDB but if the line is busy or unavailable I have to wait that the ringtime expires (20 s in this case) before it tries to dial the next sipline. I want the system to try the next sip line immediately when it receives a busy response from the first line.

Regards.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:



Similar Threads for: Outgoing calls on multiple sip lines
Thread Thread Starter Forum Replies Last Post
Multiple BV accounts and Asterisk Outgoing calls issue hroberts89436 BroadVoice Support Forum 0 February 18th, 2007 12:00 AM
ATA with multiple incoming-outgoing lines/providers? Dr.Buster Linksys (Sipura) VoIP Support Forum 12 June 15th, 2006 06:50 AM
Multiple Lines, Line Busy/Outgoing Selection sryan2k1 Asterisk Support Forum 1 March 1st, 2006 04:31 PM
Multiple Outgoing, Multiple Incoming. Any Sipuras do this? scope Linksys (Sipura) VoIP Support Forum 28 November 8th, 2005 02:27 PM
Multiple SIP accounts for incomming & Outgoing pjukone Linksys (Sipura) VoIP Support Forum 14 August 10th, 2005 04:45 PM



All times are GMT. The time now is 06:49 AM.


vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc. Logos and trademarks are the property of Voxilla or their respective owner. All other content © 2003-2007 by Voxilla, Inc.