playSMS Forum

The provided X-Profile-Secret header was invalid. smsc:telnyx

Hello, @anton, How are you?
I am using Telnyx API key to send SMS but I am getting this error. Can you please let me know what is the problem and how I can fix it?
Thanks

xx.xyz.xyz.111 sms.dbsfactor.net 2021-07-02 00:34:09 PID60de5f0120e1a admin L2 sendsms # start uid:1 sender_id:[1234] smsc:[]
xx.xyz.xyz.111 sms.dbsfactor.net 2021-07-02 00:34:09 PID60de5f0120e1a admin L3 sendsms # maxlen:459 footerlen:7 footer:[ @admin] msglen:26 message:[Hi u there, good morning!!]
xx.xyz.xyz.111 sms.dbsfactor.net 2021-07-02 00:34:09 PID60de5f0120e1a admin L2 sendsms_queue_create # saving queue_code:7c52e47e633e036a294ac952e32b90de src:1234 scheduled:2021-07-02 00:34:09
xx.xyz.xyz.111 sms.dbsfactor.net 2021-07-02 00:34:09 PID60de5f0120e1a admin L2 sendsms_queue_create # saved queue_code:7c52e47e633e036a294ac952e32b90de id:2
xx.xyz.xyz.111 sms.dbsfactor.net 2021-07-02 00:34:09 PID60de5f0120e1a admin L3 sendsms_manipulate_prefix # before prefix manipulation:[13479014872]
xx.xyz.xyz.111 sms.dbsfactor.net 2021-07-02 00:34:09 PID60de5f0120e1a admin L3 sendsms_manipulate_prefix # after prefix manipulation:[13479014872]
xx.xyz.xyz.111 sms.dbsfactor.net 2021-07-02 00:34:09 PID60de5f0120e1a admin L3 simplerate_hook_rate_getbyprefix # found rate id:1 prefix:1 rate:0.003 description:US Mobile to:13479014872
xx.xyz.xyz.111 sms.dbsfactor.net 2021-07-02 00:34:09 PID60de5f0120e1a admin L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:33 unicode:0 to:13479014872 enable_credit_unicode:0 count:1 rate:0.003 charge:0.003
xx.xyz.xyz.111 sms.dbsfactor.net 2021-07-02 00:34:09 PID60de5f0120e1a admin L2 sendsms # dst_count:1 sms_count:1 total_charges:0.003
xx.xyz.xyz.111 sms.dbsfactor.net 2021-07-02 00:34:09 PID60de5f0120e1a admin L2 sendsms_queue_push # saving queue_code:7c52e47e633e036a294ac952e32b90de dst:13479014872
xx.xyz.xyz.111 sms.dbsfactor.net 2021-07-02 00:34:09 PID60de5f0120e1a admin L2 sendsms_queue_push # saved queue_code:7c52e47e633e036a294ac952e32b90de smslog_id:2
xx.xyz.xyz.111 sms.dbsfactor.net 2021-07-02 00:34:09 PID60de5f0120e1a admin L2 sendsms # end queue_code:7c52e47e633e036a294ac952e32b90de queue_count:1 sms_count:1 failed_queue:0 failed_sms:0

    • 2021-07-02 00:34:09 PID60de5f01aa5cc - L2 sendsmsd # start processing queue_code:7c52e47e633e036a294ac952e32b90de chunk:0 queue_count:1 sms_count:1 scheduled:2021-07-02 00:34:09 uid:1 gpid:0 sender_id:1234
    • 2021-07-02 00:34:09 PID60de5f01aa5cc - L2 sendsmsd # sending queue_code:7c52e47e633e036a294ac952e32b90de smslog_id:2 to:13479014872 sms_count:1 counter:1
    • 2021-07-02 00:34:09 PID60de5f01aa5cc - L3 sendsms_intercept # msgtemplate modified sms_sender:[1234] sms_footer:[@admin] sms_to:[13479014872] sms_msg:[Hi u there, good morning!!] uid:[1] gpid:[0] sms_type:[text] unicode:[0] queue_code:[7c52e47e633e036a294ac952e32b90de] smsc:[]
    • 2021-07-02 00:34:09 PID60de5f01aa5cc - L3 outgoing_hook_sendsms_intercept # found SMSCs:[telnyx]
    • 2021-07-02 00:34:09 PID60de5f01aa5cc - L3 outgoing_hook_sendsms_intercept # using prefix based smsc smsc:[telnyx] uid:1 parent_uid:0 from:1234 to:13479014872
    • 2021-07-02 00:34:09 PID60de5f01aa5cc - L3 sendsms_intercept # outgoing modified sms_sender:[1234] sms_footer:[@admin] sms_to:[13479014872] sms_msg:[Hi u there, good morning!!] uid:[1] gpid:[0] sms_type:[text] unicode:[0] queue_code:[7c52e47e633e036a294ac952e32b90de] smsc:[telnyx]
    • 2021-07-02 00:34:09 PID60de5f01aa5cc - L2 sendsms_process # start
    • 2021-07-02 00:34:09 PID60de5f01aa5cc - L3 simplerate_hook_rate_getbyprefix # found rate id:1 prefix:1 rate:0.003 description:US Mobile to:13479014872
    • 2021-07-02 00:34:09 PID60de5f01aa5cc - L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:33 unicode:0 to:13479014872 enable_credit_unicode:0 count:1 rate:0.003 charge:0.003
    • 2021-07-02 00:34:09 PID60de5f01aa5cc - L2 simplerate_hook_rate_cansend # allowed user uid:1 sms_to:13479014872 adhoc_credit:1000 count:1 rate:0.003 charge:0.003 adhoc_balance:999.997
    • 2021-07-02 00:34:09 PID60de5f01aa5cc - L2 sendsms # saving smslog_id:2 u:1 parent_uid:0 g:0 gw:telnyx smsc:telnyx s:1234 d:13479014872 type:text unicode:0 status:0
    • 2021-07-02 00:34:09 PID60de5f01aa5cc - L2 sendsms_process # saved smslog_id:2 id:2
    • 2021-07-02 00:34:09 PID60de5f01aa5cc - L3 sendsms # final smslog_id:2 gw:telnyx smsc:telnyx message:Hi u there, good morning!! @admin len:33
    • 2021-07-02 00:34:09 PID60de5f01aa5cc - L3 telnyx_hook_sendsms # enter smsc:telnyx smslog_id:2 uid:1 to:13479014872
    • 2021-07-02 00:34:10 PID60de5f01aa5cc - L2 telnyx_hook_sendsms # failed smslog_id:2 message_id: error_code:403error_messageThe provided X-Profile-Secret header was invalid. smsc:telnyx
    • 2021-07-02 00:34:10 PID60de5f01aa5cc - L3 dlr # isdlrd:1 smslog_id:2 p_status:2 uid:1
    • 2021-07-02 00:34:10 PID60de5f01aa5cc - L3 telnyx_hook_sendsms # sendsms end
    • 2021-07-02 00:34:10 PID60de5f01aa5cc - L2 sendsms_process # fail no hook for sendsms
    • 2021-07-02 00:34:10 PID60de5f01aa5cc - L2 sendsms_process # end
    • 2021-07-02 00:34:10 PID60de5f01aa5cc - L2 sendsmsd # result queue_code:7c52e47e633e036a294ac952e32b90de to:13479014872 flag:2 smslog_id:2
    • 2021-07-02 00:34:10 PID60de5f01aa5cc - L2 sendsmsd # finish processing queue_code:7c52e47e633e036a294ac952e32b90de uid:1 sender_id:1234 queue_count:1 sms_count:1
    • 2021-07-02 00:34:10 PID60de5dab95421 - L3 dlrd # id:2 smslog_id:2 p_status:2 uid:1
      xx.xyz.xyz.111 sms.dbsfactor.net PID60de612f61677 - L2 init # WARNING: possible CSRF attack. sid:v32crgisvbqrqjteoak8gscle0 ip:xx.xyz.xyz.111
      xx.xyz.xyz.111 sms.dbsfactor.net 2021-07-02 00:43:27 PID60de612fa2161 admin L2 auth_block # WARNING: no access or blocked. sid:v32crgisvbqrqjteoak8gscle0 ip:xx.xyz.xyz.111 uid:1 app:main inc:core_auth op:block route:block
    • 2021-07-02 00:59:59 PID60de5dab87619 - L3 report_hook_playsmsd # login session removed uid:1 hash:81b576f23d180b087995eb4c1bf5a3ec
    • 2021-07-02 01:59:59 PID60de5dab87619 - L3 report_hook_playsmsd # login session removed uid:1 hash:9290ec512b27c7a874a69f96e6fa1837
      xx.xyz.xyz.111 sms.dbsfactor.net 2021-07-02 05:26:21 PID60dea37d4817c - L3 auth_validate_login # login attempt u:admin uid:1 p:21232f297a57a5a743894a0e4a801fc3 ip:xx.xyz.xyz.111
      xx.xyz.xyz.111 sms.dbsfactor.net 2021-07-02 05:26:21 PID60dea37d4817c - L2 auth_validate_login # valid login u:admin uid:1 ip:xx.xyz.xyz.111
      xx.xyz.xyz.111 sms.dbsfactor.net 2021-07-02 05:26:21 PID60dea37d4817c - L2 login # u:admin uid:1 status:2 sid:v32crgisvbqrqjteoak8gscle0 ip:xx.xyz.xyz.111