On Friday 06 Dec 2013 00:21:24 Daniel Frey wrote:
> On 12/05/2013 03:04 PM, Mick wrote:
> > The connection bails out.  I don't understand what the message "Serial
> > line is looped back." means.  Any ideas?
> 
> This usually means the host is just echoing everything back to the
> client. Most times this means the host is not starting the session or is
> waiting for something before it starts the session.

Yes!  It was my phone's way of telling me that whatever I was sending, it was 
not what it was expecting, echoing back the same information.

So, I experimented with the relevant /etc/ppp/ip-up.d/45-mySIP_connect.sh by 
removing all entries but this:

#!/bin/sh
exec /usr/sbin/chat -v '' ATZ OK ATDT*99# CONNECT ''

It now works!  :-)
=================================================================
Dec  6 12:40:21  pppd[5644]: pppd 2.4.5 started by michael, uid 0
Dec  6 12:40:21  chat[5647]: send (ATZ^M)
Dec  6 12:40:21  chat[5647]: expect (OK)
Dec  6 12:40:21  chat[5647]: ATZ^M^M
Dec  6 12:40:21  chat[5647]: OK
Dec  6 12:40:21  chat[5647]:  -- got it
Dec  6 12:40:21  chat[5647]: send (ATDT*99#^M)
Dec  6 12:40:21  chat[5647]: expect (CONNECT)
Dec  6 12:40:21  chat[5647]: ^M
Dec  6 12:40:23  chat[5647]: ATDT*99#^M^M
Dec  6 12:40:23  chat[5647]: CONNECT
Dec  6 12:40:23  chat[5647]:  -- got it
Dec  6 12:40:23  chat[5647]: send (^M)
Dec  6 12:40:23  pppd[5644]: Serial connection established.
Dec  6 12:40:23  pppd[5644]: Using interface ppp0
Dec  6 12:40:23  pppd[5644]: Connect: ppp0 <--> /dev/rfcomm0
Dec  6 12:40:26  pppd[5644]: PAP authentication succeeded
Dec  6 12:40:27  pppd[5644]: local  IP address XX.XXX.XX.XX
Dec  6 12:40:27  pppd[5644]: remote IP address XX.X.X.XX
Dec  6 12:40:27  pppd[5644]: primary   DNS address XXX.XX.XXX.X
Dec  6 12:40:27  pppd[5644]: secondary DNS address XXX.XX.XXX.X
Dec  6 12:40:27  chat[5652]: Can't get terminal parameters: Inappropriate 
ioctl for device
=================================================================

Not sure what the last error is.  I suspect something to do with certain 
characters that need to be escaped in the terminal by bash?  Grateful for any 
pointers.

Otherwise, kppp still hangs being able to complete the connection.  I have not 
been able to troublshoot that further.
-- 
Regards,
Mick

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to