Smith Micro Software posted a wider-than-expected quarterly loss as revenue almost halved, and forecast weak third-quarter sales, sending its shares down 12 percent after hours.

Smith Micro, which makes software for telecom companies, projected third-quarter revenue of $15-$20 million, below analysts' estimates of $23.4 million, according to Thomson Reuters I/B/E/S.

The company posted a second-quarter net loss of $7.8 million, or 22 cents a share, compared with a net income of $1.9 million, or 5 cents a share, a year ago.

Excluding items, loss at the company, whose clients include Verizon Communications , Sprint Nextel Corp , Dell Inc and AT&T Inc, was 15 cents a share.

April-June revenue fell to $16.1 million.

Analysts expected a loss of 11 cents a share on revenue of $17.8 million.

Shares of Aliso Viejo, California-based Smith Micro were trading down 38 cents at $2.95 after the bell. They closed at $3.33 Tuesday on Nasdaq.

(Reporting by Sayantani Ghosh in Bangalore; Editing by Maju Samuel)