Re: [asterisk-users] Asterisk T.38 Pass-Through doesn't work

2013-06-04 Thread Larry Moore

On 4/06/2013 4:53 AM, Andrey Polovov wrote:

On 06/03/2013 05:03 PM, Larry Moore wrote:

Have you checked the installed version of firmware against the latest
available from Cisco?

Oh! I didn't guess to check. The firmware was not fresh, but upgrading
doesn't help.

Looking at your SIP information when your ITSP initiated a T.38
session it did not indicate a maxmimum bitrate, it would appear your
spa112 attempted to negotiate a connection at 2400bps.

Whether there is a way to force my provider to indicate maximum bitrate?

Do you have a sip debug session when you sent a fax from your Asterisk
box to the PSTN, it would be interesting to see if it sends it as a
t.38 or reverts to G711 audio.

I have collect a set of debugs (with fresh SPA112 firmware) and actual
config files:



I would suggest you test the SPA112 directly against your SIP provider 
however ensure you have the latest firmware, there appear to have been 
some FAX related fixes in recent versions.


To do this change the following (based upon the screen shot you made 
available);


Nat Mapping Enable: yes

Call Waiting Serv: no
MWI Serv: no

Proxy: 80.75.130.136

Register: no
Make Call Without Reg: yes
Ans Call Without Reg: yes

User ID: 7495777
Password: remotesecret

FAX T38 Redundancy: 3
FAX Tone Detect Mode: callee
FAX T38 Return to Voice: no

When you get this working you can then look at making it work through 
Asterisk - this is how I got my SPA8800 working.


I am assuming your network configuration is set up correctly on the spa112.

You may want to look at enabling the following options, on my SPA8800 
they are located under the SIP tab in the section headed NAT Parameters:


Handle via rport: yes
Insert via rport: yes
Send Resp to Src Port: yes

In addition, once it is working and providing your SIP provider permits 
ECM through a T.38 service I would encourage one to enable options such 
as FAX T38 ECM Enable.



If you are still experiencing problems you may want to perform a packet 
capture (set the snap size to 1500) of the communications between the 
spa112 and the other end point and run it through Wireshark and examine 
the VoIP calls in the captured packets.


Good luck.

Larry.

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Asterisk T.38 Pass-Through doesn't work

2013-06-03 Thread Andrey Polovov

Thank you for reply, Larry!

On 06/03/2013 05:14 AM, Larry Moore wrote:

1) On SPA112 set FAX T38 Redundancy = 3

I have tried to change this value with no effect.

2) Add t38pt_usertpsource=yes in [mtt] section
This option take no positive effect for me, asterisk continues to use 
ports from udptl.conf range. But in the oser side, I think, that there 
are no problems with network, because:
* on router, that provide internet for asterisk configured full DNAT 
from white IP to asterisk server,

* fax between asterisk cmd SendFax and PSTN fax works great.

3) Change maxdatagram=200 to maxdatagram=1400
4) In udptl.conf change T38FaxMaxDatagram to a value of 1400
5) In udptl.conf change use_even_ports to yes

This settings doesnt help me.

