[Freeswitch-users] Fwd: mod_opal - call charged before H.225 connect

Tihomir Culjaga tculjaga at gmail.com
Tue Oct 13 23:59:00 PDT 2009


the e-mail bounced back .. don't know whether you received this...






here are the results!


Outbound calls:

SIP_user(1001) => FS => H323_SoftSwitch:
http://pastebin.freeswitch.org/10672

i get coredumps but this might be because i'm missing the bridge format....
what i'm using is: <action application="bridge" data="h323/0$1@${NCX_IP}"/>
that can be wrong :) Please advice here.




Inbound Calls:

openPhone => FS => SIP_user(1001): http://pastebin.freeswitch.org/10671


the call went in, hit a registered sip user (1001) and the phone started
ringing. The phone answered the call but no audio can be heared (i see RTP
from the SIP uset towards FS). Also, the openPhone never receives H.225
connect nor any OLC before connect. After some time, the H323 leg constates
the user never answered and releases the call with cause 19.




this is the h323.config.xml

tculjaga at subZero:~$ cat
/usr/local/freeswitch/conf/autoload_configs/h323.conf.xml
<configuration name="h323.conf" description="H323 Endpoints">
  <settings>
    <param name="trace-level" value="10"/>
    <param name="context" value="default"/>
    <param name="dialplan" value="XML"/>
    <param name="codec-prefs" value="PCMA,GSM,G729,G726"/>
    <param name="gk-address" value=""/>    <!-- empty to disable, "*" to
search LAN -->
    <param name="gk-identifer" value=""/>  <!-- optional name of gk -->
    <param name="gk-interface" value=""/>  <!-- optional listener interface
name -->
  </settings>
  <listeners>
    <listener name="default">
      <param name="h323-ip" value="10.4.62.7"/>
      <param name="h323-port" value="1720"/>
    </listener>
  </listeners>
</configuration>



and this is a dialplan for outgoing that i'm using


<include>

  <extension name="EMERGENCY">
    <condition field="destination_number" expression="^0(112|9[23456])$">
      <action application="set"
data="effective_caller_id_number=1001282122"/>
      <action application="set" data="NCX_IP=10.4.4.254"/>
      <action application="set" data="call_timeout=30"/>
      <action application="set" data="hangup_after_bridge=true"/>

      <!--action application="bridge" data="opal/h323:0$1@${NCX_IP}"/-->
      <action application="bridge" data="h323/0$1@${NCX_IP}"/>
    </condition>
  </extension>

  <extension name="SPECIAL_SERVICES">
    <condition field="destination_number" expression="^0(9[01789]\d{3,4})$">
      <action application="set"
data="effective_caller_id_number=1001282122"/>
      <action application="set" data="NCX_IP=10.4.4.254"/>
      <action application="set" data="call_timeout=30"/>
      <action application="set" data="hangup_after_bridge=true"/>

      <!--action application="bridge" data="opal/h323:0$1@${NCX_IP}"/-->
      <action application="bridge" data="h323/0$1@${NCX_IP}"/>
    </condition>
  </extension>

  <extension name="ENYTHING_ELSE">
    <condition field="destination_number"
expression="^0([2-8]\d{6,7}|0[1-9]\d{7,8}|00[1-9]\d{8,16})$">
      <action application="set"
data="effective_caller_id_number=1001282122"/>
      <action application="set" data="NCX_IP=10.4.4.254"/>
      <action application="set" data="call_timeout=30"/>
      <action application="set" data="hangup_after_bridge=true"/>

      <!--action application="bridge" data="opal/h323:0$1@${NCX_IP}"/-->
      <action application="bridge" data="h323/0$1@${NCX_IP}"/>
    </condition>
  </extension>

</include>



P.S.: sorry for the attached rar, but don't know how to upload it to
pastebin :P


T.




2009/10/12 Tihomir Culjaga <tculjaga at gmail.com>

