Sangoma A500 - dial out from specific port group?
Hi, Is it possible to originate calls from specific A500 ports with FreeSWITCH? I am using a A504 (8 BRI interfaces), and I want some outbound calls to be made from specific BRI interfaces. I tried to modify OpenZAP config as follows: conf/openzap.conf [span wanpipe boostbri1] trunk_type => bri b-channel => 1:1-2 b-channel => 2:1-2 b-channel => 3:1-2 b-channel => 4:1-2 b-channel => 5:1-2 b-channel => 6:1-2 [span wanpipe boostbri2] trunk_type => bri b-channel => 7:1-2 b-channel => 8:1-2 conf/autoload_configs/openzap.conf.xml: <boost_spans> <span name="boostbri1"> <!--<param name="hold-music" value="$${moh_uri}"/>--> <!--<param name="enable-analog-option" value="call-swap"/>--> <!--<param name="enable-analog-option" value="3-way"/>--> <param name="dialplan" value="XML"/> <param name="context" value="isdn"/> </span> <span name="boostbri2"> <param name="dialplan" value="XML"/> <param name="context" value="isdn"/> </span> </boost_spans>
Sorry I hit 'send' by mistake... Hi, Is it possible to originate calls from specific A500 ports with FreeSWITCH? I am using a A504 (8 BRI interfaces), and I want some outbound calls to be made from specific BRI interfaces. I tried to modify OpenZAP config as follows: conf/openzap.conf [span wanpipe boostbri1] trunk_type => bri b-channel => 1:1-2 b-channel => 2:1-2 b-channel => 3:1-2 b-channel => 4:1-2 b-channel => 5:1-2 b-channel => 6:1-2 [span wanpipe boostbri2] trunk_type => bri b-channel => 7:1-2 b-channel => 8:1-2 conf/autoload_configs/openzap.conf.xml: <boost_spans> <span name="boostbri1"> <param name="dialplan" value="XML"/> <param name="context" value="isdn"/> </span> <span name="boostbri2"> <param name="dialplan" value="XML"/> <param name="context" value="isdn"/> </span> </boost_spans> When I try to originate call I am getting errors: freeswitch@emo-voip> originate openzap/2/a/123456 music API CALL [originate(openzap/2/a/123456 music)] output: -ERR NORMAL_CIRCUIT_CONGESTION 2009-09-04 09:23:34.87253 [CRIT] ozmod_ss7_boost.c:244 SPAN is not online. 2009-09-04 09:23:34.87253 [ERR] mod_openzap.c:1043 No channels available 2009-09-04 09:23:34.87253 [ERR] switch_ivr_originate.c:1510 Cannot create outgoing channel of type [openzap] cause: [NORMAL_CIRCUIT_CONGESTION] Then I tried to modify the /etc/wanpipe/smg_bri.conf: ;Sangoma AFT-A500 port 11 [slot:8 bus:1 span:7] group=2 country=europe operator=etsi connection_type=point_to_point signalling=bri_nt spans=7 ;Sangoma AFT-A500 port 12 [slot:8 bus:1 span:8] group=2 country=europe operator=etsi connection_type=point_to_point signalling=bri_nt spans=8 i.e. changed 'group' to 2, but this doesn't help either. Marc Celsie from Sangoma's techdesk told me that I should ' dial X@gY with X being the number and Y being the group number'. How originate command should look like in this case? originate openzap/1/a/123456@g2 someExt ? I tried this syntax but with no effect. Marc also told me that there is a bug in FS which prevents groups from working. Should I fill bug report or feature request? Best regards, Vassil Panayotov
What is the output of "oz list" and "oz dump"? Put them in pastebin.freeswitch.org and link here in the mailing list. -MC On Tue, Sep 8, 2009 at 11:31 PM, Vassil Panayotov <panayotov.vd@gmail.com>wrote:
Sorry I hit 'send' by mistake...
Hi,
Is it possible to originate calls from specific A500 ports with FreeSWITCH? I am using a A504 (8 BRI interfaces), and I want some outbound calls to be made from specific BRI interfaces.
I tried to modify OpenZAP config as follows:
conf/openzap.conf
[span wanpipe boostbri1] trunk_type => bri b-channel => 1:1-2 b-channel => 2:1-2 b-channel => 3:1-2 b-channel => 4:1-2 b-channel => 5:1-2 b-channel => 6:1-2
[span wanpipe boostbri2] trunk_type => bri b-channel => 7:1-2 b-channel => 8:1-2
conf/autoload_configs/openzap. conf.xml:
<boost_spans> <span name="boostbri1"> <param name="dialplan" value="XML"/> <param name="context" value="isdn"/> </span>
<span name="boostbri2"> <param name="dialplan" value="XML"/> <param name="context" value="isdn"/> </span>
</boost_spans>
When I try to originate call I am getting errors:
freeswitch@emo-voip> originate openzap/2/a/123456 music API CALL [originate(openzap/2/a/123456 music)] output: -ERR NORMAL_CIRCUIT_CONGESTION
2009-09-04 09:23:34.87253 [CRIT] ozmod_ss7_boost.c:244 SPAN is not online. 2009-09-04 09:23:34.87253 [ERR] mod_openzap.c:1043 No channels available 2009-09-04 09:23:34.87253 [ERR] switch_ivr_originate.c:1510 Cannot create outgoing channel of type [openzap] cause: [NORMAL_CIRCUIT_CONGESTION]
Then I tried to modify the /etc/wanpipe/smg_bri.conf:
;Sangoma AFT-A500 port 11 [slot:8 bus:1 span:7] group=2 country=europe operator=etsi connection_type=point_to_point signalling=bri_nt spans=7
;Sangoma AFT-A500 port 12 [slot:8 bus:1 span:8] group=2 country=europe operator=etsi connection_type=point_to_point signalling=bri_nt spans=8
i.e. changed 'group' to 2, but this doesn't help either.
Marc Celsie from Sangoma's techdesk told me that I should ' dial X@gY with X being the number and Y being the group number'.
How originate command should look like in this case? originate openzap/1/a/123456@g2 someExt ?
I tried this syntax but with no effect. Marc also told me that there is a bug in FS which prevents groups from working.
Should I fill bug report or feature request?
Best regards, Vassil Panayotov
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hi,
Is it possible to originate calls from specific A500 ports with FreeSWITCH? I am using a A504 (8 BRI interfaces), and I want some outbound calls to be made from specific BRI interfaces.
Hello Vassil, Unless you are using openzap trunk (and that probably means FreeSWITCH trunk as well) this is unlikely to work. Revision 825 in openzap should fix the bug in trunk group selection. -- Moises Silva Software Developer Sangoma Technologies Inc. | 50 McIntosh Drive, Suite 120, Markham ON L3R 9T3 Canada t. 1 905 474 1990 x 128 | e. moy@sangoma.com
On Wed, Sep 9, 2009 at 01:20, Vassil Panayotov <panayotov.vd@gmail.com> wrote:
Hi,
Is it possible to originate calls from specific A500 ports with FreeSWITCH? I am using a A504 (8 BRI interfaces), and I want some outbound calls to be made from specific BRI interfaces.
You can't define several spans in openzap.conf for boost, the sangoma_brid config file is where you define groups, so your config should look like this: /// smg_bri.conf ...... group=1 spans=1 group=2 spans=2 group=3 spans=3 ...... /// openzap.conf [span wanpipe BoostBRI] trunk_type => bri b-channel => 1:1-2 b-channel => 2:1-2 b-channel => 3:1-2 b-channel => 4:1-2 b-channel => 5:1-2 b-channel => 6:1-2 b-channel => 7:1-2 b-channel => 8:1-2 /// openzap.conf.xml <boost_spans> <span name="BoostBRI"> <param name="local-ip" value="127.0.0.65"/> <param name="local-port" value="53000"/> <param name="remote-ip" value="127.0.0.66"/> <param name="remote-port" value="53000"/> <param name="context" value="default"/> <param name="dialplan" value="XML"/> <param name="tonegroup" value="uk"/> </span> </boost_spans> Then, you can Dial to your span/group number 3 with: freeswitch> originate openzap/1/a/12345@g3 <exten>|&<application_name>(<app_args>) freeswitch> originate openzap/1/a/12345@G3 <exten>|&<application_name>(<app_args>) freeswitch> originate openzap/1/a/12345@r3 <exten>|&<application_name>(<app_args>) freeswitch> originate openzap/1/a/12345@R3 <exten>|&<application_name>(<app_args>) If you are using FS 1.0.4, there is a bug, you can fix it with this -already in trunk- patch. Index: src/ozmod/ozmod_ss7_boost/ozmod_ss7_boost.c =================================================================== --- libs/openzap/src/ozmod/ozmod_ss7_boost/ozmod_ss7_boost.c.orig +++ libs/openzap/src/ozmod/ozmod_ss7_boost/ozmod_ss7_boost.c @@ -282,6 +282,8 @@ } ss7bc_call_init(&event, caller_data->cid_num.digits, ani, r); + //ss7_bc_call_init will clear the trunk_group val so we need to set it again + event.trunk_group=tg; if (gr && *(gr+1)) { Best regards, -- Octavio H. Ruiz Cervera Tel.: (+52 55) 8590-9000 Ext. 7016 Mobile: (+52 1 55) 4358-4565 Sent from Mexico City, DF, Mexico
Michael, Moises and Octavio thank you for your replies! The server will be shipped to another site today and I can't test thoroughly now. When it is installed I will update this thread. Best regards, Vassil On Thu, Sep 10, 2009 at 1:58 AM, Octavio Ruiz <tacvbo@tacvbo.net> wrote:
On Wed, Sep 9, 2009 at 01:20, Vassil Panayotov <panayotov.vd@gmail.com> wrote:
Hi,
Is it possible to originate calls from specific A500 ports with FreeSWITCH? I am using a A504 (8 BRI interfaces), and I want some outbound calls to be made from specific BRI interfaces.
You can't define several spans in openzap.conf for boost, the sangoma_brid config file is where you define groups, so your config should look like this:
/// smg_bri.conf ......
group=1 spans=1
group=2 spans=2
group=3 spans=3
......
/// openzap.conf
[span wanpipe BoostBRI] trunk_type => bri b-channel => 1:1-2 b-channel => 2:1-2 b-channel => 3:1-2 b-channel => 4:1-2 b-channel => 5:1-2 b-channel => 6:1-2 b-channel => 7:1-2 b-channel => 8:1-2
/// openzap.conf.xml
<boost_spans> <span name="BoostBRI"> <param name="local-ip" value="127.0.0.65"/> <param name="local-port" value="53000"/> <param name="remote-ip" value="127.0.0.66"/> <param name="remote-port" value="53000"/> <param name="context" value="default"/> <param name="dialplan" value="XML"/> <param name="tonegroup" value="uk"/> </span> </boost_spans>
Then, you can Dial to your span/group number 3 with:
freeswitch> originate openzap/1/a/12345@g3 <exten>|&<application_name>(<app_args>) freeswitch> originate openzap/1/a/12345@G3 <exten>|&<application_name>(<app_args>) freeswitch> originate openzap/1/a/12345@r3 <exten>|&<application_name>(<app_args>) freeswitch> originate openzap/1/a/12345@R3 <exten>|&<application_name>(<app_args>)
If you are using FS 1.0.4, there is a bug, you can fix it with this -already in trunk- patch.
Index: src/ozmod/ozmod_ss7_boost/ozmod_ss7_boost.c =================================================================== --- libs/openzap/src/ozmod/ozmod_ss7_boost/ozmod_ss7_boost.c.orig +++ libs/openzap/src/ozmod/ozmod_ss7_boost/ozmod_ss7_boost.c @@ -282,6 +282,8 @@ }
ss7bc_call_init(&event, caller_data->cid_num.digits, ani, r); + //ss7_bc_call_init will clear the trunk_group val so we need to set it again + event.trunk_group=tg;
if (gr && *(gr+1)) {
Best regards,
-- Octavio H. Ruiz Cervera Tel.: (+52 55) 8590-9000 Ext. 7016 Mobile: (+52 1 55) 4358-4565 Sent from Mexico City, DF, Mexico
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Just want to say that you were right. Updating to trunk solved the problem. It seems that I updated/rebuilt my copy just before the patch was applied on 4 September. Thank you again! On Thu, Sep 10, 2009 at 9:54 AM, Vassil Panayotov <panayotov.vd@gmail.com> wrote:
Michael, Moises and Octavio thank you for your replies!
The server will be shipped to another site today and I can't test thoroughly now. When it is installed I will update this thread.
Best regards, Vassil
On Thu, Sep 10, 2009 at 1:58 AM, Octavio Ruiz <tacvbo@tacvbo.net> wrote:
On Wed, Sep 9, 2009 at 01:20, Vassil Panayotov <panayotov.vd@gmail.com> wrote:
Hi,
Is it possible to originate calls from specific A500 ports with FreeSWITCH? I am using a A504 (8 BRI interfaces), and I want some outbound calls to be made from specific BRI interfaces.
You can't define several spans in openzap.conf for boost, the sangoma_brid config file is where you define groups, so your config should look like this:
/// smg_bri.conf ......
group=1 spans=1
group=2 spans=2
group=3 spans=3
......
/// openzap.conf
[span wanpipe BoostBRI] trunk_type => bri b-channel => 1:1-2 b-channel => 2:1-2 b-channel => 3:1-2 b-channel => 4:1-2 b-channel => 5:1-2 b-channel => 6:1-2 b-channel => 7:1-2 b-channel => 8:1-2
/// openzap.conf.xml
<boost_spans> <span name="BoostBRI"> <param name="local-ip" value="127.0.0.65"/> <param name="local-port" value="53000"/> <param name="remote-ip" value="127.0.0.66"/> <param name="remote-port" value="53000"/> <param name="context" value="default"/> <param name="dialplan" value="XML"/> <param name="tonegroup" value="uk"/> </span> </boost_spans>
Then, you can Dial to your span/group number 3 with:
freeswitch> originate openzap/1/a/12345@g3 <exten>|&<application_name>(<app_args>) freeswitch> originate openzap/1/a/12345@G3 <exten>|&<application_name>(<app_args>) freeswitch> originate openzap/1/a/12345@r3 <exten>|&<application_name>(<app_args>) freeswitch> originate openzap/1/a/12345@R3 <exten>|&<application_name>(<app_args>)
If you are using FS 1.0.4, there is a bug, you can fix it with this -already in trunk- patch.
Index: src/ozmod/ozmod_ss7_boost/ozmod_ss7_boost.c =================================================================== --- libs/openzap/src/ozmod/ozmod_ss7_boost/ozmod_ss7_boost.c.orig +++ libs/openzap/src/ozmod/ozmod_ss7_boost/ozmod_ss7_boost.c @@ -282,6 +282,8 @@ }
ss7bc_call_init(&event, caller_data->cid_num.digits, ani, r); + //ss7_bc_call_init will clear the trunk_group val so we need to set it again + event.trunk_group=tg;
if (gr && *(gr+1)) {
Best regards,
-- Octavio H. Ruiz Cervera Tel.: (+52 55) 8590-9000 Ext. 7016 Mobile: (+52 1 55) 4358-4565 Sent from Mexico City, DF, Mexico
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (4)
-
Michael Collins
-
Moises Silva
-
Octavio Ruiz
-
Vassil Panayotov