Hello,
after some trying with SEMS and Blox as SBC, I changed my idea of SIP infrastructure from Kamailio (private) -SBC in DMZ (Private & Public) - www (Public) to Kamailio (private) - Kamailio with rtpproxy in DMZ (Private & Public) - www (Public). Now, my questions are: How can I connect 2 Kamailio SIP server together? Which modules I need? Is there somewhere a good howto?
Cheers,
Kai Ohnacker
On Thursday 25 June 2015 14:58:08 kai.ohnacker@cbc.de wrote:
Now, my questions are: How can I connect 2 Kamailio SIP server together? Which modules I need? Is there somewhere a good howto?
Just like you would do it with any other sip server. But what are you trying to do? It could be as simple as:
if($si!=ipofprivate) { $rd="domainofprivate"; }
on the dmz server to route all public to the private (and using the dmz as "pstn gateway" with the default config on the private machine).
Hello,
my starting idea was to create a SIP infrastructure with Kamailio as registrar and any SBC. The SBC should handle the NATing that Kamailio is reachable from outside. I try out the SEMS and Blox, but these solutions didn't work. Now, I'm running out of time and need an alternate solution for my task. One requirement is to locate the Kamailio server in the private network. If you have any better idea, pls give me feedback. :-)
I found the following howto:
http://kb.asipto.com/freeswitch:kamailio-3.3.x-freeswitch-1.2.x-sbc
Is it possible to integrate this example in Kamailio 4.2.0?
Cheers, Kai Ohnacker
-----Ursprüngliche Nachricht----- Von: sr-users [mailto:sr-users-bounces@lists.sip-router.org] Im Auftrag von Daniel Tryba Gesendet: Donnerstag, 25. Juni 2015 18:01 An: sr-users@lists.sip-router.org Betreff: Re: [SR-Users] interconnect 2 Kamailio server
On Thursday 25 June 2015 14:58:08 kai.ohnacker@cbc.de wrote:
Now, my questions are: How can I connect 2 Kamailio SIP server together? Which modules I need? Is there somewhere a good howto?
Just like you would do it with any other sip server. But what are you trying to do? It could be as simple as:
if($si!=ipofprivate) { $rd="domainofprivate"; }
on the dmz server to route all public to the private (and using the dmz as "pstn gateway" with the default config on the private machine).
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
On Friday 26 June 2015 07:51:55 kai.ohnacker@cbc.de wrote:
my starting idea was to create a SIP infrastructure with Kamailio as registrar and any SBC. The SBC should handle the NATing that Kamailio is reachable from outside. I try out the SEMS and Blox, but these solutions didn't work. Now, I'm running out of time and need an alternate solution for my task. One requirement is to locate the Kamailio server in the private network. If you have any better idea, pls give me feedback. :-)
I'm not going to do your homework/class assignment :)
I found the following howto:
http://kb.asipto.com/freeswitch:kamailio-3.3.x-freeswitch-1.2.x-sbc
Is it possible to integrate this example in Kamailio 4.2.0?
There is no real difference in using freeswitch or kamailio, apart from the capabilities that these servers have.
Kamailio as sbc in the middle just needs to pass external to internal and vice versa. You have to look into setups with forwarding between different interfaces, forcing the rtpproxy for all requests and forwaring everything that is not the private kamailio to this private kamailio (with sanitiy checks).
The private kamailio essentially has the config from above url with the dmz kamailio as pstn gateway.
You will lack capabilities as transcoding and voicemail that a freeswitch could do. So you may need to implement this (on/in the private server/network).
Hello Daniel Tryba,
thank you for the answer. I'm a beginner with Kamailio and it is not easy to understand the syntax from routing algorithm. I try to write a routing algorithm, but I'm not very fine with this. And also my search via google gives no good example. Perhaps you have a link for me to find a good solution? Or someone else? For the first answer of you, you gave me the following example to interconnect 2 kamailio server. if($si!=ipofprivate) { $rd="domainofprivate"; } At what point that needs to be inserted into the config file?
Cheers, Kai
-----Ursprüngliche Nachricht----- Von: sr-users [mailto:sr-users-bounces@lists.sip-router.org] Im Auftrag von Daniel Tryba Gesendet: Freitag, 26. Juni 2015 10:50 An: sr-users@lists.sip-router.org Betreff: Re: [SR-Users] interconnect 2 Kamailio server
On Friday 26 June 2015 07:51:55 kai.ohnacker@cbc.de wrote:
my starting idea was to create a SIP infrastructure with Kamailio as registrar and any SBC. The SBC should handle the NATing that Kamailio is reachable from outside. I try out the SEMS and Blox, but these solutions didn't work. Now, I'm running out of time and need an alternate solution for my task. One requirement is to locate the Kamailio server in the private network. If you have any better idea, pls give me feedback. :-)
I'm not going to do your homework/class assignment :)
I found the following howto:
http://kb.asipto.com/freeswitch:kamailio-3.3.x-freeswitch-1.2.x-sbc
Is it possible to integrate this example in Kamailio 4.2.0?
There is no real difference in using freeswitch or kamailio, apart from the capabilities that these servers have.
Kamailio as sbc in the middle just needs to pass external to internal and vice versa. You have to look into setups with forwarding between different interfaces, forcing the rtpproxy for all requests and forwaring everything that is not the private kamailio to this private kamailio (with sanitiy checks).
The private kamailio essentially has the config from above url with the dmz kamailio as pstn gateway.
You will lack capabilities as transcoding and voicemail that a freeswitch could do. So you may need to implement this (on/in the private server/network).
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
On Tuesday 30 June 2015 09:15:01 kai.ohnacker@cbc.de wrote:
thank you for the answer. I'm a beginner with Kamailio and it is not easy to understand the syntax from routing algorithm. I try to write a routing algorithm, but I'm not very fine with this. And also my search via google gives no good example. Perhaps you have a link for me to find a good solution? Or someone else?
The initial confusion about the inner workings of Kamailio are common, it didn't make any sense to me before I followed the advanced training. Still not always doesn't post training though ;)
For the first answer of you, you gave me the following example to interconnect 2 kamailio server. if($si!=ipofprivate) { $rd="domainofprivate"; } At what point that needs to be inserted into the config file?
These kinds of decision can be made in the request_route before relaying. Taking the basic config as starting point: https://github.com/kamailio/kamailio/blob/master/etc/kamailio-basic.cfg
If you change the request domain ($rd) before routing to SIPOUT (line 360), you can forward the incoming request not coming from the private kamailio always go to the private kamailio since the domain will not match any of the local domains: http://www.kamailio.org/wiki/cookbooks/4.2.x/core#myself