[solved] Default SMSC for replies from SMS custom

incoming SMS with supplied unknown SMSC will be just fine, playSMS will issue a warning on log only.
but sending SMS via unknown SMSC will be blocked.

ref:

Thanks Anton will try and test at the weekend.

Hi Anton I have tested custom with 1.4 and this is what I get , I set my custom script to use kannel.


But when it send the message using blocked.

Check the log see why it chose blocked

Anton

I can see its not taking my selection.
2016-07-17 13:37:08 PID578b89ebd37f3 - L3 gateway_decide_smsc # SMSC supplied:[SMSPRO] configured:[] decided smsc:[blocked]
Its still getting SMSPRO from somewhere.
I have also changed it to SUPPLIED SMSC & ROUTED SMSC same result it ignores my selection.

oh that is what it should be.

Here is the explanation:

  1. Kannel push SMSPRO with the param smsc=%i in Kannel SMS service get-url
  2. playSMS receives smsc is SMSPRO
  3. playSMS decides blocked because SMSPRO is unknown to playSMS

So now you can do one of these options to get playSMS send it via SMSC kannel

  1. set parameter smsc=kannel in Kannel SMS service get-url
  2. Or, remove parameter smsc=%i from Kannel SMS service get-url
  3. Or, add SMSC SMSPRO in playSMS

anton

Great changed it in the get-url and its working.
Please mark as solved.

was thinking to just ignore it if the SMSC pushed by gateway is unknown, but then I chose to set to blocked so that the burden passed to administrator of the gateway (and playSMS, should they be different person)

both administrators should know what to pass to each other, in your case whoever configure Kannel should know that the SMSC name now matters for playSMS

anton

I think we should just note it I guess most administrators do both in any case.