You don't appear to list the sip.conf entry for the SPA112.
I`m sorry, spa112 peer settings are in mysql extconfig, config file 
analogue:

[297]
context=office
secret=xxx
host-dynamic
nat=yes
type=friend
callerid=297
disallow=all
allow=alaw

Where did t38pt_rtp  t38_tcp come from?
This settings I have googled on some forum and then add to my config 
with despair.
You may also want to experiment with the SPA112 setting FAX T38 ECM 
Enable

This option doesnt help me too :(.

Additional info: fax between two SPA112 works perfect! Now I returned 
settings to original state as described in first letter.


--
Андрей Половов, ведущий инженер ЗАО «Флант».
http://www.flant.ru/
+7 (495) 721-10-27, доб. 412
+7 (925) 816-66-83


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Asterisk T.38 Pass-Through doesn't work

2013-06-03 Thread Larry Moore

On 3/06/2013 8:04 PM, Andrey Polovov wrote:

Thank you for reply, Larry!

On 06/03/2013 05:14 AM, Larry Moore wrote:

1) On SPA112 set FAX T38 Redundancy = 3

I have tried to change this value with no effect.

2) Add t38pt_usertpsource=yes in [mtt] section

This option take no positive effect for me, asterisk continues to use
ports from udptl.conf range. But in the oser side, I think, that there
are no problems with network, because:
* on router, that provide internet for asterisk configured full DNAT
from white IP to asterisk server,
* fax between asterisk cmd SendFax and PSTN fax works great.

3) Change maxdatagram=200 to maxdatagram=1400
4) In udptl.conf change T38FaxMaxDatagram to a value of 1400
5) In udptl.conf change use_even_ports to yes

This settings doesnt help me.

You don't appear to list the sip.conf entry for the SPA112.

I`m sorry, spa112 peer settings are in mysql extconfig, config file
analogue:
[297]
context=office
secret=xxx
host-dynamic
nat=yes
type=friend
callerid=297
disallow=all
allow=alaw

Where did t38pt_rtp  t38_tcp come from?

This settings I have googled on some forum and then add to my config
with despair.

You may also want to experiment with the SPA112 setting FAX T38 ECM
Enable

This option doesnt help me too :(.

Additional info: fax between two SPA112 works perfect! Now I returned
settings to original state as described in first letter.




Have you checked the installed version of firmware against the latest 
available from Cisco?


Looking at your SIP information when your ITSP initiated a T.38 session 
it did not indicate a maxmimum bitrate, it would appear your spa112 
attempted to negotiate a connection at 2400bps.


Do you have a sip debug session when you sent a fax from your Asterisk 
box to the PSTN, it would be interesting to see if it sends it as a t.38 
or reverts to G711 audio.


You will only want to experiment with the ECM option once you have t.38 
working.


Larry.

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Asterisk T.38 Pass-Through doesn't work

2013-06-03 Thread Andrey Polovov

On 06/03/2013 05:03 PM, Larry Moore wrote:
Have you checked the installed version of firmware against the latest 
available from Cisco?
Oh! I didn't guess to check. The firmware was not fresh, but upgrading 
doesn't help.
Looking at your SIP information when your ITSP initiated a T.38 
session it did not indicate a maxmimum bitrate, it would appear your 
spa112 attempted to negotiate a connection at 2400bps.

Whether there is a way to force my provider to indicate maximum bitrate?
Do you have a sip debug session when you sent a fax from your Asterisk 
box to the PSTN, it would be interesting to see if it sends it as a 
t.38 or reverts to G711 audio.
I have collect a set of debugs (with fresh SPA112 firmware) and actual 
config files:


== spa112 — cmd ReceiveFax
https://gist.github.com/anonymous/5701032

== cmd SendFax — PSTN
https://gist.github.com/anonymous/5701150

== spa112 — PSTN
https://gist.github.com/anonymous/5701207

== sip.conf
https://gist.github.com/anonymous/5701231

== udptl.conf
https://gist.github.com/anonymous/5701247

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] Asterisk T.38 Pass-Through doesn't work

2013-06-02 Thread Андрей Половов

What I have is:
* Asterisk 1.8.10.1~dfsg-1ubuntu1,
* SPA112 ATA with analog fax in 1-st FXS port connected,
* SIP trunk with provider supporting T.38.

My network looks like this:
* spa112 (192.168.33.200/24) and Asterisk (192.168.5.253/24) in 
neighbouring LANs,
* Asterisk connects to the provider (80.75.130.136) via router 
(82.200.7.184). Router has full DNAT to Asterisk server.


What happens?
* The fax from SPA112 to Asterisk cmd ReceiveFax works well,
* The fax from Asterisk cmd SendFax to PSTN fax works well,
* However, the fax from SPA112 to PSTN fax doesn't work. Using udptl 
debug, I can see packets between Asterisk and both sides (SPA112 and 
PSTN fax) but it seems that faxes can't agree how to send image.


