tdelenikas / smslib

SMSLib v4
Apache License 2.0
110 stars 97 forks source link

Call not auto disconnected (At least on Huawei Modem) #5

Closed vineetchaudhary closed 10 years ago

vineetchaudhary commented 10 years ago

I'm using Huawei 1550 modem on Mac OSX. When I receive a call on the modem, CLIP is shown and ATH command is sent to disconnect the call. But the call is not disconnected. Solution: While configuring modem properties after sending AT+CLIP=1, we also need to send AT+CVHU=0 so that call can be connected with ATH command.

tdelenikas commented 10 years ago

Edit modem.properties and modify

huawei.init2=AT^CURC=0\r

to

huawei.init2=AT^CURC=0\rAT+CVHU=0\r

Rebuild and try once more. If this works, I would require your modem signature (http://smslib.org/doc/v4/ModemConfiguration) in order to properly add it in the standard distro.

Otherwise, let me know... Thanks.

vineetchaudhary commented 10 years ago

Thanks, Will try it out. I anyway rebuilt by adding a dirty hack :

protected ModemResponse atEnableClip() throws Exception { write("AT+CVHU=0\r"); return write("AT+CLIP=1\r"); }

:-)

vineetchaudhary commented 10 years ago

This comment is to appreciate the work that you have done. This is a very nicely written and really helpful library and saved me a lot of time and effort. Keep up the good work :+1:

tdelenikas commented 10 years ago

Hi,

Did you by any chance try the "official" solution?