Koozali.org: home of the SME Server
Obsolete Releases => SME VoIP (Asterisk, SAIL etc) => Topic started by: ldkeen on April 28, 2008, 12:04:41 PM
-
Might doing something wrong here, but after setting up COS with SAIL -618 I cant receive calls over a SailtoSail trunk. Here's the output from the CLI:
-- Accepting AUTHENTICATED call from 60.240.xx.xxx:
> requested format = g729,
> requested prefs = (g729|gsm|alaw|ulaw),
> actual format = g729,
> host prefs = (g729|ilbc),
> priority = mine
-- Executing [5000@internal:1] AGI("IAX2/smesark-11038", "selintra|OutCos|5000") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
-- AGI Script selintra completed, returning 0
[Apr 28 19:58:58] WARNING[15965]: pbx.c:2481 __ast_pbx_run: Channel 'IAX2/smesark-11038' sent into invalid extension '5000' in context '3003opencos', but no invalid handler
-- Hungup 'IAX2/smesark-11038'
The remote end is 300x (sme) and the receiving end is 500x (sark). The receiving end has COS enabled. Zap channels work fine.
Lloyd
-
privileged right?
Looks like a bug.
I did think we had seen this and patched it.
Let me have a look at it and get back.
Best
-
Hi Lloyd,
Here's a patch for you to try...
In /etc/e-smith/templates/etc/asterisk/extensions.conf/20-outbound at or around line 64 find
if (db_get_prop (\%selintra, 'global', "COSSTART") eq "ON") {
$OUT .= "\n\texten => _X.,1,agi(selintra,OutCos,\${EXTEN})\n\n";
}
else {
$OUT .= "\n\texten => _X.,1,agi(selintra,OutCluster,\${EXTEN})\n\n";
}
Replace it with...
if (db_get_prop (\%selintra, 'global', "COSSTART") eq "ON") {
$OUT .= "\n\texten => _XXXX.,1,agi(selintra,OutCos,\${EXTEN})\n\n";
}
else {
$OUT .= "\n\texten => _XXXX.,1,agi(selintra,OutCluster,\${EXTEN})\n\n";
}
That should refloat the boat.
Let me know how you get on with it.
Jeff
-
Hi Jeff,
Well that certainly fixed the problem - I can now receive calls over the trunk but it introduced another problem. I can't call out over the trunk now. I just get a 484 on the GXP2000 when calling out. There is no output on the CLI so I put the AGI into debug mode but nothing shows up - I don't think it's even getting to the AGI. If I pre-select the trunk it works OK. Internal calls still work fine but just not internal calls over the SailtoSail trunk.
Lloyd
-
yeah,
It didn't fix it properly. Bit of a bodge to be honest :( ... Working up a proper fix now.
-
HI Lloyd
Put up a new thread on this.... See forum