Summary:ASTERISK-10120: progress messages doesn't work
Reporter:pj (pj)Labels:
Date Opened:2007-08-20 04:07:45Date Closed:2008-01-23 09:21:15.000-0600
Versions:Frequency of
Environment:Attachments:( 0) h323-announces-r99483.diff
( 1) progressFAIL-r81445.txt
( 2) progressOK-r77520.txt
sip->asterisk->chan_h323->ci$co gw->pstn
when calling to unavailable mobile phone or notexistent pstn number, I hear nothing in sip phone instead of progress messagess like "number you are calling is not available".
normal ringback is OK. early media (playback,noanswer) is also OK.
progress messagess:
svn-trunk-r77299 - OK
svn-trunk-r78683 - FAIL
last tested svn-trunk-r80022 - also FAIL


console log is same in both cases, no errors/warnings displayed
please let me know, if you need some more debugging.

Comments:By: pj (pj) 2007-08-24 02:35:23

I made more debugging and found, that h323 debugs are exactly same with working and not working asterisk release, so this issue is probably not related to chan_h323, but to other part of asterisk.
last rev, that I tested and works correctly is SVN-trunk-r77520.

to bug admin: please change category of this issue to Core/General or Core/PBX

By: Joshua C. Colp (jcolp) 2007-09-04 08:34:41

Please attach a complete console log with debug enabled and turned up so we can see if anything strange shows up.

By: pj (pj) 2007-09-04 13:39:58

sending both console logs, when progress message is played OK and when it fails (nothing hear but 'progress' is displayed on phone display)
both logs appears same, so I think it can be related to other asterisk part, maybe not h323 itself.

By: pj (pj) 2007-10-01 12:27:13

tried current trunk r84176M, but it still not working, progress messages, or even ringback, I hear nothing until connected.
last, rev. that I tested and is working correctly is SVN-trunk-r77299M
please look at this issue, asterisk trunk is unusable in h323 environments more than month ago.

By: pj (pj) 2007-10-23 14:25:10

Now I can confirm, that commit:
r78683 "Add support for using epoll instead of poll"
breaks chan_h323 related to non functional ringback and progress messages, again:
r78682 - OK
r78683 (and all above)- FAIL
I think, you have now sufficient informations to find source of this issue.

By: Sergey Tamkovich (sergee) 2008-01-06 08:07:30.000-0600

pj, please tell me, what exactly you don't like about progress messages? i can't see any significant difference between attached files.

Also, if you have enough time, please try to use openh323 1.18.0 (instead of 1.19.0) and pwlib 1.10.0 (if you are using different version) those 2 proved to be the most stable.

By: pj (pj) 2008-01-07 04:36:42.000-0600

sergee, as I wrote, progress messages doesn't work in trunk from commit 78683 and all above. checkout r78682 and below is OK. I don't think it can be related to pwlib or openh323.
Commit r78683 makes changes in many files including, chan_h323, rtp.c, channel.c etc., I think, if it was reverted in should work again.
symptoms: ringback and messages from pstn like "person you are calling is unavailable" isn't hear.
p.s. I tried todays trunk r96743 and issue still persist.
my setup: call--->chan_iax-(asterisk)-chan_h323---->cisco/PRI---->pstn

By: Sergey Tamkovich (sergee) 2008-01-11 03:18:08.000-0600

pj, i would like to reproduce your problem at my hardware for debugging,

Could you provide related parts of h323.conf, iax.conf, extensions.conf and cisco's dial-peers? thanks in advance!

By: pj (pj) 2008-01-12 14:09:07.000-0600

my config is simple, nothing special,
because of another bug with iax, I changed my setup, and currently using sip, instead of iax.
In my previous message, I forgot, that I'm calling cisco gw via callmanager, ie. chan_h323 talks to callmanager, not cisco gw.


port = 1720
bindaddr =



By: Sergey Tamkovich (sergee) 2008-01-22 05:37:22.000-0600

That was hard one.
epoll uses it's own set of FDs to monitor. Asterisk creates it during Dial() (by copying content of chan->fds[] to epoll's array) so it's not enough to put FD to chan->fds[] array, we need to do it before DIAL happens, otherwise epoll won't monitor our FDs.

By: Sergey Tamkovich (sergee) 2008-01-22 05:38:23.000-0600

This patch is against trunk. Test it please.

By: pj (pj) 2008-01-22 06:47:28.000-0600

great! it seems, that issue was resolved.
after five months I can use asterisk trunk again! thanks sergee

By: Digium Subversion (svnbot) 2008-01-23 09:21:15.000-0600

Repository: asterisk
Revision: 99860

U   trunk/channels/chan_h323.c

r99860 | tilghman | 2008-01-23 09:21:12 -0600 (Wed, 23 Jan 2008) | 7 lines

Progress messages don't work
(closes issue ASTERISK-10120)
Reported by: pj
      h323-announces-r99483.diff uploaded by sergee (license 138)
Tested by: pj