Re: [SR-Users] Mysql

2018-11-09 Thread Henning Westerholt
Am Donnerstag, 8. November 2018, 18:42:27 CET schrieb Nicolas Breuer:
> Still the same error ☹
> 
> Nov  8 12:41:30 proxy1 /usr/sbin/kamailio[16889]: WARNING: db_mysql
> [km_res.c:142]: db_mysql_get_columns():
> unhandled data type column
> (Msg_text) type id (250), use DB1_STRING as default 
> [..]

Hello Nicolas,

so it seems that the method call is still returning a value which Kamailio did 
not properly understand. Two ideas:

- enable debugging in Kamailio to get more information about the warning
- look with e.g. wireshark on the line what is actually returned from mysql

Best regards,

Henning


-- 
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://skalatan.de/services
Kamailio security assessment - https://skalatan.de/de/assessment

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] high availability and load balancing

2018-11-09 Thread Mojtaba
Hi,
The concept of HA in IMS is a little different in non-IMS network.
In each node of CSCF in IMS, you could do HA separately.
For example in PCSCF, you could use DNS load balancer to select one of
your PCSCF.  Actually the UE just see one domain as PCSCF, while you
may have more than one PCSCF in your network.
In each PCSCF, you could use dispatcher module to load balance all
Registration traffics between ICSCF nodes.  All initiate traffices
(like Invite message and etc) route to specific SCSCF via
service-route header.
In Registration message in ICSCF nodes, you could use HA to load
balance traffics between SCSCF in LIR Diameter message. For example in
LIA Diameter, you could sent a name of SCSCF thet has lower traffics.
finally the HA in IMS is doning some procedure, not only one or two task.
With Regards. Mojtaba Esfandiari.S
On Fri, Nov 9, 2018 at 11:23 PM Kjeld Flarup
 wrote:
>
> Hi Eyas
>
>
> A typical HA setup has two kamailio proxies with identical setup.
>
> Use keepalived or similar to give the proxies a shared IP.
>
> Because of the shared IP, all traffic will go to one proxy only.
>
> Thus each of the proxies must be able to handle all traffic, mening the 
> functionality must be very simple - no media handling.
>
> Then use the dispatcher module to do load balancing.
>
>
>
>
>  Med Liberalistiske Hilsner --
>Civilingeniør, Kjeld Flarup - Mit sind er mere åbent end min tegnebog
>Sofienlundvej 6B, 7560 Hjerm, Tlf: 40 29 41 49
>Den ikke akademiske hjemmeside for liberalismen - www.liberalismen.dk
>
> On 11/9/18 5:09 PM, eyas barhouk wrote:
>
> hello dears,
>
> i'm using kamailio 5.1 as IMS , and i have the following servers:
>
> p-cscf
> i-cscf-1 ,icscf-2
> s-cscf-1,scscf-2
>
> i need to do high availability and load balancing between my servers , but i 
> have some questions like do i have to use keepalived or dispatcher module and 
> what the benefits of each one of them ,and on load balancing method should i 
> do it for the register requests or only for invite requests or just for every 
> thing ??
> if any one has an idea or any thing to guide me i will be thankful
>
> thanks in advance and regards
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users



-- 
--Mojtaba Esfandiari.S

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] from Asterisk to Kamailio

2018-11-09 Thread Valter Nogueira
Today, I use Asterisk as a SIP/RTP PROXY

I proxy from customers Asterisks to a VOIP provider, in a multi-homed
server.

Now, I want to move to Kamailio without any rupture in customer's
configuration.

As anyone can imagine I am kind of lost.

USER ACCOUNTS

In Asterisk, I create a dynamic host account named ACCOUNT1 and I receive
in *FROM HEADER sip:ACCOUNT1@customer_ip_address*

In Kamailio, I have to define the account's domain like *kamctl add
accou...@mydomain.com  password. *Kamailio just
accepts a REGISTER/INVITE from *accou...@mydomain.com
*


SIP/RTP PROXY

In Asterisk, I just dialout to the VOIP PROVIDER like *dial
(SIP/VOIP_ACCOUNT/${EXTENSION})*

Asterisk does all the magic (it is a B2BUA). It bridges the new call and
media to the original call. Moreover, user don't know anything about how
call are completed, nor how credentials are setup and soon.

In Kamailio, I guess that I have to use nat, tm and rtpproxy modules and
maybe uac. I am not sure how to setup it.


Can someone send me a clue?


Thank you,

Valter
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] high availability and load balancing

2018-11-09 Thread Kjeld Flarup

