Browser-Phone icon indicating copy to clipboard operation
Browser-Phone copied to clipboard

No more SMS to mobile numbers

Open hellkaim opened this issue 2 years ago • 4 comments

Hi there. Thanks for the grate WebRTC thing! Really helps me a lot.

I have recently upgraded to version 0.3x (lates from git) and found out that there is no SMS to mobile phones... and that is strange.

SO. Before upgrade I was able to add a contact with ONLY mobile number and a text box appeared if that contact be selected. I was able to type a text and it was sent out as SMS (according to my extensions.conf).

Now, after upgrade, only contacts with internal extension show the text field. As such I decided to make a test and added mobile number as internal extension. Guess what? "NOTICE[21684] res_pjsip_exten_state.c: Endpoint '111' state subscription failed: Extension '+34692722222' does not exist in context 'default' or has no associated hint"

So for whatever reason the message went to default context when it should go to another context.

P.S. from my mobile SIP client (android APP) I can send SMS to mobile numbers without an issue )) So it seems some coding was changed here.

hellkaim avatar Jun 27 '22 10:06 hellkaim

If I remember correctly, I’m busy with a specific support for SMS - due to be finalised in the next release.

InnovateAsterisk avatar Jun 29 '22 10:06 InnovateAsterisk

Well, my SMS are simple SIP messages routed to appropriate context. As I mentioned the previous version of the web phone did not care if the entry had internal extension or an "mobile" number. It just dropped all text messages as SIP messages to Asterisk and it routed them as instructed.

I do not have much time to check all the code to find out in what exact place the messaging function is and how it determinate where and how to a) display text entry dialog and b) to what context should messages be routed.

hellkaim avatar Jun 29 '22 13:06 hellkaim

Ok, it seems that according to phone.js the messages can only be sent (message part of the interface displayed) if the Buddy has extension. So in order to send the message when creating a contact the phone (GSM) number should go to the extension field,

But then the message is dropped to default context. For whatever reason my system does forward it to the appropriate GSM Dongle but the message never gets send by the modem. Or at least I do not receive it.

hellkaim avatar Jul 27 '22 12:07 hellkaim

Hello, just curious if there are any updates?

hellkaim avatar Mar 02 '23 18:03 hellkaim