Re: DISCARDED SMS / NACK/Retries Exceeded

Stipe Tolj <[email protected]> Sat, 29 May 2021 10:40:07 +0200
Newsgroups gmane.comp.mobile.kannel.user
Organization Kannel Foundation
Message-ID <[email protected]>
Am 25.05.21, 09:54, schrieb Web Min:
> It is already in the SMSC before the host
>
> allowed-prefix = 1

when your users inject as destination addr 1xxx that is fine, but if 
they use a international prefixed addr +1xxx that would not be able to 
pass via the configured SMSC then.

this would then yield the following code block in 
gw/bb_smsconn.c:smsc2_rout():

     } else {
         gw_rwlock_unlock(&smsc_list_lock);
         if (bb_status == BB_SHUTDOWN) {
             msg_destroy(msg);
             return SMSCCONN_QUEUED;
         }
         warning(0, "Cannot find SMSCConn for message to <%s>, rejected.",
                     octstr_get_cstr(msg->sms.receiver));
         bb_smscconn_send_failed(NULL, msg_duplicate(msg), 
SMSCCONN_FAILED_DISCARDED, octstr_create("no SMSC"));
         return SMSCCONN_FAILED_DISCARDED;
     }

check if you can see this WARNING entry in the log, to double check.

-- 
Best Regards,
Stipe Tolj

-------------------------------------------------------------------
Düsseldorf, NRW, Germany

Kannel Foundation                 tolj.org system architecture
http://www.kannel.org/            http://www.tolj.org/

[email protected]                  [email protected]
-------------------------------------------------------------------