playSMS Forum

Custom feature - How to pass along SMSC to the custom url call

How to send over SMSC parameter to the custom url call. i,e add {SMSC} as parameter?

Parameters to custom URL field

  • {SERVICENAME} will be replaced by service name
  • {SMSDATETIME} will be replaced by SMS incoming date/time
  • {SMSSENDER} will be replaced by sender number
  • {SMSRECEIVER} will be replaced by receiver number
  • {CUSTOMKEYWORD} will be replaced by custom keyword
  • {CUSTOMPARAM} will be replaced by custom parameter passed to server from SMS
  • {CUSTOMRAW} will be replaced by SMS raw message

Try this

You need to edit php file plugin/feature/sms_custom/fn.php, go to line 141 and insert:

$custom_url = str_replace("{SMSC}", urlencode($smsc), $custom_url);

file plugin/feature/sms_custom/fn.php, go to line 141:

1 Like