[asterisk-users] send the calls from to servers
Eric Wieling
EWieling at nyigc.com
Fri Dec 20 10:01:50 CST 2013
You should be asking Aheeva these questions.
Here is an untested sample dialplan which could be adapted. If you need more info you should read the Asterisk Book.
Exten => _1NXXNXXXXXX,1,Dial(DAHDI/g1/${EXTEN})
Exten => same,n,GotoIf($["${DIALSTATUS" != "ANSWER" && ($["${DIALSTATUS" != "BUSY"]?failover)
Exten => same,n,Hangup
Exten => same,n(failover),Dial(SIP/otherserver/${EXTEN})
Exten => same,n,Hangup
"otherserver" would be the peer entry in sip.conf for your other server.
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Salaheddine Elharit
Sent: Friday, December 20, 2013 10:51 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] send the calls from to servers
i attached file my dialplan
2013/12/20 Salaheddine Elharit <salah.elharit200 at gmail.com>
in attached file my dialplan
thanks and regards
2013/12/20 Eric Wieling <EWieling at nyigc.com>
You must write dialplan code to do what you want. Assuming you are not using a GUI with Asterisk, post your dialplan used for outgoing calls.
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Salaheddine Elharit
Sent: Friday, December 20, 2013 4:34 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] send the calls from to servers
hello
thanks for your response
i try to switch the provider in the same server without issue but my problem now i have 2 servers in the same network and with the same configuration
iw want to use the group 2 of the server 1 and group 2 of server 2 for the same calls. and if group 2 of server 1 is down i can continue to use group 2 of server 2
thanks and regards
[trunkgroups]
trunkgroup => 1,16
spanmap => 1,1,1
[channels]
#include dahdi-channels.conf
context=default
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
rxgain=0.0
txgain=0.0
immediate=yes
echocancel=no
dtmfmode=auto
group=1
switchtype=euroisdn
signalling=pri_cpe
callgroup=1
;pickupgroup=1
immediate=no
channel => 1-15,17-31
group=2
callgroup=2
switchtype=qsig
signalling=pri_net
callerid=5xxxxxxxx
immediate=no
channel => 32-46,48-52
2013/12/19 Eric Wieling <EWieling at nyigc.com>
The basic idea is dial using your main outbound dahdi group, then check the value of HANGUPCAUSE, then if appropriate dial out using your secondary dahdi group. This is a standard thing. Check the mailing list archives and voip-info.org
See also the [stdexten] section of extensions.conf.sample
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Salaheddine Elharit
Sent: Thursday, December 19, 2013 1:32 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] send the calls from to servers
i ask about outbound calls not inbound round-robin
best regards
2013/12/19 Eric Wieling <EWieling at nyigc.com>
Inbound call hunting is handled by your carrier, not Asterisk.
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Salaheddine Elharit
Sent: Thursday, December 19, 2013 12:52 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] send the calls from to servers
I have this scenario
In the first server 192.168.5.100 I have asterisk installed 1.4.43 and one diguim card with 2 ports: in the first port connection for the provider X : the second port of diguim card the connection of the provider Y
In the second server (the same configuration) 192.168.5.200 asterisk installed 1.4.43 and one diguim card with 2 ports : the first port is empty the second port the connection of the provider Y
My question how can I do in order to send the calls of the second providers from the port 2 server 1 and port 2 server 2 ()if one of them is down I continue to send the calls from the other
Thanks and regards
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list