== sip.conf:
[general]
tcpenable=yes
videosupport=yes
transport=udp,tcp
dtmfmode=rfc2833
qualify=yes
directmedia=no
allowguest=no
alwaysauthreject=yes
rtcachefriends=yes
rtupdate=no
callcounter=yes
t38pt_udptl=yes,redundancy,maxdatagram=200
t38pt_rtp=no
t38pt_tcp=no
ignoresdpversion=yes
disallow=all
allow=alaw
allow=ulaw
externip=82.200.7.184
localnet=192.168.0.0/255.255.0.0

[mtt]
type=peer
host=80.75.130.136
fromuser=7495777
disallow=all
allow=alaw,ulaw
directmedia=no
canreinvite=no
nat=yes

== udptl.conf:
[general]
udptlstart=4000
udptlend=4999
T38FaxUdpEC=t38UDPRedundancy
T38FaxMaxDatagram=200
udptlfecentries = 3
udptlfecspan = 3
use_even_ports = no

== spa112 SIP settings screenshot:
http://tinypic.com/view.php?pic=2z8dic6s=5

== debug log:
https://gist.github.com/anonymous/5685307

Please, help me!




--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Asterisk T.38 Pass-Through doesn't work

2013-06-02 Thread Larry Moore

On 2/06/2013 9:34 PM, Андрей Половов wrote:

What I have is:
* Asterisk 1.8.10.1~dfsg-1ubuntu1,
* SPA112 ATA with analog fax in 1-st FXS port connected,
* SIP trunk with provider supporting T.38.

My network looks like this:
* spa112 (192.168.33.200/24) and Asterisk (192.168.5.253/24) in
neighbouring LANs,
* Asterisk connects to the provider (80.75.130.136) via router
(82.200.7.184). Router has full DNAT to Asterisk server.

What happens?
* The fax from SPA112 to Asterisk cmd ReceiveFax works well,
* The fax from Asterisk cmd SendFax to PSTN fax works well,
* However, the fax from SPA112 to PSTN fax doesn't work. Using udptl
debug, I can see packets between Asterisk and both sides (SPA112 and
PSTN fax) but it seems that faxes can't agree how to send image.

== sip.conf:
[general]
tcpenable=yes
videosupport=yes
transport=udp,tcp
dtmfmode=rfc2833
qualify=yes
directmedia=no
allowguest=no
alwaysauthreject=yes
rtcachefriends=yes
rtupdate=no
callcounter=yes
t38pt_udptl=yes,redundancy,maxdatagram=200
t38pt_rtp=no
t38pt_tcp=no
ignoresdpversion=yes
disallow=all
allow=alaw
allow=ulaw
externip=82.200.7.184
localnet=192.168.0.0/255.255.0.0

[mtt]
type=peer
host=80.75.130.136
fromuser=7495777
disallow=all
allow=alaw,ulaw
directmedia=no
canreinvite=no
nat=yes

== udptl.conf:
[general]
udptlstart=4000
udptlend=4999
T38FaxUdpEC=t38UDPRedundancy
T38FaxMaxDatagram=200
udptlfecentries = 3
udptlfecspan = 3
use_even_ports = no




I don't have access to one of these devices though some suggestions you 
could try;


1) On SPA112 set FAX T38 Redundancy = 3
2) Add t38pt_usertpsource=yes in [mtt] section
3) Change maxdatagram=200 to maxdatagram=1400
4) In udptl.conf change T38FaxMaxDatagram to a value of 1400
5) In udptl.conf change use_even_ports to yes


You don't appear to list the sip.conf entry for the SPA112.

Where did t38pt_rtp  t38_tcp come from?

You may also want to experiment with the SPA112 setting FAX T38 ECM Enable

Cheers,

Larry.

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users