[asterisk-users] Can not calculate far_max_ifp before far_max_datagram has been set

2015-02-04 Thread Marco Capetta
Hello,

I use Asterisk 13.1 with a SIP trunk with a provider

When transmitting or receiving a fax in T.38 through the trunk with the 
provider I always get this warning:

WARNING [8204]: udptl.c: 852 calculate_far_max_ifp: UDPTL (no tag): Can not 
calculate far_max_ifp before far_max_datagram has been set

After the warning begins exchanging packets UDPTL, but all with sequence number 
0 or 256.
The fax is not properly transmitted or received.

I configured the trunk as follow:

t38_udptl = yes
t38_udptl_ec = redundancy
t38_udptl_maxdatagram = 400

How can I fix the problem?

Thank You
Marco-- 
_
-- 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 13, PJSIP and T38 problem

2015-02-01 Thread Marco Capetta
Hello,

I need help to solve a problem that I am having using Asterisk 13, PJSIP and 
T38.

My setup is as follows:
SIP Provider -- Asterisk 13 -- Patton -- Physical Fax
I need to get the fax directly in T38 to Patton.

The provider sends me the fax in T38.
If I receive the T38 fax on Asterisk (using an hylafax device), I can properly 
receive the fax.
If I send a T38 fax with Asterisk (using an hylafax device) directly to the 
Patton, I receive it correctly on the physical fax.

Instead, if I route, through Asterisk, the t38 fax call received by the 
provider to the Patton, I can not receive anything.
From UDPTL debug I can see the flow of some udptl packages from the provider to 
Asterisk, but I see no udptl package from Asterisk to the Patton.
From PJSIP logs, it seems that the T38 is properly negotiated by both parties.
From the debug of the Patton i see many Wrong media type. Drop FAX Packet”.

How to ensure that the fax, received by asterisk from the provider with T38 
protocol, is routed to the Patton using again T38 protocol?

Below my pjsip.conf” file:


;===TRANSPORT=

[simpletrans]
type=transport
protocol=udp
bind=0.0.0.0:5060


;===TRUNK==

[trunk-provider]
type=endpoint
transport=simpletrans
context=in_provider
direct_media=no
disallow=all
allow=alaw
allow=g729
aors=trunk-provider
t38_udptl=yes
t38_udptl_ec=redundancy
t38_udptl_maxdatagram=400

[trunk-provider]
type=aor
contact=sip:X.X.X.X:5060

[trunk-provider]
type=identify
endpoint=trunk-provider
match=X.X.X.X
match=X.X.X.X



[trunk-patton]
type=aor
max_contacts=5

[trunk-patton]
type=endpoint
transport=simpletrans
context=in_patton
direct_media=no
disallow=all
allow=alaw
auth=trunk-patton
aors=trunk-patton
t38_udptl=yes
t38_udptl_ec=fec
t38_udptl_maxdatagram=400

[trunk-patton]
type=auth
auth_type=userpass
password=X
username=X

=

Thanks
Marco

-- 
_
-- 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