Sebastian Niehaus
2013-May-07 16:23 UTC
[asterisk-users] Asterisk and hylafax: how to debug ...
Hi, I hope you might give me some hints on how to find where my configuration is wrong, I am new to Asterisk and do not know, how to find the problem. Running Asterisk (version: 1.8.13.1~dfsg-3) on Debian Wheezy. On the same maschine: Hylafax fax server. I want hylafax to use t38modem (a virtual T.38 modem) for sending faxes. t38modem schould connect to asterisk on the same host. If hylafax sends a fax it should use t38modem which ist connected to asterisk. Asterik is expected to establish an outbound connection to my SIP provider which supports T38. The asterisk box is behind nat. For some reason, t38modem tells hylafax the line is BUSY so there is no fax send. I don't know why there is a busy signal, maybe the call forwarding configuration is wrong, maybe the registration on my SIP provider fails, maybe ....? I simply don't know how to debug what's going on. If Asterix trying to establish an outgoing connection ... Maybe you can help to enlighten me :-) ---------[ sip.conf ]---------------------------------------------- [general] context=default bindport=5060 bindaddr=0.0.0.0 srvlookup=yes localnet=192.168.0.0/255.255.255.0 localnet=127.0.0.1 externhost=hostname.no-ip.org ;disallow=all ;allow=ulaw ;allow=alaw language=de nat=yes ; incoming register => 4953610000000:password at sip.1und1.de/4953610000000 ; local SIP-Account where t30modem registers [30] callerid=T38modem<30> host=dynamic ;domain=127.0.0.1 ;host= 127.0.0.1 :permit=127.0.0.1 user=30 secret=password type=friend ;mailbox=30 nat=no context=fax_out ;port=6060 canreinvite=no t38pt_udptl=yes [20] ; FritzBox ; this is an ATA, but this entry is ; probably not needed; the ATA does not register ; a SIP account on asterisk. callerid=FritzBox<20> type=friend username=20 secret=password host=192.168.0.222 fromuser=20 canreinvite=no qualify=no disallow=all allow=alaw allow=ulaw ;allow=ilbc allow=g726 ;allow=g729 allow=gsm ;insecure=very nat=no dtmfmode=info ;tos=0x18 ; Outgoing calls to my SIP provider [4953610000000] type=friend username=4953610000000 secret=password host=sip.1und1.de fromuser=4953610000000 canreinvite=no qualify=no disallow=all allow=alaw allow=ulaw ;allow=ilbc allow=g726 ;allow=g729 allow=gsm ;insecure=very nat=yes dtmfmode=info tos=0x18 ---------[ end of sip.conf ]--------------------------------------- ---------[ extensions.conf ]--------------------------------------- [general] static=yes writeprotect=no [1und1-fax-out] exten => _0.,1,Dial,SIP/${EXTEN}@4953610000000|45|r [default] include => 1und1-fax-out ---------[ end of extensions.conf ]-------------------------------- Any idea what might be wrong? Thank you very much! Sebastian
Sebastian Niehaus
2013-May-07 19:48 UTC
[asterisk-users] Asterisk and hylafax: how to debug ...
Am 07.05.2013 18:23, schrieb Sebastian Niehaus:> For some reason, t38modem tells hylafax the line is BUSY so there is no > fax send.Well, I may add the log of t38modem (sorry for the ugly formatting) Parts I consider as most important are: ModemConnection::SetUpConnection dstNum=189659 srcNum=30 srcName=root ... denied (all modems busy) SIP OnSetUp failed for INVITE from sip:06814003340 at 127.0.0.1:6060 for Call[Cf64671db22]-EP<sip> ModemConnection::OnReleased Call -EP<modem>[modem:/C8670792521/0] (Call cleared because the line is out of service) Thanks for any suggestions .... here is all the log: ----------------------------------- 2013/05/07 21:30:03.574 ttyT38-0(e...0xb1778700 --> AT+FCLASS=1 2013/05/07 21:30:03.574 ttyT38-0(e...0xb1778700 <-- { 0d 0a 4f 4b 0d 0a ..OK.. } 2013/05/07 21:30:03.574 ttyT38-0(e...0xb1778700 --> ATDT0681/4003340 2013/05/07 21:30:03.574 ttyT38-0(e...0xb1778700 ModemEndPoint::OnMyCallback command=dial extra=5 2013/05/07 21:30:03.574 ttyT38-0(e...0xb1778700 PseudoModemQ::Dequeue ttyT38-0 2013/05/07 21:30:03.574 ttyT38-0(e...0xb1778700 MyManager::OnMyCallback SetUpCall(modem:, 06814003340 at +/dev/ttyT38-0) 2013/05/07 21:30:03.574 ttyT38-0(e...0xb1778700 ModemEndPoint::MakeConnection modem: 2013/05/07 21:30:03.574 ttyT38-0(e...0xb1778700 ModemConnection::SetUpConnection Call[Cdd70c36e1]-EP<modem>[modem:/Cdd70c36e1/0] Call[Cdd70c36e1] from modem:T38modem to 06814003340 at +/dev/ttyT38-0, route to sip:06814003340 at 127.0.0.1:6060 2013/05/07 21:30:03.575 ttyT38-0(e...0xb1778700 Call[Cdd70c36e1] from modem:T38modem to 06814003340 at +/dev/ttyT38-0, route to sip:06814003340 at 127.0.0.1:6060 2013/05/07 21:30:03.576 ttyT38-0(e...0xb1778700 ModemEndPoint::GetMediaFormats 2013/05/07 21:30:03.585 ttyT38-0(e...0xb1778700 ModemEndPoint::OnMyCallback request={ calltoken=modem:/Cdd70c36e1/0 localpartynamecommand=dial response=confirm number=06814003340 modemtoken=ttyT38-0 } 2013/05/07 21:30:03.588 Pool:0xb1674700 ModemEndPoint::MakeConnection modem:06814003340 Call[C8e34455a2] from sip:06814003340 at 127.0.0.1:6060 to sip:06814003340 at 127.0.0.1:6060, route to modem:06814003340 2013/05/07 21:30:03.588 Pool:0xb1674700 Call[C8e34455a2] from sip:06814003340 at 127.0.0.1:6060 to sip:06814003340 at 127.0.0.1:6060, route to modem:06814003340 2013/05/07 21:30:03.588 Pool:0xb1674700 ModemEndPoint::GetMediaFormats 2013/05/07 21:30:03.593 Pool:0xb1674700 ModemConnection::SetUpConnection Call[C8e34455a2]-EP<modem>[modem:06814003340/C8e34455a2/0] 2013/05/07 21:30:03.593 Pool:0xb1674700 ModemConnection::SetUpConnection dstNum=06814003340 srcNum=30 srcName=root ... 2013/05/07 21:30:03.593 Pool:0xb1674700 ... denied (all modems busy) 2013/05/07 21:30:03.593 Pool:0xb1674700 ModemConnection::OnReleased Call[C8e34455a2]-EP<modem>[modem:06814003340/C8e34455a2/0] 2013/05/07 21:30:03.593 Pool:0xb1674700 SIP OnSetUp failed for INVITE from sip:06814003340 at 127.0.0.1:6060 for Call[C8e34455a2]-EP<sip>[b8e7402f-bab5-e211-972b-6c626db69c09] 2013/05/07 21:30:03.596 OnRelease:0xb15b1700 ModemConnection::OnReleased Call[Cdd70c36e1]-EP<modem>[modem:/Cdd70c36e1/0] Call[Cdd70c36e1] cleared (Call cleared because the line is out of service) 2013/05/07 21:30:03.596 OnRelease:0xb15b1700 Call[Cdd70c36e1] cleared (EndedByOutOfService) Call[C8e34455a2] cleared (Local party cleared call) 2013/05/07 21:30:03.695 OnRelease:0xb15f2700 Call[C8e34455a2] cleared (EndedByLocalUser) 2013/05/07 21:30:04.229 Opal Garbage:0xc71ba700 ttyT38-0 AudioEngine Attach 2013/05/07 21:30:04.229 Opal Garbage:0xc71ba700 ttyT38-0 AudioEngine OnAttach Attached 2013/05/07 21:30:04.229 Opal Garbage:0xc71ba700 ttyT38-0 AudioEngine OnResetModemState 2013/05/07 21:30:04.229 Opal Garbage:0xc71ba700 ttyT38-0 AudioEngine ChangeModemClass to mcFax 2013/05/07 21:30:04.229 Opal Garbage:0xc71ba700 ttyT38-0 AudioEngine OnChangeModemClass to mcFax 2013/05/07 21:30:04.229 Opal Garbage:0xc71ba700 ModemEngineBody::_AttachEngine Attached mceAudio 2013/05/07 21:30:04.229 ttyT38-0(e...0xb1778700 ttyT38-0 AudioEngine Detach 2013/05/07 21:30:04.229 ttyT38-0(e...0xb1778700 ttyT38-0 AudioEngine OnChangeModemClass to mcUndefined 2013/05/07 21:30:04.229 ttyT38-0(e...0xb1778700 ttyT38-0 AudioEngine OnDetach Detached 2013/05/07 21:30:04.229 ttyT38-0(e...0xb1778700 ttyT38-0 AudioEngine OnResetModemState 2013/05/07 21:30:04.229 ttyT38-0(e...0xb1778700 ModemEngineBody::_DetachEngine Detached mceAudio 2013/05/07 21:30:04.229 ttyT38-0(e...0xb1778700 <-- { 0d 0a 42 55 53 59 0d 0a ..BUSY.. }
>>>>> "SN" == Sebastian Niehaus <niehaus at web.de> writes:SN> Running Asterisk (version: 1.8.13.1~dfsg-3) on Debian Wheezy. On the SN> same maschine: Hylafax fax server. I want hylafax to use t38modem (a SN> virtual T.38 modem) for sending faxes. t38modem schould connect to SN> asterisk on the same host. SN> If hylafax sends a fax it should use t38modem which ist connected to SN> asterisk. Asterik is expected to establish an outbound connection to my SN> SIP provider which supports T38. The asterisk box is behind nat. Silly question: If you want to use T38 to the remote provider, and have t38modem, do you /need/ the asterisk in the middle? And if you /do/ need something between the two, might a sip proxy work better than a pbx? -JimC -- James Cloos <cloos at jhcloos.com> OpenPGP: 1024D/ED7DAEA6