i used the wvdial tool to setup the modem...
type the following commands,
#sudo wvdialconf
Enter the administrator password. The modem settings will be written in the file /etc/wvdial.conf .
#vim /etc/wvdial.conf
use any editor and enter the username password and phone no in the aforementioned file.
then save it.
the file will look like :
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
ISDN = 0
Phone = #777
Modem = /dev/ttyUSB0
Username = **********
Password = **********
Baud = 9600
Stupid Mode = 1
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
ISDN = 0
Phone = #777
Modem = /dev/ttyUSB0
Username = **********
Password = **********
Baud = 9600
Stupid Mode = 1
Now type,
#wvdial
the output :
--> pppd: �Ť[08](Ȥ[08]
--> pppd: �Ť[08](Ȥ[08]
--> pppd: �Ť[08](Ȥ[08]
--> pppd: �Ť[08](Ȥ[08]
--> pppd: �Ť[08](Ȥ[08]
--> local IP address 117.254.223.55
--> pppd: �Ť[08](Ȥ[08]
--> remote IP address 192.168.52.12
--> pppd: �Ť[08](Ȥ[08]
--> primary DNS address 218.248.240.134
--> pppd: �Ť[08](Ȥ[08]
--> secondary DNS address 218.248.240.181
--> pppd: �Ť[08](Ȥ[08]
--> pppd: �Ť[08](Ȥ[08]
--> pppd: �Ť[08](Ȥ[08]
--> pppd: �Ť[08](Ȥ[08]
--> pppd: �Ť[08](Ȥ[08]
--> local IP address 117.254.223.55
--> pppd: �Ť[08](Ȥ[08]
--> remote IP address 192.168.52.12
--> pppd: �Ť[08](Ȥ[08]
--> primary DNS address 218.248.240.134
--> pppd: �Ť[08](Ȥ[08]
--> secondary DNS address 218.248.240.181
--> pppd: �Ť[08](Ȥ[08]
This was my output but something of this sort shows that u are connected.
NOTE: instead of #sudo wvdialconf we can directly copy the file details in /etc/wvdial.conf
Enjoy..