Hi Eyas


A typical HA setup has two kamailio proxies with identical setup.

Use keepalived or similar to give the proxies a shared IP.

Because of the shared IP, all traffic will go to one proxy only.

Thus each of the proxies must be able to handle all traffic, mening the 
functionality must be very simple - no media handling.


Then use the dispatcher module to do load balancing.




 Med Liberalistiske Hilsner --
   Civilingeniør, Kjeld Flarup - Mit sind er mere åbent end min tegnebog
   Sofienlundvej 6B, 7560 Hjerm, Tlf: 40 29 41 49
   Den ikke akademiske hjemmeside for liberalismen - www.liberalismen.dk

On 11/9/18 5:09 PM, eyas barhouk wrote:

hello dears,

i'm using kamailio 5.1 as IMS , and i have the following servers:

  * p-cscf
  * i-cscf-1 ,icscf-2
  * s-cscf-1,scscf-2

i need to do high availability and load balancing between my servers , 
but i have some questions like do i have to use keepalived or 
dispatcher module and what the benefits of each one of them ,and on 
load balancing method should i do it for the register requests or only 
for invite requests or just for every thing ??

if any one has an idea or any thing to guide me i will be thankful

thanks in advance and regards

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] high availability and load balancing

2018-11-09 Thread eyas barhouk
hello dears,

i'm using kamailio 5.1 as IMS , and i have the following servers:

  *   p-cscf
  *   i-cscf-1 ,icscf-2
  *   s-cscf-1,scscf-2

i need to do high availability and load balancing between my servers , but i 
have some questions like do i have to use keepalived or dispatcher module and 
what the benefits of each one of them ,and on load balancing method should i do 
it for the register requests or only for invite requests or just for every 
thing ??
if any one has an idea or any thing to guide me i will be thankful

thanks in advance and regards
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Client Registration and Call over Kamailio

2018-11-09 Thread serkan celik
Hello,
Olle,

I have tried to add PATH header on Kamailio just before sending Register
request but that did not work. Actually Resgistration became succefull but
when I try to make call IMS sent 403 (Not found  You must register first
with a SCSCF)

Yasin,

I could not get what you suggest? during which phase should I change $rU?.


On Fri, Nov 9, 2018 at 4:26 PM YAS0 CANER  wrote:

> Hello,
>
> Pcscf adds a path header for s-cscf. So s-csxf can return directly p-cscf.
>
> After saving on p-cscf , u can manipulate r-uri address and then t relay.
> So nothing gonna be changed but r-uri.
>
> $ru =“sip:”+$rU+”pcscf.com:4060”
> t_relay()
>
> Did you try it?
>
> Yasin Caner
>
> iPhone’umdan gönderildi
>
> Olle E. Johansson  şunları yazdı (9 Kas 2018 18:06):
>
> You may want to look at using the Path header so that the IMS platform -
> if it supports it - routes calls back through Kamailio. If so, you can
> forward registrations as you do.
>
> I don’t really know much about IMS; so see this as a guess. Kamailio
> supports using the path header.
>
> /O
>
> On 9 Nov 2018, at 16:03, serkan celik  wrote:
>
> Hi Caner,
> Thanks for the answer but actually what you suggested is not what I looked
> for. I 'd rather considering to register Kamailio to the IMS with the helps
> of some modules. I tried to use UAC module to send a new registration to
> IMS but it did not work as I expected
>
> On Fri, Nov 9, 2018 at 3:07 PM YAS0 CANER  wrote:
>
>> Hello ,
>> I think you need a proxy kamailio in front of ims because u try to make
>> more p-cscf. So it make it hard to solve problems an scenario . In my
>> opinion, you can use f5\netscaler or similiar app.
>>
>> Good luck
>>
>> Yasin Caner
>>
>>
>> serkan celik  şunları yazdı (9 Kas 2018 16:30):
>>
>> > Hi all,
>> >
>> > I am using Kamailio as a proxy in front of a 3rd part Open IMS (Not IMS
>> modules in kamailio).
>> > I have defined Kamailio as an outbound proxy in Soft clients(I have
>> configured IMS users info in Soft Clients). When I send register from
>> client to IMS, Register message is sent to IMS over Kamailio. Kamailio
>> forwards this received Register to the 3rd party IMS. Finally the client is
>> registered into IMS over Kamailio. However when I try to make a call from
>> registered users (both registered over Kamailio), IMS sends 403 Forbidden -
>> "Not Registered! You must register first with a S-CSCF" to Kamailio.
>> > When I debugged the issue I found the reason why IMS sends 403. When
>> IMS receives an Invite message from Kamailio it checks whether source IP
>> which Invite is sent registered or not. As I make registration over
>> Kamailio without changing contact header, IMS registers the user with the
>> contact IP (which is the client IP).
>> > So to make a call from Soft client (IMS users) over Kamailio I also
>> need to register Kamailio source IP as well.To deal with the issue I have
>> changed the contact address of Register message coming from Soft client
>> with Kamailio IP  on Kamailio. Then IMS registered Kamailio IP as a contact
>> when registering IMS user. But this time when I make a call from Soft
>> client  over Kamailio, IMS sends Termination Invite to Kamailio. So to
>> finalize the call Kamailio has to route this termination Invite to the
>> terminating IMS user .
>> > Is there any better approach to overcome this issue. Which is the
>> better approach to use Kamailio in front of IMS. I want to both register
>> and make a call from Soft clients over Kamailio to the IMS.
>> >
>> > Regards,
>> > Serkan CELIK
>> > ___
>> > Kamailio (SER) - Users Mailing List
>> > sr-users@lists.kamailio.org
>> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Client Registration and Call over Kamailio

