📜 ⬆️ ⬇️

Multiphone from Megaphone - use alternative SIP client

I do not want to discuss the feasibility of services as such - this has already been discussed in other topics ( # 1 , # 2 ). In any case, the service can be useful to the end user, for which I thank Megafon.

I also want to admire the staff of MegaFon who prepared the product for release - it seems that this is a completely closed product ... but even a superficial study allows us to understand that we can use the main functionality of the "Multiphone" using any SIP client and a regular WEB browser.

Immediately make a reservation - the service is interesting only for Megafon-Moscow subscribers, I went to the nearest service office for testing and bought a SIM card there.

So, to use the service we have to go through the following steps:
1. Registration
2. Service connection (for using SIP-In and SIP-Out services)
')
Well, while working we need:
3. Make / receive voice calls
4. Switching the operation mode (only GSM / PC / PC + GSM only)

Of course, all these operations can be performed with the help of a native client , but this is not always possible. Immediately I suggest an alternative way.

1. Registration


WEB registration is available at: sm.megafon.ru/sm/register
I advise during registration to create an account like <your phone number> @ multifon.ru

These links may also be helpful:
Password recovery page: sm.megafon.ru/sm/recover
Your profile: sm.megafon.ru/sm/profile?login=VASH_LOGIN@multifon.ru&password=VASH_PAROL

2. Service connection


To activate the service you need to dial on your phone (already registered in the "Multifone") * 137 # <call send> and follow the instructions in the menu.

A small addition for those who, like me, will buy a new Megaphone SIM card - the service can be used 2-6 hours after making the first call from your SIM card. Immediately after the purchase, the card is in non-activated mode and MegaFon software complexes take some time to activate the SIM card

3. Make / receive voice calls


After some time after the service is activated (not immediately!), The platform will update your profile and allow you to make outgoing calls or configure the mode of work with incoming calls.

Now it is time to configure your SIP client to work with "Multifon".
I used SJPhone and will give examples based on it:
1. Go to Menu => Options => Profiles and click on the "New ..." button:
Image
Specify the profile name, set the "Profile Type" = "Calls through SIP Proxy" and click "OK"

2. Select the “SIP Proxy” tab:
Image
And fill in the fields:
Domain / realm: multifon.ru
Use outbound proxy: yes
Proxy URI: sip: sbc.megafon.ru: 5060; transport = TCP
Proxy usage mode: Strict outbound proxy

3. Select the “SIP Registration” tab:
Image
Expose (regarding this field I'm not sure, maybe everything will work correctly without it):
Transport of registered contact: TCP

4. Save the account (“OK” button) and select the account you just created in the list and click “Initialize ...”:
Image
Registering:
Account: your ID (without a domain name!). If during the registration in the service you took advantage of my offer and indicated your phone number, then in this field indicate your number; if you are registered by nickname - indicate your nickname.
Password: password for the service

5. Click "OK" in the "Options" window
Image
and after that you should see this screen:
Image
The inscription "Multifon Ready to call" means that your SIP client has successfully registered with the SIP Proxy Megaphone and is ready to go

If you have already activated your client, then from now on you have access to outgoing calls, the number must be dialed in the format 7XXXYYYYYYY, i.e. no plus at the beginning of the number

4. Switching operation mode


Of course, it is much more convenient to do from the native client of Megaphone. But what if you do not have the opportunity (or desire) to use it? Here you will save the usual ... WEB browser.
Suppose your phone number is 79261234567 and your password is aaaBBB

Get current forwarding status

Go to the link of the form:
sm.megafon.ru/sm/client/routing?login=79261234567@multifon.ru&password=aaaBBB
In return, you get an XML page:
Image
An important parameter for us:
  <routing> 1 </ routing> 

it just specifies the mode of forwarding incoming calls to your phone:
0 = GSM only
1 = PC only
2 = PC and GSM

Set new forwarding status

sm.megafon.ru/sm/client/routing/set?login=79261234567@multifon.ru&password=aaaBBB&routing=XXX
at the same time, instead of “XXX”, you prescribe the redirection mode you need.
You can get either this answer:
Image
those. "Operation completed successfully"

Or this:
Image
I have such an answer when the “Multifon” service is not connected to the SIM card.

If suddenly someone was interested in, where did all this information come from, ... then I suggest you set up a megaphone client and carefully look at the contents of the files:
* defaults.xml
* customize / vendor.xml
from the catalog in which the “Multiphone” was installed.

ps:
* I have nothing to do with Megaphone
* I have never used a mobile connection from Megaphone before, I bought a SIM card specifically for testing the “Multifon”

UPD (08/04/2009): Connection to Asterisk


To receive incoming calls to asterisk, you need to add the following lines to sip.conf:
1. In section [general]
register => tcp://_sip_id__:_:_sip_id__@sbc.megafon.ru
example:
register => tcp://79251234567@multifon.ru:password:79251234567@sbc.megafon.ru
in this line we ask asterisk to register on the MegaFon SIP proxy server

2. Add a section:
[multifon-in]
type=peer
host=sbc.megafon.ru
dtmfmode=inband

it was possible without this section, but there is one nuance - DTMF codes are not transmitted in signaling (as is done with many SIP providers and is considered a good tone rule), but inside the voice stream, therefore Asterisk has to decode DTMF itself.

Source: https://habr.com/ru/post/66023/


All Articles