VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
panayotov.vd at gmail.com Guest
|
Posted: Wed Sep 09, 2009 1:30 am Post subject: [Freeswitch-users] Sangoma A500 - dial out from specific por |
|
|
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> |
|
Back to top |
|
|
panayotov.vd at gmail.com Guest
|
Posted: Wed Sep 09, 2009 1:37 am Post subject: [Freeswitch-users] Sangoma A500 - dial out from specific por |
|
|
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 |
|
Back to top |
|
|
msc at freeswitch.org Guest
|
Posted: Wed Sep 09, 2009 4:32 pm Post subject: [Freeswitch-users] Sangoma A500 - dial out from specific por |
|
|
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 (panayotov.vd@gmail.com)> wrote:
Quote: | 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 (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
|
|
|
Back to top |
|
|
moises.silva at gmail.com Guest
|
Posted: Wed Sep 09, 2009 5:16 pm Post subject: [Freeswitch-users] Sangoma A500 - dial out from specific por |
|
|
Quote: | Quote: | 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 (moy@sangoma.com) |
|
Back to top |
|
|
tacvbo at tacvbo.net Guest
|
Posted: Wed Sep 09, 2009 6:36 pm Post subject: [Freeswitch-users] Sangoma A500 - dial out from specific por |
|
|
On Wed, Sep 9, 2009 at 01:20, Vassil Panayotov <panayotov.vd@gmail.com> wrote:
Quote: | 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 |
|
Back to top |
|
|
panayotov.vd at gmail.com Guest
|
Posted: Thu Sep 10, 2009 1:59 am Post subject: [Freeswitch-users] Sangoma A500 - dial out from specific por |
|
|
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:
Quote: | On Wed, Sep 9, 2009 at 01:20, Vassil Panayotov <panayotov.vd@gmail.com> wrote:
Quote: | 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
|
_______________________________________________
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 |
|
Back to top |
|
|
panayotov.vd at gmail.com Guest
|
Posted: Mon Sep 14, 2009 1:18 am Post subject: [Freeswitch-users] Sangoma A500 - dial out from specific por |
|
|
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:
Quote: | 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:
Quote: | On Wed, Sep 9, 2009 at 01:20, Vassil Panayotov <panayotov.vd@gmail.com> wrote:
Quote: | 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
|
|
_______________________________________________
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 |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|