2018-11-09 Thread YAS0 CANER
Hello,

Pcscf adds a path header for s-cscf. So s-csxf can return directly p-cscf.

After saving on p-cscf , u can manipulate r-uri address and then t relay. So 
nothing gonna be changed but r-uri.

$ru =“sip:”+$rU+”pcscf.com:4060”
t_relay()

Did you try it?

Yasin Caner

iPhone’umdan gönderildi

Olle E. Johansson mailto:o...@edvina.net>> şunları yazdı (9 
Kas 2018 18:06):

You may want to look at using the Path header so that the IMS platform - if it 
supports it - routes calls back through Kamailio. If so, you can forward 
registrations as you do.

I don’t really know much about IMS; so see this as a guess. Kamailio supports 
using the path header.

/O

On 9 Nov 2018, at 16:03, serkan celik 
mailto:srkance...@gmail.com>> wrote:

Hi Caner,
Thanks for the answer but actually what you suggested is not what I looked for. 
I 'd rather considering to register Kamailio to the IMS with the helps of some 
modules. I tried to use UAC module to send a new registration to IMS but it did 
not work as I expected

On Fri, Nov 9, 2018 at 3:07 PM YAS0 CANER 
mailto:caner_y...@hotmail.com>> wrote:
Hello ,
I think you need a proxy kamailio in front of ims because u try to make more 
p-cscf. So it make it hard to solve problems an scenario . In my opinion, you 
can use f5\netscaler or similiar app.

Good luck

Yasin Caner


serkan celik mailto:srkance...@gmail.com>> şunları yazdı 
(9 Kas 2018 16:30):

> Hi all,
>
> I am using Kamailio as a proxy in front of a 3rd part Open IMS (Not IMS 
> modules in kamailio).
> I have defined Kamailio as an outbound proxy in Soft clients(I have 
> configured IMS users info in Soft Clients). When I send register from client 
> to IMS, Register message is sent to IMS over Kamailio. Kamailio forwards this 
> received Register to the 3rd party IMS. Finally the client is registered into 
> IMS over Kamailio. However when I try to make a call from registered users 
> (both registered over Kamailio), IMS sends 403 Forbidden - "Not Registered! 
> You must register first with a S-CSCF" to Kamailio.
> When I debugged the issue I found the reason why IMS sends 403. When IMS 
> receives an Invite message from Kamailio it checks whether source IP which 
> Invite is sent registered or not. As I make registration over Kamailio 
> without changing contact header, IMS registers the user with the contact IP 
> (which is the client IP).
> So to make a call from Soft client (IMS users) over Kamailio I also need to 
> register Kamailio source IP as well.To deal with the issue I have changed the 
> contact address of Register message coming from Soft client with Kamailio IP  
> on Kamailio. Then IMS registered Kamailio IP as a contact when registering 
> IMS user. But this time when I make a call from Soft client  over Kamailio, 
> IMS sends Termination Invite to Kamailio. So to finalize the call Kamailio 
> has to route this termination Invite to the terminating IMS user .
> Is there any better approach to overcome this issue. Which is the better 
> approach to use Kamailio in front of IMS. I want to both register and make a 
> call from Soft clients over Kamailio to the IMS.
>
> Regards,
> Serkan CELIK
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Client Registration and Call over Kamailio

