<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi, I’m having problems establishing
an h324m call. We don't have access yet to an external PRI connection so we
bought a Digium TE205P with 2 PRI and connected them with a crossed
cable to make a loopback (one acts like a net and the other as a cpe).
</SPAN><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office"
/><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">My idea is to make a SIP call to
asterisk, forward it with h324m_call through the span 1, receive it with
h324m_gw from the span 2 and then make a new SIP call to another phone (or use
the h324m_loopback). The problem is that the negotiation stays in the state
SETUP and thus the initial SIP phone stays in "calling". I’ve think the problem
might be either in the configuration of the PRI loopback, in my selection of
install steps or in the weird dialplan, so i include some of the things I’ve
tried to see if I’m missing something.</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Selection of install
steps:</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">*I’ve decided to use Dahdi instead
of Zap (haven't seen any post on this but I don't think it should be a problem).
I use the version 2.1.0.3</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">*At first I’ve tried with Asterisk
1.6.0.1, but there were 3 problems:</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> 1. I had to
manually relink app_h324m.so because of Makefile differences with version
1.4.X</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> 2. Had to comment
line 1560 of app_h324m.c "ast_cli_register(&cli_debug);" because it
causes a segfault at loading.</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> 3. Had to modify
AMR code in several places to compile.</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">* Then I’ve changed to Asterisk
1.4.22 and those problems went away.</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">* I’m using latest version from svn,
revision 241. Don't know how stable this is.</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">* I’m using libpri-1.4.8 without
patching with <A
href="http://bugs.digium.com/view.php?id=10217">http://bugs.digium.com/view.php?id=10217</A> (I
think this could be a problem, but I haven’t seen a tutorial that says the patch
its required)</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Configuration of the PRI
loopback.</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I include at the bottom of the
mail the configuration im currently using. In general all examples
follow the same logic. With the prefix 201 i can make a
voice call through the span 1, with the prefix 301 I create an h324
pseudo channel and then go through the span 1. All incoming calls
from the span 2 are answered with different dialplans in the context
[from-pstn-cpe], some of them expect normal voice, and other expects h324m. I
have two SIP phones connected to asterisk, 402 is a physical and 403 is a
soft phone.</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">* If from 402 I call 2011234, the
loopback works and I can hear 1, 2, 3, 4.</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">* If from 403 I call 201402 or if
from 402 I call 201403 it works two, but at some point I had audio problems
between in the first scenario because of alaw and ulaw. </SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">* From any SIP phone I call 3016XX
it does not work, the SIP phone stays on the state "calling" and from what I’ve
seen debugging the app, both h324m_call and h324m_gw stays in state 1
(SETUP).</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">* Strange things I’ve noticed in the
loopback looking at core show channel/s are:</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> * Different law
handling, I couldn’t hardcore chan_dahdi.c to make it always
ulaw.</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> *
TRANSFERCAPABILITY=SPEECH, I don’t know exactly what this is, but couldn’t make
both DIGITAL, just the receiving end.</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> * Using
dahdi_monitor I could dump the pri channel, but couldn’t find any sequence i
would recognize from the mailing list.</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">---------------------- Configuration
files---------------------</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">/etc/asterisk/extensions.conf</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">[from-sip]<BR>exten =>
402,1,Dial(SIP/402)<BR>exten => 403,1,Dial(SIP/403)</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">;;;;exten =>
_201.,1,Set(CHANNEL(transfercapability)=DIGITAL)<BR>;;;;exten =>
_201.,n,Dial(DAHDI/1/${EXTEN:3})</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=ES-AR
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: ES-AR">exten
=> _201.,1,Dial(DAHDI/1/${EXTEN:3})</SPAN><SPAN lang=ES-AR
style="mso-ansi-language: ES-AR"><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=ES-AR
style="mso-ansi-language: ES-AR"> <o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=ES-AR
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: ES-AR">exten
=> _301.,1,h324m_call(201${EXTEN:3}@from-internal-custom)</SPAN><SPAN
lang=ES-AR style="mso-ansi-language: ES-AR"><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=ES-AR
style="mso-ansi-language: ES-AR"> <o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">[from-pstn-cpe]<BR>exten =>
1234,1,Answer()<BR>exten => 1234,n,SayDigits(${EXTEN})<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> <o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=ES-AR
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: ES-AR">exten
=> 402,1,Dial(SIP/402)<BR>exten => 403,1,Dial(SIP/403)</SPAN><SPAN
lang=ES-AR style="mso-ansi-language: ES-AR"><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">exten => 666,1,Answer()<BR>exten
=> 666,n,h324m_loopback(v)</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">exten =>
667,1,h324m_gw_answer()<BR>exten =>
667,n,h324m_loopback()</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">exten =>
668,1,h324m_gw_answer()<BR>exten =>
668,n,Playback(tt-monkeys)</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">exten =>
669,1,Set(CHANNEL(transfercapability)=DIGITAL)<BR>exten => 669,n,h324m_gw(<A
href="mailto:migw@from-pstn-cpe">migw@from-pstn-cpe</A>)</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">exten => 670,1,Answer()<BR>exten
=> 670,n,h324m_gw(<A
href="mailto:migw@from-pstn-cpe">migw@from-pstn-cpe</A>)</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><BR><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">exten => 671,1,Answer()<BR>exten
=> 671,n,h324m_gw(</SPAN><A href="mailto:migw2@from-pstn-cpe"><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial">migw2@from-pstn-cpe</SPAN></A><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">)</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">exten =>
migw,1,h324m_gw_answer()<BR>exten => migw,2,Echo()</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">exten =>
migw2,1,h324m_gw_answer()<BR>exten =>
migw2,2,Dial(SIP/402)</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">----------------------------------------------------------</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">/etc/dahdi/system.conf</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">span=1,0,0,ccs,hdb3,crc4<BR>#
termtype:
te<BR>bchan=1-15,17-31<BR>dchan=16<BR>mulaw=1-15<BR>mulaw=17-31<BR>echocanceller=mg2,1-15,17-31</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"># Span 2: TE2/0/2 "T2XXP (PCI) Card
0 Span 2"<BR>span=2,1,0,ccs,hdb3,crc4<BR># termtype:
te<BR>bchan=32-46,48-62<BR>dchan=47<BR>mulaw=32-46<BR>mulaw=48-62<BR>echocanceller=mg2,32-46,48-62</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"># Global data</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">loadzone
= us<BR>defaultzone = us</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">----------------------------------------------------------------</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">/etc/asterisk/chan_dahdi.conf</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">[channels]</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">; Span 1: TE2/0/1 "T2XXP (PCI) Card
0 Span 1" (MASTER)<BR>group=11<BR>context=from-pstn-net<BR>switchtype =
euroisdn<BR>signalling =
pri_net<BR>transfer=yes<BR>;threewaycalling=yes<BR>;cancallforward=yes<BR>facilityenable
= yes<BR>channel => 1-15,17-31</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 12pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">; Span 2: TE2/0/2 "T2XXP (PCI) Card
0 Span 2"<BR>group=12<BR>context=from-pstn-cpe<BR>switchtype =
euroisdn<BR>signalling =
pri_cpe<BR>transfer=yes<BR>;threewaycalling=yes<BR>;cancallforward=yes<BR>facilityenable
= yes<BR>channel => 32-46,48-62<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">----------------------------------------------------------------<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">/etc/asterisk/sip.conf<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> <o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">[general]<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">context=default<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">allowoverlap=no<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">bindport=5060 <o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">bindaddr=0.0.0.0 <o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">srvlookup=yes
<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> <o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">videosupport=yes<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> <o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">disable=all<BR>allow=ulaw<BR>allow=h263<BR>allow=h263p<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">[402]<BR>type=friend<BR>qualify=no<BR>port=5060<BR>nat=never<BR>host=dynamic<BR>dtmfmode=rfc2833<BR>context=from-internal-custom<BR>canreinvite=yes<BR>callerid="zultys
402" <402><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> <o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">[403]<BR>type=friend<BR>secret=403<BR>qualify=no<BR>port=5060<BR>nat=never<BR>host=dynamic<BR>dtmfmode=rfc2833<BR>context=from-internal-custom<BR>canreinvite=yes<BR>callerid="SOFT
PHONE 403" <403><o:p></o:p></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt"><o:p> </o:p></P></BODY></HTML>