here is the working configuration & tips for oh323
After building trixbox ;
First of all do this:
cp /etc/asterisk-1.2.8-samples/ooh323.conf /etc/asterisk
amportal stop
amportal start
Then apply the followings as stated.
A- Here is my working ooh323.conf file;
; Objective System's H323 Configuration example for Asterisk
; ooh323c driver configuration
;
; [general] section defines global parameters
;
; This is followed by profiles which can be of three types - user/peer/friend
; Name of the user profile should match with the h323id of the user device.
; For peer/friend profiles, host ip address must be provided as "dynamic" is
; not supported as of now.
;
; Syntax for specifying a H323 device in extensions.conf is
; For Registered peers/friends profiles:
; OOH323/name where name is the name of the peer/friend profile.
;
; For unregistered H.323 phones:
; OOH323/ip[:port] OR if gk is used OOH323/alias where alias can be any H323
; alias
;
; For dialing into another asterisk peer at a specific exten
; OOH323/exten/peer OR OOH323/exten@ip
;
; Domain name resolution is not yet supported.
;
; When a H.323 user calls into asterisk, his H323ID is matched with the profile
; name and context is determined to route the call
;
; The channel driver will register all global aliases and aliases defined in
; peer profiles with the gatekeeper, if one exists. So, that when someone
; outside our pbx (non-user) calls an extension, gatekeeper will route that
; call to our asterisk box, from where it will be routed as per dial plan.
[general]
;Define the asetrisk server h323 endpoint
;The port asterisk should listen for incoming H323 connections.
;Default - 1720
port=1720
;The dotted IP address asterisk should listen on for incoming H323
;connections
;Default - tries to find out local ip address on it's own
bindaddr=10.1.23.101
;This parameter indicates whether channel driver should register with
;gatekeeper as a gateway or an endpoint.
;Default - no
gateway=no
;Whether asterisk should use fast-start and tunneling for H323 connections.
;Default - yes
;faststart=no
;h245tunneling=no
;H323-ID to be used for asterisk server
;Default - Asterisk PBX
h323id=ObjSysAsterisk
e164=100
;CallerID to use for calls
;Default - Same as h323id
callerid=asterisk
;Whether this asterisk server will use gatekeeper.
;Default - DISABLE
;gatekeeper = DISCOVER
;gatekeeper = a.b.c.d
gatekeeper = DISABLE
;Location for H323 log file
;Default - /var/log/asterisk/h323_log
;logfile=/var/log/asterisk/h323_log
;Following values apply to all users/peers/friends defined below, unless
;overridden within their client definition
;Sets default context all clients will be placed in.
;Default - default
context=default
;Sets rtptimeout for all clients, unless overridden
;Default - 60 seconds
;rtptimeout=60 ; Terminate call if 60 seconds of no RTP activity
; when we're not on hold
rtptimeout=3
;do not drop this below 3 nor increase much...other wise
;you will not able to call same number again for some time because
;it hangs.Now 3 seconds waiting is needed and it is acceptable.
;Type of Service
;Default - none (lowdelay, thoughput, reliability, mincost, none)
;tos=lowdelay
;amaflags = default
;The account code used by default for all clients.
;accountcode=h3230101
;The codecs to be used for all clients.Only ulaw and gsm supported as of now.
;Default - ulaw
; ONLY ulaw, gsm, g729 and g7231 supported as of now
disallow=all ;Note order of disallow/allow is important.
allow=gsm
allow=ulaw
allow=g729
allow=g723
; dtmf mode to be used by default for all clients. Supports rfc2833, q931keypad
; h245alphanumeric, h245signal.
;Default - rfc 2833
dtmfmode=rfc2833
; User/peer/friend definitions:
; User config options Peer config options
; ------------------ -------------------
; context
; disallow disallow
; allow allow
; accountcode accountcode
; amaflags amaflags
; dtmfmode dtmfmode
; rtptimeout ip
; port
; h323id
; email
; url
; e164
; rtptimeout
;
;Define users here
;Section header is extension
[myuser1]
type=user
context=context1
disallow=all
allow=gsm
allow=ulaw
[mypeer1]
type=peer
context=context2
ip=a.b.c.d ; UPDATE with appropriate ip address
port=1720 ; UPDATE with appropriate port
e164=101
[myfriend1]
type=friend
context=default
ip=10.0.0.82 ; UPDATE with appropriate ip address
port=1820 ; UPDATE with appropriate port
disallow=all
allow=ulaw
e164=12345
rtptimeout=60
dtmfmode=rfc2833
B-here is the trunk configuration to cisco call manager;
Dial rules:8XXXX
custom dial string:OOH323/$OUTNUM$@10.8.23.5:1720
C-here is outbond routes
Route name:h323trunk
Dial rules:8XXXX
OOH323/$OUTNUM$@10.8.23.5:1720
D-For cisco call manager
first create a h323 gateway with asterisk ip
then create route patern and route to this gateway
be carefull abaout regions codecs because you must allow these codecs in oh323.conf as i stated in the beginning conf file.
Brothers i recommend you update your trixbox to version 1.2.3
as described in update trixbox section in that way your addon versions will be change and you will have more stable h323 trunk in long term.(you will just change addon versions in the upper part.)
--------------------------NEW-------------------
FOR SER & TRIXBOX INTEGRATION FOLLOW THE LINK BELOW:
http://www.trixbox.org/modules/newbb/viewtopic.php?topic_id=7786&post_id...
---------------------------------NEW--------------
Brothers,
The addons used in trixbox 2.0 and trixbox 1.2.3 are causing the asterisk crash...
saying core dumped...
here is the solution;
on trixbox 1.2.3 (NOT TRIXBOX 2.0 !!!);
STEP 1:DELETE CURRENT ADDONS RPM ;
rpm -qa | grep asterisk-addons
rpm -e asterisk-addons-1.2.4_1.2.12.1-1.294
-----load former addons rpm------
STEP2:LOAD ADDONS VERSION 1.2.3
rpm -i asterisk-addons-1.2.3-1.219.i386.rpm
(i put in the link->http://n.domaindlx.com/ergenay/rpms/asterisk-addons-1.2.3-1.219.i386.rpm)(sometimes page is under load so try your chance.)
amportal stop
amportal start
then it works perfect.
on trixbox 2.0 it is NOTworking whatever you do...
so STAY on 1.2.3 and DO rpm change if you are using "ooh323".
Thank you for this post. I have followed your instructions and literaly copied and pasted you ooh323.conf file accept for the "bindaddr=10.1.23.101" where i have put in my servers IP. Now during a test call from my xlite sip softphone to the h323 GW the pstn/Mobile phone rings but as soon as it is answered within 2 secs the line gets cut, This is the debug msg during the line being dropped => asterisk1*CLI> -- OOH323/216.206.188.216-417b answered SIP/1979-efbf
asterisk1*CLI> -- Attempting native bridge of SIP/1979-efbf and OOH323/216.206.188.216-417b
asterisk1*CLI> --- onCallCleared ooh323c_o_2
--- find_call
+++ find_call
But my xlite is still on call and asterisk also thinks the call is active. Please help.
this is what is executed during the dial
-- Executing Dial("SIP/1979-efbf", "OOH323/3338801713005569@216.206.188.216|120|r") in new stack
Hi,
i guess you have a codec problem.And probably your codec problem is on the codec definitions of call manager stated in "Regions".
By the way be sure about the codecs you registered in asterisk may be u use g729 or g723 whatever iti is..
You can test this with this:
"show translation"
you have to see following:
g723 gsm ulaw alaw g726 adpcm slin lpc10 g729 speex ilbc
g723 - 4 2 2 5 2 1 7 12 - 18
gsm 13 - 2 2 5 2 1 7 12 - 18
ulaw 13 4 - 1 5 2 1 7 12 - 18
alaw 13 4 1 - 5 2 1 7 12 - 18
g726 16 7 5 5 - 5 4 10 15 - 21
adpcm 13 4 2 2 5 - 1 7 12 - 18
slin 12 3 1 1 4 1 - 6 11 - 17
lpc10 14 5 3 3 6 3 2 - 13 - 19
g729 15 6 4 4 7 4 3 9 - - 20
speex - - - - - - - - - - -
ilbc 15 6 4 4 7 4 3 9 14 - -
as you see there are numbers on g729 or g723 lines...otherwise it is empty.
on call manager be carefull about "calling search spaces" also.
Thank you for the reply. I have checked the translations this is what it shows :-
g723 gsm ulaw alaw g726 adpcm slin lpc10 g729 speex ilbc
g723 - - - - - - - - - - -
gsm - - 2 2 4 2 1 5 - - 15
ulaw - 4 - 1 4 2 1 5 - - 15
alaw - 4 1 - 4 2 1 5 - - 15
g726 - 6 4 4 - 4 3 7 - - 17
adpcm - 4 2 2 4 - 1 5 - - 15
slin - 3 1 1 3 1 - 4 - - 14
lpc10 - 5 3 3 5 3 2 - - - 16
g729 - - - - - - - - - - -
speex - - - - - - - - - - -
ilbc - 5 3 3 5 3 2 6 - - -
g723 and g729 are blank. What do i do? And which conf file do i edit to check the regions?
Thank you for your tutorial.
I have the problem that asterisk don't listen on port 1720.
In the ooh323.conf I have set port=1720 and listenPort=1720, but asterisk don't listen on this port! :-(
Any Ideas?
Where is the different between h323.conf and ooh323.conf or oh323.conf?
here is the link for trixbox sip express router ser (or asterisk openser) integration with h323 trunk (for codec conversion) support:
http://www.trixbox.org/modules/newbb/viewtopic.php?viewmode=threa...
Hi ogulcan !!
Can you please go thru this and see what we might be doing wrong here !!
Help will be highly appreciated !
Royd
Guys !!
For Trixbox 2.0 when i have "OOH323$OUTNUM$@xx.xx.xx.xx:xxxx" as my Custom Trunk where asterisk crashed, we all know that.
I have removed "asterisk-addons-1.2.4_1.2.12.1-1.294" as "ogulcan" mentioned
and installed http://www.xs4all.nl/~pjl/downloads/asterisk/rpms/centos/i386/ast...
1) Asterisk does not crash
2) I can access my Custom trunk using SIP phone (X-lite), BUT the connections stays for about 5 seconds and the the SIP phone hangs up.
Just thought i share my developments with ya guys. If anyone around know why my SIP phone hungup when access the H323 Custom Trunk please help/let me know.
Royd
ok,first of all could you please try
"trixbox 1.2.3" and "rpm -i asterisk-addons-1.2.3-1.219.i386.rpm"
because I ALSO COULD NOT achieve to run ooh323 in a stable way on trixbox 2 as i mentioned before.
there seems some bugs in trixbox 2.0 in ooh323 wise.
try with those couple,ok?
Hi Ogulcan,
I'm wondering which is actually your network configuration. You talk about the Cisco Call Manager, so I suppose you have a network of H323 phone terminals connected to and managed by the Call Manager; at that point you attached the Trixbox to the Cisco Call Manager and therefore you add the custom Trunk and the custom route in the Trixbox (and you accept them on the Call Manager side).
I'm actually interested in something dfferent: I'd like to manage connections between different H323 terminals exclusively by using Trixbox (and a software gatekeeper, if needed, like gnugk).
I'm trying to follow your configuraion setup and adapt it to my situation, where I have a trixbox and several PC's connected on a LAN. Therefore I'm setting up a custom Trunk to each h323 softphone from the trixbox; every softphone already is listening, so nothing needs to be set up at the client side (is this sensible?)
I'm confused by the need of custom Trunks: in your scheme you need to connect to the Call Manager, but in my situation there's none ... so, is it sensible or superfluous to set up a trunk to each client?
Secondly: I add the custom trunk and route through freePBX; is it ok? or do you directly edit the .conf files? if so, what do you add and where?
So far I could only register h323 activity on asterisk after doing 'ooh323 debug', but I never got further than
" == Starting OOH323/Anneke Praagman-b82b at default,601,1 failed so falling back to exten 's' "
this while the custom route added through freePBX was
Dial rules:601
OOH323/$OUTNUM$@129.125.71.173:1720
By this I meant to have Trixbox to connect to my h323 client at 129.125.71.173 while dialing in from a softphone with the string h323:601@ip-of-the-trixbox1.2.3 ... does this make sense? :-?
I would appreciate any hint & tips.
Sincerly,
Fabio
Ok , friend.
I will try to answer your questions in the order of pharagraphs of your questions.
1.My configuration
As you said , we have a Cisco Call Manager.(infact there are two,but second is waiting in standby )We have cisco 7960 phones (hundreds) and cisco gateways
(for 90 cisco routers many of them are 3600's series)
I have 4 hp proliant servers (4gb ram each).
3 of them are running TRIXBOX (version 1.2.3) and the other one is running SER (sip express rourter on redhat 4.0 )
I connected 3 trixbox with custom trunks to one cisco call manager.
I connected 3 trixbox with sip trunks to one SER server.
I registered user softphones to ser.
And now managing a sip project of adding 1200 remote location with Zyxel modems supporting sip registering them to SER.(Ser is scalable and high
performance).Zyxsel modems are connected to location santrals with 2 voice channels.So odd plane telephones can now be used for sip.
So at big picture sip network and h323 network is speaking over trixbox so any cisco 7960 phone connected to call manager or any remote call coming through
cisco gateways can speak to sip network at any location.
2.GNuk
I guess you can use gnuk as many many people do.in fact i tried yate and some other programs for other test purposes but not gnuk because i have CCM
already.This page may help you
((http://www.gnugk.org,and tips http://www.gnugk.org/asterisk.html).Your softphones registers to trixbox and talk to ipphones connected to gnuk thanks to
trixbox h323 trunk.this is ok.
Clients does not have to now any thing,so no more config uration is needed at client side more then registering it to trixbox.Just a little be careful about codecs.
3.Trunks
No trunks to each client,just one trunk between Gnugk and trixbox.
4.Routing
Routing is configured on both "outbound routes and trunks" on "trixbox freebbx".
(Bythis way Trixbox changes the extensions_additional.conf file.)Dont change conf files manually if you are not expert.
Just be carefull about one thing sip phones and h323 trunks are at the same "context".I mean if oh323.conf is default so sip clients must be too.
You also configure gnugk routing so that ipphones can reach to sip..just point trixbox for sip extensions.
5.your problem
You might have a routing configuration problem at gnugk side.
6.Dialing
At the end you just dial 601 .nothing more, no proxy ip ,no h323 indicator,nothing..just 601 to reach ipphone from softphone.
I hope you success what you want,i guess you just need to read a little more about gnugk sip trunking.
bys..
ogulcan
Thanks a lot, I'll try to follow your hints.
I replyed to a post of yours here but also at another point, so this could have been confusing, sorry for that.
About all those points:
1) Your configuration.
Well, this doesn't look a small-size system ... my compliments for getting such a network with three Trixboxes, a SER and two CCM's ... :-P
2) Actually I'm not yet using gnuGK, but along my quest for h323 information along the web I got the impression that this is a rather important piece of a H323 network.
But then again, I'm not yet using it; actually it is interesting for my project to have TrixBox to manage directly the h323 (soft)phones; would this be practical?
by the way, you seem to make difference among softphones and ipphones; why is that? As far as I can understand, you could see a "softphone" (a software phone, right?) as an ipphone (a standalone phone terminal, right?), but then emulated by a computer.
3)Trunks
Ok, in the case a gatekeeper is present in the network it is reasonable to make a trunk to it from the TrixBox and to have all the H323 terminals to conect to the GateKeeper.
My errors/problems take place in another situation, where two different softphones directly connect to The TrixBox; when one is calling, I'd like to have TrixBox to route the connection to the other softphone, without an additional gatekeeper (after all, it is optional, right?). That's why I st up two Trunks: to enable connections to the different softphones.
4) Routing
Ok, now it's clear, the Trunk and the Route should be set up through freePBX.
I realized that the configuration files are hard to manage; I also started a little reverse-engineering about the changes freePBX makes in those files ... I started digging into those ugly conf files because of the (incomplete) information around teh fora and the information within ooh323.conf. Of course, if it's not necessary' I'll avoid these time-consuming things.
I'll check the contexts, this seems reasonable.
5)my problem
Well, as I already said, I'm not using a software gatekeeper yet, so the problems do raise when a softphone connects directly to a trixbox by h323 and wants to connect to another h323 softphone. Does this make my problem more clear?
6)Dialing
ok, I agree in the case of a gatekeeper: a gk cam resolve "601" and set up a communication. But can Trixbox do anything similar without a GK?
Sorry for repeating parts of my questions...
I hope you will be able to help me a little bit more! :lol:
Thanks,
/Fabio
2) Gnugk seems to be a must for you.
You are right since we only use softphones in sip i pointed sip phones.In reality softphones can be both h323 or sip.
3)I guess after registering h323 phone to trixbox (say 101) and a sip phone (say 102) you can use follow me to tell the trixbox route the call to 101 if 102 does not answer.For this you dont need any more h323 trunk per telephone it sounds a little weird.
5)my problem
ok.so then its better to use a gnugk at a seperate machine or just setup in the trixbox and use gatekeeper in ooh323.conf.
6)Dialing
ok i guess we can conclude that "we must to use a gatekeeper".(there is a link here pointing that:http://sourceforge.net/project/shownotes.php?release_id=324158&group_id=123387)
2) Well, I could leave without GnuGK as well, the problem here is that I'm looking for the possibilities to implement a Hybrid SIP/H323 network based on Asterisk; it is not my purpose to "outsource" H323 networking to some hardware. Any free software solution would do.
3)hmmm ... how do you register a h323 phone, say with extension '101', to the trixbox? this is still vague to me...
Well, I'm still continuing in my trial-and-error process ...
I can have a SIP extension ring a H323 extension and vice-versa, but as soon as an incoming call is accepted, Asterisk drops the connection without any apparent reason.
I jyst described my problem here: http://www.trixbox.org/modules/newbb/viewtopic.php?viewmode=threa...
Do you have any tips? I really don't know what's the matter now ...
kind regards,
/Fabio
1.in ooh323.conf check;
h245tunneling=no
faststart=no
2.in sip.conf under the line "tos=0x68" check;
notransfer=yes
canreinvite=no
3.Be sure using asterisk-addons-1.2.3-1.219.i386.rpm
4.Be sure both your sip extension and h323 extension are in the same context.
5.Be sure they have both same codec enabled.
6.Be sure to be sure of all of those above.(joke:)
hope it helps.
Hi,
1) I had h245tunneling=yes, so I changet it; the line faststart=no was already there.
2) I addedto sip.conf both lines
notransfer=yes
canreinvite=no
3) I used the asterisk-addons-1.2.3-1.219.i386.rpm which yopu put on your website
4) I' putting the incoming call on h323 in context=ext-local in the ooh323.conf; this is because the .conf files generated by freePBX put the SIP extensions (501 and 502) within this context. See this snippet of extensions_additional.conf:
[ext-local]
include => ext-local-custom
exten => 501,1,Macro(exten-vm,novm,501)
exten => 501,hint,SIP/501
exten => 502,1,Macro(exten-vm,novm,502)
exten => 502,hint,SIP/502
exten => 601,1,Macro(exten-vm,novm,601)
exten => 601,hint,OOH323/601
exten => 602,1,Macro(exten-vm,novm,602)
exten => 602,hint,OOH323/602
here 601 and 602 are our custom extensions.
Could it be that the declaration of the 601 and 602 extensions interfere with the calls coming through the ooh323 channel? Otherwise I don't see what's wrong with this.
It could be that the ooh323 channel puts the incominc calls in another context, but this means ignoring the context=ext-local parameter, right?
5) Now I use Xlite and Ekiga; when setting up Ekiga with a SIP account it is possible to call and speak to the Xlite softphone, so there should be common codecs.
When switching Ekiga to H323, we manage to let ring a h323 softphone and to have Ekiga ring for a incoming connection from a SIP softphone; whenever somebody wants to accept the connection, the connection is dropped. I'll attach the combined debug output of ooh323c and sip.
6)I'm sure everything is unsure right now ... :-?
Thanx,
/Fabio
--- onNewCallCreated ooh323c_1
+++ onNewCallCreated ooh323c_1
--- ooh323_onReceivedSetup ooh323c_1
--- find_user
+++ find_user
Adding capabilities to call(incoming, ooh323c_1)
--- configure_local_rtp
+++ configure_local_rtp
+++ ooh323_onReceivedSetup - Determined context ext-local, extension 501
--- onAlerting ooh323c_1
--- find_call
+++ find_call
+++ onAlerting ooh323c_1
-- Executing Macro("OOH323/Fabio Bracci-582b", "exten-vm|novm|501") in new stack
-- Executing Macro("OOH323/Fabio Bracci-582b", "user-callerid") in new stack
-- Executing GotoIf("OOH323/Fabio Bracci-582b", "0?report") in new stack
-- Executing GotoIf("OOH323/Fabio Bracci-582b", "0?start") in new stack
-- Executing Set("OOH323/Fabio Bracci-582b", "REALCALLERIDNUM=602") in new stack
-- Executing NoOp("OOH323/Fabio Bracci-582b", "REALCALLERIDNUM is 602") in new stack
-- Executing Set("OOH323/Fabio Bracci-582b", "AMPUSER=602") in new stack
-- Executing Set("OOH323/Fabio Bracci-582b", "AMPUSERCIDNAME=Fabio h323 freePBX") in new stack
-- Executing GotoIf("OOH323/Fabio Bracci-582b", "0?report") in new stack
-- Executing Set("OOH323/Fabio Bracci-582b", "CALLERID(all)=Fabio h323 freePBX <602>") in new stack
-- Executing NoOp("OOH323/Fabio Bracci-582b", "Using CallerID "Fabio h323 freePBX" <602>") in new stack
-- Executing Set("OOH323/Fabio Bracci-582b", "FROMCONTEXT=exten-vm") in new stack
-- Executing Set("OOH323/Fabio Bracci-582b", "VMBOX=novm") in new stack
-- Executing Set("OOH323/Fabio Bracci-582b", "EXTTOCALL=501") in new stack
-- Executing Set("OOH323/Fabio Bracci-582b", "CFUEXT=") in new stack
-- Executing Set("OOH323/Fabio Bracci-582b", "RT=") in new stack
-- Executing Macro("OOH323/Fabio Bracci-582b", "record-enable|501|IN") in new stack
-- Executing GotoIf("OOH323/Fabio Bracci-582b", "0 > 0?2:4") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing AGI("OOH323/Fabio Bracci-582b", "recordingcheck|20070301-162645|1172762805.8") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/imap.so' - libc-client.so.0: cannot open shared object file: No such file or directory in Unknown on line 0
recordingcheck|20070301-162645|1172762805.8: Inbound recording not enabled
-- AGI Script recordingcheck completed, returning 0
-- Executing NoOp("OOH323/Fabio Bracci-582b", "No recording needed") in new stack
-- Executing GotoIf("OOH323/Fabio Bracci-582b", "0?dolocaldial|1") in new stack
-- Executing Macro("OOH323/Fabio Bracci-582b", "dial||tr|501") in new stack
-- Executing AGI("OOH323/Fabio Bracci-582b", "dialparties.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/imap.so' - libc-client.so.0: cannot open shared object file: No such file or directory in Unknown on line 0
dialparties.agi: Starting New Dialparties.agi
-- dialparties.agi: priority is 1
dialparties.agi: Caller ID name is 'Fabio h323 freePBX' number is '602'
dialparties.agi: Methodology of ring is 'none'
-- dialparties.agi: Added extension 501 to extension map
-- dialparties.agi: Extension 501 cf is disabled
-- dialparties.agi: Extension 501 do not disturb is disabled
== Parsing '/etc/asterisk/manager.conf': Found
== Parsing '/etc/asterisk/manager_custom.conf': Found
== Manager 'admin' logged on from 127.0.0.1
== Manager 'admin' logged off from 127.0.0.1
<-- SIP read from 129.125.71.172:5060:
--- (0 headers 0 lines) Nat keepalive ---
-- dialparties.agi: Checking CW and CFB status for extension 501
-- dialparties.agi: DbSet CALLTRACE/501 to 602
-- AGI Script dialparties.agi completed, returning 0
-- Executing Dial("OOH323/Fabio Bracci-582b", "SIP/501||tr") in new stack
We're at 129.125.21.241 port 17704
Adding codec 0x4 (ulaw) to SDP
Adding codec 0x8 (alaw) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
13 headers, 11 lines
Reliably Transmitting (no NAT) to 129.125.71.172:5060:
INVITE sip:501@129.125.71.172:5060 SIP/2.0
Via: SIP/2.0/UDP 129.125.21.241:5060;branch=z9hG4bK061f6d81
From: "Fabio h323 freePBX"
To:
Contact:
Call-ID: 3bb3e2b827b1134e683cf76b18789f8c@129.125.21.241
CSeq: 102 INVITE
User-Agent: Asterisk PBX
Max-Forwards: 70
Date: Thu, 01 Mar 2007 15:26:45 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Content-Type: application/sdp
Content-Length: 244
v=0
o=root 11555 11555 IN IP4 129.125.21.241
s=session
c=IN IP4 129.125.21.241
t=0 0
m=audio 17704 RTP/AVP 0 8 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
---
-- Called 501
----- ooh323_indicate 3 on call ooh323c_1
++++ ooh323_indicate 3 on ooh323c_1
<-- SIP read from 129.125.71.172:5060:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 129.125.21.241:5060;branch=z9hG4bK061f6d81
From: "Fabio h323 freePBX"
To:
Contact:
Call-ID: 3bb3e2b827b1134e683cf76b18789f8c@129.125.21.241
CSeq: 102 INVITE
Server: X-Lite release 1105d
Content-Length: 0
--- (9 headers 0 lines)---
<-- SIP read from 129.125.71.172:5060:
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 129.125.21.241:5060;branch=z9hG4bK061f6d81
From: "Fabio h323 freePBX"
To:
Contact:
Call-ID: 3bb3e2b827b1134e683cf76b18789f8c@129.125.21.241
CSeq: 102 INVITE
Server: X-Lite release 1105d
Content-Length: 0
--- (9 headers 0 lines)---
-- SIP/501-09b4a380 is ringing
<-- SIP read from 129.125.71.172:5060:
SIP/2.0 200 Ok
Via: SIP/2.0/UDP 129.125.21.241:5060;branch=z9hG4bK061f6d81
From: "Fabio h323 freePBX"
To:
Contact:
Call-ID: 3bb3e2b827b1134e683cf76b18789f8c@129.125.21.241
CSeq: 102 INVITE
Content-Type: application/sdp
Server: X-Lite release 1105d
Content-Length: 310
v=0
o=501 234564338 234567788 IN IP4 129.125.71.172
s=X-Lite
c=IN IP4 129.125.71.172
t=0 0
m=audio 8000 RTP/AVP 0 8 3 98 97 101
a=rtpmap:0 pcmu/8000
a=rtpmap:8 pcma/8000
a=rtpmap:3 gsm/8000
a=rtpmap:98 iLBC/8000
a=rtpmap:97 speex/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
--- (10 headers 14 lines)---
Found RTP audio format 0
Found RTP audio format 8
Found RTP audio format 3
Found RTP audio format 98
Found RTP audio format 97
Found RTP audio format 101
Peer audio RTP is at port 129.125.71.172:8000
Found description format pcmu
Found description format pcma
Found description format gsm
Found description format iLBC
Found description format speex
Found description format telephone-event
Capabilities: us - 0xc (ulaw|alaw), peer - audio=0x60e (gsm|ulaw|alaw|speex|ilbc)/video=0x0 (nothing), combined - 0xc (ulaw|alaw)
Non-codec capabilities: us - 0x1 (telephone-event), peer - 0x1 (telephone-event), combined - 0x1 (telephone-event)
list_route: hop:
set_destination: Parsing
set_destination: set destination to 129.125.71.172, port 5060
Transmitting (no NAT) to 129.125.71.172:5060:
ACK sip:501@129.125.71.172:5060 SIP/2.0
Via: SIP/2.0/UDP 129.125.21.241:5060;branch=z9hG4bK65a49af2
From: "Fabio h323 freePBX"
To:
Contact:
Call-ID: 3bb3e2b827b1134e683cf76b18789f8c@129.125.21.241
CSeq: 102 ACK
User-Agent: Asterisk PBX
Max-Forwards: 70
Content-Length: 0
---
-- SIP/501-09b4a380 answered OOH323/Fabio Bracci-582b
----- ooh323_indicate -1 on call ooh323c_1
++++ ooh323_indicate -1 on ooh323c_1
--- ooh323_answer
+++ ooh323_answer
--- onCallEstablished ooh323c_1
--- find_call
+++ find_call
+++ onCallEstablished ooh323c_1
--- onCallCleared ooh323c_1
--- find_call
+++ find_call
Scheduling destruction of call '3bb3e2b827b1134e683cf76b18789f8c@129.125.21.241' in 32000 ms
set_destination: Parsing
set_destination: set destination to 129.125.71.172, port 5060
Reliably Transmitting (no NAT) to 129.125.71.172:5060:
BYE sip:501@129.125.71.172:5060 SIP/2.0
Via: SIP/2.0/UDP 129.125.21.241:5060;branch=z9hG4bK6bc559da
From: "Fabio h323 freePBX"
To:
Contact:
Call-ID: 3bb3e2b827b1134e683cf76b18789f8c@129.125.21.241
CSeq: 103 BYE
User-Agent: Asterisk PBX
Max-Forwards: 70
Content-Length: 0
---
== Spawn extension (macro-dial, s, 10) exited non-zero on 'OOH323/Fabio Bracci-582b' in macro 'dial'
== Spawn extension (macro-dial, s, 10) exited non-zero on 'OOH323/Fabio Bracci-582b' in macro 'exten-vm'
== Spawn extension (macro-dial, s, 10) exited non-zero on 'OOH323/Fabio Bracci-582b'
<-- SIP read from 129.125.71.172:5060:
SIP/2.0 200 Ok
Via: SIP/2.0/UDP 129.125.21.241:5060;branch=z9hG4bK6bc559da
From: "Fabio h323 freePBX"
To:
Contact:
Call-ID: 3bb3e2b827b1134e683cf76b18789f8c@129.125.21.241
CSeq: 103 BYE
Server: X-Lite release 1105d
Content-Length: 0
--- (9 headers 0 lines)---
Destroying call '3bb3e2b827b1134e683cf76b18789f8c@129.125.21.241'
--- ooh323_hangup
hanging Fabio Bracci
+++ ooh323_hangup
--- ooh323_destroy
Destroying Fabio Bracci
+++ ooh323_destroy
"Scheduling destruction of call '3bb3e2b827b1134e683cf76b18789f8c@129.125.21.241' in 32000 ms"
line is strange...there is no reliable reason for that.
1.Could you please also copy following to extensions.conf (i now you did it on extension_addional.conf)
[ext-local]
include => ext-local-custom
exten => 501,1,Macro(exten-vm,novm,501)
exten => 501,hint,SIP/501
exten => 502,1,Macro(exten-vm,novm,502)
exten => 502,hint,SIP/502
exten => 601,1,Macro(exten-vm,novm,601)
exten => 601,hint,OOH323/601
exten => 602,1,Macro(exten-vm,novm,602)
exten => 602,hint,OOH323/602
2.Lets try enabling only one codec on the phones both side.
3.Here is my configs
60xx :h323 phones
62xx :sip phones
----extensions_additional.conf----------------------------
[outrt-001-cisco]
include => outrt-001-cisco-custom
exten => _60xx,1,Macro(dialout-trunk,2,${EXTEN},,)
exten => _60xx,n,Macro(outisbusy,)
; end of [outrt-001-cisco]
[outrt-002-ser_route]
include => outrt-002-ser_route-custom
exten => _62xx,1,Macro(dialout-trunk,1,${EXTEN},,)
exten => _62xx,n,Macro(outisbusy,)
; end of [outrt-002-ser_route]
------extensions.conf--------------------------------------
[ser]
include => outrt-001-cisco-custom
exten => _60xx,1,Macro(dialout-trunk,2,${EXTEN},,)
exten => _60xx,n,Macro(outisbusy,)
include => outrt-002-ser_route-custom
exten => _62xx,1,Macro(dialout-trunk,1,${EXTEN},,)
exten => _62xx,n,Macro(outisbusy,)
include => ext-local
exten => s,1,Playback(vm-goodbye)
exten => s,2,Macro(hangupcall)
please try for your extensions...
I don't know either why Asterisk says "Scheduling destruction of call '3bb3e2b827b1134e683cf76b18789f8c@129.125.21.241' in 32000 ms" ...
1) I did it, but it doesn't help. But why anyhow? extension_addional.conf gets included in extensions.conf, so the same definitions are fed into Asterisk twice, right?
2)I discovered that Ekiga and Xlite and Gnomemeeting have a codec in common, PCMU aka g711u, so I use everywhere only that, but it didn't help.
3)I don't get how to follow your configs ... In asterisk I have two conventional SIP extensions (501,502) generated through freePBX.
Then I made also two custom extensions (601/602) with custom dial string (OOH323/601, OOH323/602); as I mentioned before everything boils down to
[ext-local]
include => ext-local-custom
exten => 501,1,Macro(exten-vm,novm,501)
exten => 501,hint,SIP/501
exten => 502,1,Macro(exten-vm,novm,502)
exten => 502,hint,SIP/502
exten => 601,1,Macro(exten-vm,novm,601)
exten => 601,hint,OOH323/601
exten => 602,1,Macro(exten-vm,novm,602)
exten => 602,hint,OOH323/602
which gets included in extensions.conf which gets included somewhere else ...
but I notice that in extensions.conf you do something different:
exten => _60xx,1,Macro(dialout-trunk,2,${EXTEN},,)
What is this, a kind of route?
Sincerly,
/Fabio
i dont know where where you are making mistake.
EXTEN is for variable of extension,it is representing extension dialed.you see i use xx in extensions not defining apparently.
if you have time please google "Scheduling destruction of call " these days are so busy days for me.
if i remeber stg. i will inform you.but no idea at the time being.
sincerely...
ogulcan.
I already configure a trunk between an Avaya and Asterisk. Some curiosities, I can't configure a trunk via FreePBX, I had to do it manually.
Second when I make a call Avaya => Asterisk I have good audio (Both sides), but when I beggin the call from Asterisk => Avaya I have one way audio, I can here people from Avaya but they can't here me.
When I went to the h323_log y see this:
14:33:39:313 ERROR: Logical Channel 1004 not found, fast start. (outgoing, ooh323c_o_2)
14:33:43:304 H.225 Connect message received (outgoing, ooh323c_o_2)
14:33:43:304 ERROR: Logical Channel 1004 not found, fasts start answered. (outgoing, ooh323c_o_2)
Also in my ooh323.conf I put the next line
faststart=yes
But nothing yet. I keep having the one way audio.
Anyone know something THANKS
ogulcan, thanks a lot, made it work by following your guide. Although...
I can place calls between h.323 and sip extensions but when trying to dial out through a SIP trunk with H323 extension the call gets dropped (with "BYE" message).
Someone please help!
Below are the logs:
---CUT---
Dec 14 21:35:13 VERBOSE[3443] logger.c: --- (0 headers 1 lines)Dec 14 21:35:13 VERBOSE[3443] logger.c: --- (0 headers 1 lines)---
Dec 14 21:35:28 VERBOSE[3440] logger.c: --- onNewCallCreated ooh323c_5
Dec 14 21:35:28 VERBOSE[3440] logger.c: +++ onNewCallCreated ooh323c_5
Dec 14 21:35:28 VERBOSE[3440] logger.c: --- ooh323_onReceivedSetup ooh323c_5
Dec 14 21:35:28 DEBUG[3440] src/chan_h323.c: --- ooh323_alloc
Dec 14 21:35:28 DEBUG[3440] src/chan_h323.c: +++ ooh323_alloc
Dec 14 21:35:28 VERBOSE[3440] logger.c: --- find_user
Dec 14 21:35:28 VERBOSE[3440] logger.c: +++ find_user
Dec 14 21:35:28 VERBOSE[3440] logger.c: Adding capabilities to call(incoming, ooh323c_5)
Dec 14 21:35:28 VERBOSE[3440] logger.c: Adding gsm capability to call(incoming, ooh323c_5)
Dec 14 21:35:28 VERBOSE[3440] logger.c: Adding g711 ulaw capability to call(incoming, ooh323c_5)
Dec 14 21:35:28 VERBOSE[3440] logger.c: Adding g729A capability to call(incoming, ooh323c_5)
Dec 14 21:35:28 VERBOSE[3440] logger.c: Adding g729 capability to call(incoming, ooh323c_5)
Dec 14 21:35:28 VERBOSE[3440] logger.c: Adding g7231 capability to call (incoming, ooh323c_5)
Dec 14 21:35:28 VERBOSE[3440] logger.c: --- configure_local_rtp
Dec 14 21:35:28 VERBOSE[3440] logger.c: +++ configure_local_rtp
Dec 14 21:35:28 VERBOSE[3440] logger.c: +++ ooh323_onReceivedSetup - Determined context default, extension 5555555
Dec 14 21:35:28 VERBOSE[3440] logger.c: --- onAlerting ooh323c_5
Dec 14 21:35:28 VERBOSE[3440] logger.c: --- find_call
Dec 14 21:35:28 VERBOSE[3440] logger.c: +++ find_call
Dec 14 21:35:28 DEBUG[3440] src/chan_h323.c: --- ooh323_new - 192.168.1.52
Dec 14 21:35:28 DEBUG[3440] src/chan_h323.c: +++ h323_new
Dec 14 21:35:28 VERBOSE[3440] logger.c: +++ onAlerting ooh323c_5
Dec 14 21:35:28 VERBOSE[5354] logger.c: --- ooh323_answer
Dec 14 21:35:28 VERBOSE[5354] logger.c: +++ ooh323_answer
Dec 14 21:35:28 DEBUG[5354] channel.c: Scheduling timer at 160 sample intervals
Dec 14 21:35:28 VERBOSE[3440] logger.c: --- onCallEstablished ooh323c_5
Dec 14 21:35:28 VERBOSE[3440] logger.c: --- find_call
Dec 14 21:35:28 VERBOSE[3440] logger.c: +++ find_call
Dec 14 21:35:28 VERBOSE[3440] logger.c: +++ onCallEstablished ooh323c_5
Dec 14 21:35:29 VERBOSE[3440] logger.c: --- setup_rtp_connection
Dec 14 21:35:29 VERBOSE[3440] logger.c: --- find_call
Dec 14 21:35:29 VERBOSE[3440] logger.c: +++ find_call
Dec 14 21:35:29 VERBOSE[3440] logger.c: +++ setup_rtp_connection
Dec 14 21:35:29 DEBUG[5354] src/chan_h323.c: Oooh, format changed to 256
Dec 14 21:35:29 DEBUG[5354] channel.c: Scheduling timer at 154 sample intervals
Dec 14 21:35:29 DEBUG[5354] channel.c: Scheduling timer at 0 sample intervals
Dec 14 21:35:29 DEBUG[5354] channel.c: Scheduling timer at 0 sample intervals
Dec 14 21:35:29 DEBUG[5354] cdr_addon_mysql.c: cdr_mysql: inserting a CDR record.
Dec 14 21:35:29 DEBUG[5354] cdr_addon_mysql.c: cdr_mysql: SQL command as follows: INSERT INTO cdr (calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode,uniqueid) VALUES ('2007-12-14 21:35:28','\"192.168.1.52\" <3200202>','3200202','5555555','default', 'OOH323/192.168.1.52-8509','','ResetCDR','w',1,1,'ANSWERED',3,'ast_h323','1197657328.9')
Dec 14 21:35:29 WARNING[5354] cdr.c: CDR on channel 'OOH323/192.168.1.52-8509' not posted
Dec 14 21:35:29 WARNING[5354] cdr.c: CDR on channel 'OOH323/192.168.1.52-8509' lacks end
Dec 14 21:35:29 DEBUG[5354] pbx.c: Expression result is '1'
Dec 14 21:35:29 DEBUG[5354] pbx.c: Expression result is '1'
Dec 14 21:35:29 DEBUG[5354] pbx.c: Expression result is '1'
Dec 14 21:35:29 VERBOSE[5354] logger.c: --- ooh323_hangup
Dec 14 21:35:29 VERBOSE[5354] logger.c: hanging 192.168.1.52
Dec 14 21:35:29 VERBOSE[5354] logger.c: +++ ooh323_hangup
Dec 14 21:35:29 VERBOSE[3440] logger.c: --- close_rtp_connection
Dec 14 21:35:29 VERBOSE[3440] logger.c: --- find_call
Dec 14 21:35:29 VERBOSE[3440] logger.c: +++ find_call
Dec 14 21:35:29 VERBOSE[3440] logger.c: +++ close_rtp_connection
Dec 14 21:35:29 VERBOSE[3440] logger.c: --- onCallCleared ooh323c_5
Dec 14 21:35:29 VERBOSE[3440] logger.c: --- find_call
Dec 14 21:35:29 VERBOSE[3440] logger.c: +++ find_call
Dec 14 21:35:29 VERBOSE[3440] logger.c: +++ onCallCleared
Dec 14 21:35:30 VERBOSE[3441] logger.c: --- ooh323_destroy
Dec 14 21:35:30 VERBOSE[3441] logger.c: Destroying 192.168.1.52
Dec 14 21:35:30 VERBOSE[3441] logger.c: +++ ooh323_destroy
--CUT--
I had to change
mediawaitforconnect=no to yes because when calling from trixbox to CCM calls would drop after three or four rings, the other way around worked ok without it.
If calls connect but disconnect immediatelly check your codecs as cisco can and will use g729 and others if configured to do so.
I put
disallow=all
allow=g729 ;**of course you have to install it first
allow=ulaw
allow=alaw
allow=gsm
in ooh323.conf so all codecs cisco might use are covered and everything works fine.
Igor

Member Since:
2006-06-07