Connect problems Bearer Start


#1

after tcp stack inited, to Connect GPRS i open configure the bearer

wip_bearerOpen(&myBearer, “GPRS”, myHandler, NULL) return ok.

/* configure GPRS interface /
wip_bearerSetOpts(myBearer,
WIP_BOPT_GPRS_APN, “internet.beeline.ru”,
WIP_BOPT_LOGIN, “beeline”,
WIP_BOPT_PASSWORD, “beeline”,
WIP_BOPT_DIAL_PHONENB, "99
*1#;", WIP_BOPT_END);

this function return to me WIP_BERR_OPTION

after this i have exclude the phone number option and tryed again.
wip_bearerSetOpts return ok.

wip_bearerStart(myBearer) return WIP_BERR_OK_INPROGRESS
but after this myHandler was never called with
WIP_BEV_IP_CONNECTED event.
:question:


#2

Hi, Bulat!

 I newer used Beeline gprs, but in mts and megafon there is no need to define phone number with  WIP_BOPT_DIAL_PHONENB. Here is my code and it works!

wip_bearerOpen( &b, “GPRS”, evh_bearer, NULL);
wip_bearerSetOpts( b, WIP_BOPT_GPRS_APN, gprs_apn,
WIP_BOPT_LOGIN, gprs_login,
WIP_BOPT_PASSWORD, gprs_pass,
WIP_BOPT_END);
wip_bearerStart( b);

My function evh_bearer is called with WIP_BEV_IP_CONNECTED event

Bye!