hi,
>
> finally i compiled it right ... had a stupid issue with ekiga and wrong
> ptlib in place...
>
> anyhow, i loaded the module and will continue the tests tomorrow ...first
> thing i arrive in my office :P
>
>
>
> freeswitch at subZero>
> freeswitch at subZero>
> API CALL [console(loglevel 7)] output:
> +OK console log level set to DEBUG
>
> freeswitch at subZero> load mod_h323
> 2009-10-12 23:38:09.509279 [CONSOLE] mod_h323.cpp:93 Starting loading
> mod_h323
> 2009-10-12 23:38:09.511413 [DEBUG] mod_h323.cpp:461 Created Listener
> 'default'
> 2009-10-12 23:38:09.511413 [DEBUG] mod_h323.cpp:305 Config capabilliti
> PCMA,GSM,G729,G726
> 2009-10-12 23:38:09.511413 [DEBUG] mod_h323.cpp:309 Find capabilliti PCMU
> to PCMA,GSM,G729,G726
> 2009-10-12 23:38:09.511413 [DEBUG] mod_h323.cpp:309 Find capabilliti PCMA
> to PCMA,GSM,G729,G726
> 2009-10-12 23:38:09.511413 [DEBUG] h323caps.cxx:3264 FindCapability:
> "G.711-uLaw-64k{sw}"
> 2009-10-12 23:38:09.512480 [DEBUG] h323caps.cxx:3176 Added capability:
> G.711-uLaw-64k <1>
> 2009-10-12 23:38:09.512480 [DEBUG] h323caps.cxx:3264 FindCapability:
> "G.711-uLaw-64k{sw}"
> 2009-10-12 23:38:09.512480 [DEBUG] h323caps.cxx:3264 FindCapability:
> "G.711-uLaw-64k{sw}"
> 2009-10-12 23:38:09.512480 [DEBUG] h323caps.cxx:3264 FindCapability:
> "G.711-uLaw-64k{sw}"
> 2009-10-12 23:38:09.512480 [DEBUG] h323caps.cxx:3264 FindCapability:
> "G.711-uLaw-64k{sw}"
> 2009-10-12 23:38:09.512480 [DEBUG] h323caps.cxx:1989 No Extended
> Capabilities found to load
> 2009-10-12 23:38:09.512480 [DEBUG] mod_h323.cpp:325 H.323 added 1
> capabilities 'G.711-uLaw-64k*{sw}'
> 2009-10-12 23:38:09.512480 [DEBUG] mod_h323.cpp:309 Find capabilliti gsm to
> PCMA,GSM,G729,G726
> 2009-10-12 23:38:09.513529 [DEBUG] mod_h323.cpp:309 Find capabilliti msgsm
> to PCMA,GSM,G729,G726
> 2009-10-12 23:38:09.513529 [DEBUG] mod_h323.cpp:309 Find capabilliti speex
> to PCMA,GSM,G729,G726
> 2009-10-12 23:38:09.513529 [DEBUG] mod_h323.cpp:309 Find capabilliti lpc10
> to PCMA,GSM,G729,G726
> 2009-10-12 23:38:09.513529 [DEBUG] mod_h323.cpp:309 Find capabilliti ilbc20
> to PCMA,GSM,G729,G726
> 2009-10-12 23:38:09.513529 [DEBUG] mod_h323.cpp:309 Find capabilliti ilbc30
> to PCMA,GSM,G729,G726
> 2009-10-12 23:38:09.513529 [DEBUG] mod_h323.cpp:309 Find capabilliti g723
> to PCMA,GSM,G729,G726
> 2009-10-12 23:38:09.513529 [DEBUG] mod_h323.cpp:309 Find capabilliti g726
> to PCMA,GSM,G729,G726
> 2009-10-12 23:38:09.513529 [DEBUG] mod_h323.cpp:309 Find capabilliti g728
> to PCMA,GSM,G729,G726
> 2009-10-12 23:38:09.513529 [DEBUG] mod_h323.cpp:309 Find capabilliti g729b
> to PCMA,GSM,G729,G726
> 2009-10-12 23:38:09.513529 [DEBUG] mod_h323.cpp:309 Find capabilliti g729
> to PCMA,GSM,G729,G726
> 2009-10-12 23:38:09.513529 [DEBUG] mod_h323.cpp:309 Find capabilliti slin
> to PCMA,GSM,G729,G726
> 2009-10-12 23:38:09.513529 [DEBUG] mod_h323.cpp:309 Find capabilliti g729a
> to PCMA,GSM,G729,G726
> 2009-10-12 23:38:09.513529 [DEBUG] mod_h323.cpp:309 Find capabilliti g729ab
> to PCMA,GSM,G729,G726
> 2009-10-12 23:38:09.514615 [DEBUG] mod_h323.cpp:309 Find capabilliti g723.1
> to PCMA,GSM,G729,G726
> 2009-10-12 23:38:09.514615 [DEBUG] mod_h323.cpp:309 Find capabilliti
> g723.1-5k3 to PCMA,GSM,G729,G726
> 2009-10-12 23:38:09.514615 [DEBUG] mod_h323.cpp:309 Find capabilliti
> g723.1a-5k3 to PCMA,GSM,G729,G726
> 2009-10-12 23:38:09.514615 [DEBUG] mod_h323.cpp:309 Find capabilliti
> g723.1a-6k3 to PCMA,GSM,G729,G726
> 2009-10-12 23:38:09.514615 [DEBUG] mod_h323.cpp:309 Find capabilliti
> g723.1a-6k3-cisco to PCMA,GSM,G729,G726
> 2009-10-12 23:38:09.514615 [DEBUG] mod_h323.cpp:309 Find capabilliti
> g726-16 to PCMA,GSM,G729,G726
> 2009-10-12 23:38:09.514615 [DEBUG] mod_h323.cpp:309 Find capabilliti
> g726-24 to PCMA,GSM,G729,G726
> 2009-10-12 23:38:09.514615 [DEBUG] mod_h323.cpp:309 Find capabilliti
> g726-32 to PCMA,GSM,G729,G726
> 2009-10-12 23:38:09.514615 [DEBUG] mod_h323.cpp:309 Find capabilliti
> g726-40 to PCMA,GSM,G729,G726
> 2009-10-12 23:38:09.514615 [DEBUG] mod_h323.cpp:309 Find capabilliti ilbc
> to PCMA,GSM,G729,G726
> 2009-10-12 23:38:09.514615 [DEBUG] mod_h323.cpp:309 Find capabilliti
> speex-18k2 to PCMA,GSM,G729,G726
> 2009-10-12 23:38:09.514615 [DEBUG] mod_h323.cpp:309 Find capabilliti
> speex-15k to PCMA,GSM,G729,G726
> 2009-10-12 23:38:09.514615 [DEBUG] mod_h323.cpp:309 Find capabilliti
> speex-11k to PCMA,GSM,G729,G726
> 2009-10-12 23:38:09.515708 [DEBUG] mod_h323.cpp:309 Find capabilliti
> speex-8k to PCMA,GSM,G729,G726
> 2009-10-12 23:38:09.515708 [DEBUG] mod_h323.cpp:309 Find capabilliti
> speex-5k95 to PCMA,GSM,G729,G726
> 2009-10-12 23:38:09.515708 [DEBUG] h323caps.cxx:3176 Added capability:
> UserInput/hookflash <2>
> 2009-10-12 23:38:09.515708 [DEBUG] h323caps.cxx:3176 Added capability:
> UserInput/basicString <3>
> 2009-10-12 23:38:09.515708 [DEBUG] h323caps.cxx:3176 Added capability:
> UserInput/dtmf <4>
> 2009-10-12 23:38:09.515708 [DEBUG] h323caps.cxx:3176 Added capability:
> UserInput/RFC2833 <5>
> 2009-10-12 23:38:09.515708 [DEBUG] h323caps.cxx:3176 Added capability:
> UserInput/Navigation <6>
> 2009-10-12 23:38:09.515708 [DEBUG] h323caps.cxx:3176 Added capability:
> UserInput/Softkey <7>
> 2009-10-12 23:38:09.515708 [DEBUG] h323caps.cxx:3176 Added capability:
> UserInput/PointDevice <8>
> 2009-10-12 23:38:09.515708 [DEBUG] h323caps.cxx:3176 Added capability:
> UserInput/Modal <9>
> 2009-10-12 23:38:09.516760 [DEBUG] osutil.cxx:188 File handle high water
> mark set: 44 PTCPSocket
> 2009-10-12 23:38:09.516760 [DEBUG] h323ep.cxx:1995 Started listener
> Listener[ip$10.4.62.7:1720]
> 2009-10-12 23:38:09.516760 [DEBUG] tlibthrd.cxx:547 Thread high water mark
> set: 3
> 2009-10-12 23:38:09.516760 [CONSOLE] mod_h323.cpp:108 Opal manager
> initialized and running
> 2009-10-12 23:38:09.516760 [DEBUG] tlibthrd.cxx:454 Started thread
> 0xb75e0f18 H323 Listener:b5c98b90
> 2009-10-12 23:38:09.516760 [CONSOLE] switch_loadable_module.c:889
> Successfully Loaded [mod_h323]
> 2009-10-12 23:38:09.516760 [NOTICE] switch_loadable_module.c:142 Adding
> Endpoint 'h323'
> API CALL [load(mod_h323)] output:
> +OK
>
> 2009-10-12 23:38:09.516760 [DEBUG] transports.cxx:1521 Awaiting TCP
> connections on port 1720
> 2009-10-12 23:38:09.517832 [DEBUG] transports.cxx:1475 Waiting on socket
> accept on ip$10.4.62.7:1720
> 2009-10-12 23:38:09.517832 [DEBUG] tlibthrd.cxx:1023
> PThread::PXBlockOnIO(44,2)
> freeswitch at subZero>
>
>
> BTW: to compile everytihng,  I used FS trunk, ptlib 2.7.1 and h323plus
> 1.22.0
>
> Will let you know the results asap.
>
>
> T.
>
>
>
> 2009/10/12 Georgiewskiy Yuriy <bottleman at icf.org.ru>
>
>> On 2009-10-12 18:03 +0200, Tihomir Culjaga wrote
>> freeswitch-users at lists.fre...:
>>
>> i already write this, ptlib 2.6.5, tou can find link to it on
>> oplalvoip.org, h32plus latest CVS version,
>> you can find it on www.h323plus.org.
>>
>> TC>hi,
>> TC>
>> TC>can't make it...
>> TC>
>> TC>subZero:~/freeswitch-trunk$ make mod_h323
>> TC>
>> TC>making all mod_h323
>> TC>Compiling mod_h323.cpp...
>> TC>quiet_libtool: compile:  g++ -g -ggdb -I/usr/local/include/ptlib
>> TC>-I/usr/local/include/openh323 -I. -DPTRACING=1 -D_REENTRANT
>> -fno-exceptions
>> TC>-I/home/tculjaga/freeswitch-trunk/src/include
>> TC>-I/home/tculjaga/freeswitch-trunk/libs/libteletone/src -fPIC
>> TC>-fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g
>> -O2
>> TC>-D_GNU_SOURCE -DHAVE_CONFIG_H -c mod_h323.cpp  -fPIC -DPIC -o
>> TC>.libs/mod_h323.o
>> TC>In file included from /usr/local/include/openh323/h323.h:493,
>> TC>                 from mod_h323.h:8,
>> TC>                 from mod_h323.cpp:3:
>> TC>/usr/local/include/openh323/h323ep.h: In member function ЪЪЪЪЪЪvirtual
>> void
>> TC>NATFactoryStartup::OnShutdown()ЪЪЪЪЪЪ:
>> TC>/usr/local/include/openh323/h323ep.h:2731: error:
>> ЪЪЪЪЪЪNatFactoryЪЪЪЪЪЪ has not
>> TC>been declared
>> TC>make[4]: *** [mod_h323.lo] Error 1
>> TC>make[3]: *** [all] Error 1
>> TC>make[2]: *** [mod_h323-all] Error 1
>> TC>make[1]: *** [mod_h323] Error 2
>> TC>make: *** [mod_h323] Error 2
>> TC>
>> TC>
>> TC>
>> TC>what exact ptlib and h323plus versions did you use? .. can you send us
>> a
>> TC>link so we can use the exact ones.
>> TC>
>> TC>
>> TC>T.
>> TC>
>> TC>2009/10/12 Georgiewskiy Yuriy <bottleman at icf.org.ru>
>> TC>
>> TC>> On 2009-10-12 09:43 -0500, Brian West wrote
>> TC>> freeswitch-users at lists.freeswit...:
>> TC>>
>> TC>> BW>We can host this in our SVN if you wish?
>> TC>>
>> TC>> If in fs svn i think yes. But i think may be little time later?
>> TC>> i don't known is it builds on trunk because i develop it on 1.0.4.
>> TC>>
>> TC>> BW>/b
>> TC>> BW>
>> TC>> BW>On Oct 12, 2009, at 8:31 AM, Georgiewskiy Yuriy wrote:
>> TC>> BW>
>> TC>> BW>> ftp://srv.icf.org.ru/pub/soft/f/freeswitch/mod_h323/ alfa code,
>> but
>> TC>> seems
>> TC>> BW>> it work, but should be buggy,
>> TC>> BW>> to build need libpt 2.6.5 and h323plus cvs version, i test it
>> now on
>> TC>> fs
>> TC>> BW>> 1.0.4.
>> TC>> BW>
>> TC>>
>> TC>> C уважением                       With Best Regards
>> TC>> Георгиевский Юрий.                Georgiewskiy Yuriy
>> TC>> +7 4872 711666                    +7 4872 711666
>> TC>> факс +7 4872 711143               fax +7 4872 711143
>> TC>> Компания ООО "Ай Ти Сервис"       IT Service Ltd
>> TC>> http://nkoort.ru                  http://nkoort.ru
>> TC>> JID: GHhost at jabber.tula-ix.net.ru JID: GHhost at jabber.tula-ix.net.ru
>> TC>> YG129-RIPE                        YG129-RIPE
>> TC>>
>> TC>> _______________________________________________
>> TC>> FreeSWITCH-users mailing list
>> TC>> FreeSWITCH-users at lists.freeswitch.org
>> TC>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> TC>> UNSUBSCRIBE:
>> http://lists.freeswitch.org/mailman/options/freeswitch-users
>> TC>> http://www.freeswitch.org
>> TC>>
>> TC>>
>> TC>
>>
>> C уважением                       With Best Regards
>> Георгиевский Юрий.                Georgiewskiy Yuriy
>> +7 4872 711666                    +7 4872 711666
>> факс +7 4872 711143               fax +7 4872 711143
>> Компания ООО "Ай Ти Сервис"       IT Service Ltd
>> http://nkoort.ru                  http://nkoort.ru
>> JID: GHhost at jabber.tula-ix.net.ru JID: GHhost at jabber.tula-ix.net.ru
>> YG129-RIPE                        YG129-RIPE
>>
>> _______________________________________________
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091014/3c257ea6/attachment-0002.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: inbound_calls.rar
Type: application/rar
Size: 191569 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091014/3c257ea6/attachment-0002.bin 


More information about the FreeSWITCH-users mailing list