* You are viewing the archive for July, 2011

Problem H323 asterisk 1.6.2.19

Do you have any network devices or VPN tunnels in between the Asterisk
and Avaya?

The reason I am asking it looks like a potential networking issue.

Has this setup ever worked before?

-Vladimir

On 7/27/2011 1:32 PM, troxlinux wrote:
> Hi list , I am connecting one avaya with asterisk by h323 and when I
> call to avaya becomes disconnected, this is my debug
>
>
> ippbx*CLI> h323 set debug on
> H.323 Debugging Enabled
> == Using SIP RTP CoS mark 5
> == Using SIP VRTP CoS mark 6
> — Executing [1083@mific:1] Dial(“SIP/4097-00000002″,
> “H323/1083@172.16.8.5:1720,40″) in new stack
> — Requested transfer capability: 0×00 – SPEECH
> — Making call to 1083@172.16.8.5:1720 without gatekeeper.
> Using 172.16.8.56 for outbound call
> == New H.323 Connection created.
> — root is calling host 1083@172.16.8.5:1720
> — Call token is ip$localhost/19287
> — Call reference is 19287
> — DTMF Payload is 0x4235b48
> — Called 1083@172.16.8.5:1720
> Setting capabilities to 0xc (ulaw|alaw)
> Capabilities in preference order is (ulaw|alaw)
> DTMF mode is 8
> Allowed Codecs for ip$localhost/19287 (ip$172.16.8.56:39935):
> Table:
> G.711-uLaw-64k <1>
> G.711-ALaw-64k <2>
> UserInput/hookflash <3>
> UserInput/basicString <4>
> Set:
> 0:
> 0:
> G.711-uLaw-64k <1>
> G.711-ALaw-64k <2>
> 1:
> UserInput/hookflash <3>
> 2:
> UserInput/basicString <4>
>
> — Sending SETUP message
> — Received RELEASE COMPLETE message…
> — ClearCall: Request to clear call with token
> ip$localhost/19287, cause EndedByRemoteBusy
> — Sending RELEASE COMPLETE
> ExternalRTPChannel Destroyed
> ExternalRTPChannel Destroyed
> ExternalRTPChannel Destroyed
> ExternalRTPChannel Destroyed
> — ClearCall: Request to clear call with token
> ip$localhost/19287, cause EndedByTransportFail
> — 1083 was busy
> == H.323 Connection deleted.
> == Everyone is busy/congested at this time (1:1/0/0)
> — Executing [1083@mific:2] Hangup(“SIP/4097-00000002″, “”) in new stack
> == Spawn extension (mific, 1083, 2) exited non-zero on ‘SIP/4097-00000002′
>
>
> I have perfectly compiled h323 in asterisk
>
> core show channeltypes
> Type Description Devicestate
> Indications Transfer
> ———- ———– ———–
> ———– ——–
> Local Local Proxy Channel Driver yes yes
> no
> Bridge Bridge Interaction Channel no no
> no
> H323 The NuFone Network’s Open H.323 Channel no yes
> no
> Console OSS Console Channel Driver no yes
> no
> USTM UNISTIM Channel Driver no yes
> no
> Phone Standard Linux Telephony API Driver no yes
> no
>
>
> any idea?
>
> regardss
>
>
>
>

Lightning and thunder (Claude Hayn

Thank you all for your replies.

I am just starting to use message boards and really appreciate the fact that
people jump in an effort to help.

As I’m learning, I’m hopeful to be able to help other folks down the road.

Judging by the responses I should have provided more details, including the
fact that I’m a novice.

This implementation is quite old (and they will not spring for anything
new).

The UPS is not capable of writing to anything so that would not help.

The office manager freaks out each time and starts randomly rebooting
devices in no particular order including the UPS, PBX, Asterisk Gateway,
firewall and router.

I suspect the overall issue is related to the reboot timing difference
between the PBX and asterisk box.

Kevin, thank you for your reply.

I’m not sure where to look, but would like to address the cause. Would you
have any specific ideas as to what to look at/for?

Someone mentioned that the Asterisk Gateway might need to be the clock.
Does this make sense? Could this be considered a cause?

Robert, thank you for your answer.

Given my limited ability to discern issues/causes this is along the lines of
what I had in mind.

I was thinking that something that would reboot the Asterisk Gateway
approximately 5 min. after power returned, giving the old/tired PBX time to
fully reboot would solve the issue.

I was further trying to understand how to keep this from perpetually
rebooting the asterisk Gateway every 5 min. and how to have it happen
automatically just once after a power outage.

My understanding is that your concept would work once if the flag was
thrown. I’m not sure how to address the fact that I would not know the
power outage occurred so that reboot would be automatic the second time.

Again, thank you all for responding,

Claude

Securing Asterisk

This is turning into a political issue such as the one in Washington
and the impending default on US debt. The point is that a minor change
in the code would have a dramatic effect on security, and carry a
lower impact on CPU that using Iptables. The simplicity of the change
cannot understated. The hackers do not continue sending packets with
new REGISTER attempts unless they see a response. The would move on.
Digium is being monarchical about this. It looks like a loss of
contact with reality. The vast ecosystem of Digium is made of hundreds
of people like me. I am being forced now to place Opensips in front of
Asterisk, in port 5060, set Asterisk to listen at Port 5061, and block
access to 5061 from outside. Instead of a minor change, I have to
bring a second application to the picture.
The reason why I find useless using iptables and a rule that bans an
IP address if it communicates more than a threshold of times, is
simple. I have customers that hit me 10+ times per seconds from the
same IP. It would look like a hacker, and it is not. I use a cluster
of Asterisk in the same box, a big server, and each asterisks listens
in its own network interface, and responds from it. It does work. But
iptables or fail2ban would not work in a wholesale scenario.
Any way, thanks for your attention.

Lightning and thunder

Maybe write a cludgy init.d script / bash. I.e. make a file somewhere called
rebootflag. set it to 1 after you issue a shutdown -r -n now. then check it
in init.d script.

Pseudo code

In init.d / startup scripts

If /etc/manualreboot = 0 or file not found

echo 1 >> /etc/manualreboot

/sbin/shutdown -r -n now

end if

From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Claude Hayn
Sent: Wednesday, July 27, 2011 9:44 AM
To: asterisk-users@lists.digium.com
Subject: [asterisk-users] Lightning and thunder

We are frequently losing power during lightning storms. (Yes we have UPS,
but often by the time power comes back up the UPS has run out of juice)

We are using Asterisk with a T1/PRI card as a front end connected to our
PBX. Whenever there is a power outage both the Asterisk box and the PBX
automatically reboot when power returns.

The Asterisk box automatically reconnects to the ITSP SIP Peer, and the PBX
to the T1/PRI Card Asterisk box.

Incoming calls connect, but outbound calls will not complete until the
Asterisk box is manually rebooted again.

Does anyone know of a solution for this issue? Having to get up in the late
night to manually reboot the Asterisk box is getting old!

Thank you,

Claude

Stun Server

We have been running a windows stun server for 5 years now and I would like
to change to either a linux of freebsd based unit to phase out the old XP
box in our datacenter. What should I look at that would be a good
replacement. The windows box has worked but the hardware is at end of life
and I want to move it to a vm and I don’t want Windows.

Any advise is apperciated.

Thanks

zktech