Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kamailio with Asterisk integration #7

Open
M-Nusrat-Ullah opened this issue Nov 22, 2023 · 6 comments
Open

Kamailio with Asterisk integration #7

M-Nusrat-Ullah opened this issue Nov 22, 2023 · 6 comments

Comments

@M-Nusrat-Ullah
Copy link

I am working on integrating asterisk with kamailio IMS. I am quite new in this field. Any idea on how can I start doing it? It would be a great help.

@herlesupreeth
Copy link
Owner

Hey, sorry for the delayed response. I dont have much experience integrating IMS with Asterisk. Can you please let me know how you plan to use Asterisk in that setup? as a MMTEL you mean?

All I have tried so far was to direct INVITE SIP message to Asterisk but that itself wont be enough since Asterisk wont have any registration information so I had to direct REGISTER SIP message as well. In order to do so you have to configure the Initial Filter Criteria in your HSS (the one connected to I-CSCF and S-CSCF).

@M-Nusrat-Ullah
Copy link
Author

Sorry for the delayed reply from my part too. My final goal is to integrate IMS with asterisk in such a way where if UE registered in IMS calls a registered UE in asterisk, they can communicate with each other and vice versa. But now, I am starting with a simple echo-test of IMS to check latency of IMS calls. Scenario I have imagined for this test is like, I will make a call in IMS, then IMS will send it to asterisk server, then asterisk will send it back to IMS server to the UE that made the call, and I can hear my own voice. If you can help me achieve these two scenarios, it will be great. Also, you have any other good approach for the echo test, it is also welcome. Thank you very much in advance.

@herlesupreeth
Copy link
Owner

I am not sure whether I can help you in this regard since I dont have much experience in Asterisk. All I can suggest is to refer to this video - https://www.youtube.com/watch?v=3nVRpzkUbIg&t=2s

@M-Nusrat-Ullah
Copy link
Author

The problem isn't solved in his video as he mentioned it in the details of the video. No problem, I will try my best to make them working. In the meantime, if you get anything on integrating them, please share it here. Thank you for your time.

@herlesupreeth
Copy link
Owner

For that third-party registration information here is an issue highlighting the commits with fixes - herlesupreeth/docker_open5gs#141

@NUCLEAR-WAR
Copy link

Hi @M-Nusrat-Ullah,

I know this is a late answer, but hope it could help.
If you plan to integrate Asterisk as AS in Kamailio IMS the key in this is to preserves at least the second Route Header which contains the Identifier for the call leg, so that the S-CSCF can recognize the call leg and know it comes from the AS so he don't need to trigger the IFC again, asterisk has some functions to read incoming headers and add it to the outgoing invite, the main function is PJSIP_HEADER, I did not test it with Route header but you may try it.
Here is the docs regarding it.
Modifying the code to make it also look for Route Header should not be so hard.

I also recommend Asterisk to FreeSWITCH in regarding for codec specially AMR, as it deal better with AMR than FreeSWITCH and its more stable and can support EVS.
Please note that AMR/EVS support use external code not maintained from Asterisk, see here for AMR and here for EVS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants