flyerhzm / rfetion

rfetion is a ruby gem for China Mobile fetion service that you can send SMS free.
61 stars 8 forks source link

Fetion::SipcException #18

Closed incubus closed 1 year ago

incubus commented 14 years ago

Hello! I've tried latest gem and master from git:

$ Fetion.send_sms fetion login fetion login success fetion register fetion pulse fetion pulse success fetion pulse fetion pulse success fetion register success fetion get contacts fetion get contact info of uri:sip:xxx@fetion.com.cn;p=6197 fetion pulse Fetion::SipcException: Fetion::SipcException from /home/incubus/workspace/test/vendor/plugins/rfetion/lib/rfetion/fetion.rb:439:in `curl_exec'

flyerhzm commented 14 years ago

Please add the option :logger_level => Logger::DEBUG to get debug information. If they are not helpful for you, you can paste them to me, I will try to fix it.

incubus commented 14 years ago

Hello! It works when my receivers list is empty. And breaks with a mobile number in the options[:receivers]. I can send a full log to you if you want. Thanks!

SIPP response: # response body: SIP-C/4.0 200 OK I: 5 Q: 1 S L: 817 SIPP fetion curl exec complete fetion pulse fetion curl exec url: http://221.176.31.39/ht/sd.aspx?t=s&i=10 body: SIPP response: # response body: SIP-C/4.0 400 Bad Request I: 6 Q: 1 S SIPP fetion curl exec complete Fetion::SipcException: Fetion::SipcException