2018-11-09 Thread Olle E. Johansson
You may want to look at using the Path header so that the IMS platform - if it 
supports it - routes calls back through Kamailio. If so, you can forward 
registrations as you do.

I don’t really know much about IMS; so see this as a guess. Kamailio supports 
using the path header.

/O

> On 9 Nov 2018, at 16:03, serkan celik  wrote:
> 
> Hi Caner,
> Thanks for the answer but actually what you suggested is not what I looked 
> for. I 'd rather considering to register Kamailio to the IMS with the helps 
> of some modules. I tried to use UAC module to send a new registration to IMS 
> but it did not work as I expected
> 
> On Fri, Nov 9, 2018 at 3:07 PM YAS0 CANER  > wrote:
> Hello ,
> I think you need a proxy kamailio in front of ims because u try to make more 
> p-cscf. So it make it hard to solve problems an scenario . In my opinion, you 
> can use f5\netscaler or similiar app. 
> 
> Good luck
> 
> Yasin Caner
> 
> 
> serkan celik mailto:srkance...@gmail.com>> şunları 
> yazdı (9 Kas 2018 16:30):
> 
> > Hi all,
> > 
> > I am using Kamailio as a proxy in front of a 3rd part Open IMS (Not IMS 
> > modules in kamailio).
> > I have defined Kamailio as an outbound proxy in Soft clients(I have 
> > configured IMS users info in Soft Clients). When I send register from 
> > client to IMS, Register message is sent to IMS over Kamailio. Kamailio 
> > forwards this received Register to the 3rd party IMS. Finally the client is 
> > registered into IMS over Kamailio. However when I try to make a call from 
> > registered users (both registered over Kamailio), IMS sends 403 Forbidden - 
> > "Not Registered! You must register first with a S-CSCF" to Kamailio.
> > When I debugged the issue I found the reason why IMS sends 403. When IMS 
> > receives an Invite message from Kamailio it checks whether source IP which 
> > Invite is sent registered or not. As I make registration over Kamailio 
> > without changing contact header, IMS registers the user with the contact IP 
> > (which is the client IP). 
> > So to make a call from Soft client (IMS users) over Kamailio I also need to 
> > register Kamailio source IP as well.To deal with the issue I have changed 
> > the contact address of Register message coming from Soft client with 
> > Kamailio IP  on Kamailio. Then IMS registered Kamailio IP as a contact when 
> > registering IMS user. But this time when I make a call from Soft client  
> > over Kamailio, IMS sends Termination Invite to Kamailio. So to finalize the 
> > call Kamailio has to route this termination Invite to the terminating IMS 
> > user .
> > Is there any better approach to overcome this issue. Which is the better 
> > approach to use Kamailio in front of IMS. I want to both register and make 
> > a call from Soft clients over Kamailio to the IMS.
> > 
> > Regards,
> > Serkan CELIK
> > ___
> > Kamailio (SER) - Users Mailing List
> > sr-users@lists.kamailio.org 
> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users 
> > 
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org 
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users 
> 
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Client Registration and Call over Kamailio

2018-11-09 Thread serkan celik
Hi Caner,
Thanks for the answer but actually what you suggested is not what I looked
for. I 'd rather considering to register Kamailio to the IMS with the helps
of some modules. I tried to use UAC module to send a new registration to
IMS but it did not work as I expected

On Fri, Nov 9, 2018 at 3:07 PM YAS0 CANER  wrote:

> Hello ,
> I think you need a proxy kamailio in front of ims because u try to make
> more p-cscf. So it make it hard to solve problems an scenario . In my
> opinion, you can use f5\netscaler or similiar app.
>
> Good luck
>
> Yasin Caner
>
>
> serkan celik  şunları yazdı (9 Kas 2018 16:30):
>
> > Hi all,
> >
> > I am using Kamailio as a proxy in front of a 3rd part Open IMS (Not IMS
> modules in kamailio).
> > I have defined Kamailio as an outbound proxy in Soft clients(I have
> configured IMS users info in Soft Clients). When I send register from
> client to IMS, Register message is sent to IMS over Kamailio. Kamailio
> forwards this received Register to the 3rd party IMS. Finally the client is
> registered into IMS over Kamailio. However when I try to make a call from
> registered users (both registered over Kamailio), IMS sends 403 Forbidden -
> "Not Registered! You must register first with a S-CSCF" to Kamailio.
> > When I debugged the issue I found the reason why IMS sends 403. When IMS
> receives an Invite message from Kamailio it checks whether source IP which
> Invite is sent registered or not. As I make registration over Kamailio
> without changing contact header, IMS registers the user with the contact IP
> (which is the client IP).
> > So to make a call from Soft client (IMS users) over Kamailio I also need
> to register Kamailio source IP as well.To deal with the issue I have
> changed the contact address of Register message coming from Soft client
> with Kamailio IP  on Kamailio. Then IMS registered Kamailio IP as a contact
> when registering IMS user. But this time when I make a call from Soft
> client  over Kamailio, IMS sends Termination Invite to Kamailio. So to
> finalize the call Kamailio has to route this termination Invite to the
> terminating IMS user .
> > Is there any better approach to overcome this issue. Which is the better
> approach to use Kamailio in front of IMS. I want to both register and make
> a call from Soft clients over Kamailio to the IMS.
> >
> > Regards,
> > Serkan CELIK
> > ___
> > Kamailio (SER) - Users Mailing List
> > sr-users@lists.kamailio.org
> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Client Registration and Call over Kamailio

