Open vevees23 opened 4 years ago
Did you try to put a zero in front of your national number (or whatevery indian operators use as local exit prefix; in europe it's a zero...)? Beforehands, everything was threated as NUMBER_TYPE_INTERNATIONAL, now numbers without a + are threated as NUMBER_TYPE_UNKNOWN.
with latest merge , there is no problem without country code, but now i can't able to send message to operator service numbers
raspbx*CLI> dongle sms dongle0 1900 hello [dongle0] SMS queued for send -- [dongle0] Error payload: UNKNOWN -- [dongle0] Error sending SMS message 0x73f055e8 [2020-05-15 16:30:24] ERROR[12321]: at_response.c:516 at_response_error: [dongle0] Error sending SMS message 0x73f055e8 SMSTEXT
Did this work before? Sounds strange, as @miopa introduced the NUMBER_TYPE_NETWORKSHORT case, which sounds very reasonable to me. Could you please try to replace NUMBER_TYPE_NETWORKSHORT on line 568 of pdu.c with NUMBER_TYPE_INTERNATIONAL?
@magcks no , i didn't test before , i recently started using FreePBX I can conform that i can able to send sms to operator number(1900) i mentioned in previous log, with using modem manager GUI software or huawei GUI software
@magcks i replaced NUMBER_TYPE_NETWORKSHORT with NUMBER_TYPE_INTERNATIONAL
same problem
raspbx*CLI> dongle sms dongle0 1900 dfgfgdfghdf [dongle0] SMS queued for send -- [dongle0] Error payload: UNKNOWN -- [dongle0] Error sending SMS message 0x73e004f0 [2020-05-15 17:19:55] ERROR[21575]: at_response.c:516 at_response_error: [dongle0] Error sending SMS message 0x73e004f0 SMSTEXT
(or whatevery indian operators use as local exit prefix; in europe it's a zero...)
Actually. I don't think that applies to all countries. It does to NL and DE. But AFAIK, Greece, Spain, Portugal, Luxembourgh and a bunch of other countries don't use a 0-prefix when dialing nationally.
See for instance https://en.wikipedia.org/wiki/Telephone_numbers_in_Greece#Overview
Finally, in 2002, the leading '0' was changed to a '2' (for geographic numbers)
@veerendra-nath : in your first comment you said "before it can able send (no problem with operator )".
That leads us to believe that something was changed in chan_dongle recently. Is there a specific commit that changed things after which things stopped working for you?
Please use git bisect
to figure out which commit breaks things for you.
@veerendra-nath : in your first comment you said "before it can able send (no problem with operator )".
That leads us to believe that something was changed in chan_dongle recently. Is there a specific commit that changed things after which things stopped working for you?
Please use
git bisect
to figure out which commit breaks things for you.
sorry for my bad , that one i used old chan_dongle lib comes with RaspPBX distribution
What's the status with this?
The patch I made was tested with network short, local and international numbers on multiple operators and countries in North America, Europe and East Africa. Without the patch, SMS sending was failing on some operators with short and local numbers.
@miopa I think @veerendra-nath used the old Version from that raspberry pi repo. Your patch is working for me at least for national numbers. I didn't try operator numbers as we don't really use them in germany.
Hi! I use commit 2bd3fc2cc31562826c8341c5584fe26def9ca808 of https://github.com/wdoekes/asterisk-chan-dongle, and try send sms to short code:
asteriskCLI> dongle sms gsm912xxxxxxx 3620 Z4088924\78995 [gsm912xxxxxxx] SMS queued for send [Jan 29 07:22:11] ERROR[82]: at_response.c:287 log_cmd_response_error: [gsm912xxxxxxx] Error sending SMS message 0x7f5229f7ec70 SMSTEXT
In main console:
asterisk_1 | [Jan 29 07:22:11] -- [gsm912xxxxxxx] Error payload: UNKNOWN asterisk_1 | [Jan 29 07:22:11] -- [gsm912xxxxxxx] Error sending SMS message 0x7f5229f7ec70 asterisk_1 | [Jan 29 07:22:11] ERROR[82]: at_response.c:287 log_cmd_response_error: [gsm912xxxxxxx] Error sending SMS message 0x7f5229f7ec70 SMSTEXT asterisk_1 | [Jan 29 07:22:11] -- Executing [report@in_gsm912xxxxxxx:1] Hangup("Local/report@in_gsm912xxxxxxx-00000000;1", "") in new stack asterisk_1 | [Jan 29 07:22:11] == Spawn extension (in_gsm912xxxxxxx, report, 1) exited non-zero on 'Local/report@in_gsm912xxxxxxx-00000000;1' asterisk_1 | [Jan 29 07:22:11] -- Executing [h@in_gsm912xxxxxxx:1] Hangup("Local/report@in_gsm912xxxxxxx-00000000;1", "") in new stack asterisk_1 | [Jan 29 07:22:11] == Spawn extension (in_gsm912xxxxxxx, h, 1) exited non-zero on 'Local/report@in_gsm912xxxxxxx-00000000;1'
Send to normal number works fine:
asteriskCLI> dongle sms gsm912xxxxxxx +7915xxxxxxx Z4088924\78995 [gsm912xxxxxxx] SMS queued for send [Jan 29 07:35:50] NOTICE[82]: at_response.c:215 at_response_ok: [gsm912xxxxxxx] Successfully sent SMS message 0x7f5229f7ec70 [gsm912xxxxxxx] Got status report with ref 83 from +7915xxxxxxx and status code 0 [gsm912xxxxxxx] Success: 1; Payload: UNKNOWN; Report string: 000,
This is error When USSD:
When sending SMS without country code (Local number India) error , it can't able to send , before it can able send (no problem with operator ) Now with only with country code it can able to send , not possible to send sms to operator number ;