2018-11-09 Thread YAS0 CANER
Hello ,
I think you need a proxy kamailio in front of ims because u try to make more 
p-cscf. So it make it hard to solve problems an scenario . In my opinion, you 
can use f5\netscaler or similiar app. 

Good luck

Yasin Caner


serkan celik  şunları yazdı (9 Kas 2018 16:30):

> Hi all,
> 
> I am using Kamailio as a proxy in front of a 3rd part Open IMS (Not IMS 
> modules in kamailio).
> I have defined Kamailio as an outbound proxy in Soft clients(I have 
> configured IMS users info in Soft Clients). When I send register from client 
> to IMS, Register message is sent to IMS over Kamailio. Kamailio forwards this 
> received Register to the 3rd party IMS. Finally the client is registered into 
> IMS over Kamailio. However when I try to make a call from registered users 
> (both registered over Kamailio), IMS sends 403 Forbidden - "Not Registered! 
> You must register first with a S-CSCF" to Kamailio.
> When I debugged the issue I found the reason why IMS sends 403. When IMS 
> receives an Invite message from Kamailio it checks whether source IP which 
> Invite is sent registered or not. As I make registration over Kamailio 
> without changing contact header, IMS registers the user with the contact IP 
> (which is the client IP). 
> So to make a call from Soft client (IMS users) over Kamailio I also need to 
> register Kamailio source IP as well.To deal with the issue I have changed the 
> contact address of Register message coming from Soft client with Kamailio IP  
> on Kamailio. Then IMS registered Kamailio IP as a contact when registering 
> IMS user. But this time when I make a call from Soft client  over Kamailio, 
> IMS sends Termination Invite to Kamailio. So to finalize the call Kamailio 
> has to route this termination Invite to the terminating IMS user .
> Is there any better approach to overcome this issue. Which is the better 
> approach to use Kamailio in front of IMS. I want to both register and make a 
> call from Soft clients over Kamailio to the IMS.
> 
> Regards,
> Serkan CELIK
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Client Registration and Call over Kamailio

2018-11-09 Thread serkan celik
Hi all,

I am using Kamailio as a proxy in front of a 3rd part Open IMS (Not IMS
modules in kamailio).
I have defined Kamailio as an outbound proxy in Soft clients(I have
configured IMS users info in Soft Clients). When I send register from
client to IMS, Register message is sent to IMS over Kamailio. Kamailio
forwards this received Register to the 3rd party IMS. Finally the client is
registered into IMS over Kamailio. However when I try to make a call from
registered users (both registered over Kamailio), IMS sends 403 Forbidden -
"Not Registered! You must register first with a S-CSCF" to Kamailio.
When I debugged the issue I found the reason why IMS sends 403. When IMS
receives an Invite message from Kamailio it checks whether source IP which
Invite is sent registered or not. As I make registration over Kamailio
without changing contact header, IMS registers the user with the contact IP
(which is the client IP).
So to make a call from Soft client (IMS users) over Kamailio I also need to
register Kamailio source IP as well.To deal with the issue I have changed
the contact address of Register message coming from Soft client with
Kamailio IP  on Kamailio. Then IMS registered Kamailio IP as a contact when
registering IMS user. But this time when I make a call from Soft client
over Kamailio, IMS sends Termination Invite to Kamailio. So to finalize the
call Kamailio has to route this termination Invite to the terminating IMS
user .
Is there any better approach to overcome this issue. Which is the better
approach to use Kamailio in front of IMS. I want to both register and make
a call from Soft clients over Kamailio to the IMS.

Regards,
Serkan CELIK
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users