[SR-Users] Problem implementing Outbound Proxy

Christoph Russow russow at emtex.de
Fri Nov 26 11:12:33 CET 2021


hi,

thats what i did on our application servers (freeswitch gateway config). 
kamailio routes the calls as wanted but the carrier rejects it (see pcap 
file in first email).

best regards
christoph

Am 26.11.21 um 10:56 schrieb Benedito Marques:
> I solve this problem in Asterisk putting the outbound_proxy parameter in 
> pjsip.conf.
> 
> outbound_proxy = sip:<kamailio_ip:5060>
> 
> On Tue, Nov 23, 2021, 11:32 AM Christoph Russow <russow at emtex.de 
> <mailto:russow at emtex.de>> wrote:
> 
>     Hi all,
> 
>     im currently trying to add a Outbound Proxying to our system which
>     right
>     now does inbound loadbalancing for our application servers.
> 
>     Current:
>     Inbound SIP Trunk -> Kamailio -> dispatcher -> ApplicationServer 1..n
> 
>     i now want to add the ability for our internal Application Servers to
>     terminate their outbound calls through the kamailio system.
> 
>     currently i've setup a gateway in the (freeswitch) application server
>     that has the kamailio system set as outbound-proxy. this leads to sip
>     calls started with
> 
>     originate sofia/gateway/kamailio/<number>@<outbound carrier IP>
> 
>     to be sent to the kamailio system which then forwards it to the given
>     carrier IP. Sadly our main carrier answers with "503 service
>     unavailable
>     - no bandwith available". (maybe due to the internal ip-addresses
>     within
>     some of the headers?)
> 
>     i've attached our current kamailio configuration and also a pcap of a
>     call i tried to start with our main carrier.
> 
>     i tried this way as it seemed to be the easiest way so our application
>     servers still can select the outbound carrier within their flow.
> 
>     maybe i'm on the wrong way here and need to solve this problem in a
>     completely different way i don't know.
> 
>     TLDR: sip proxying does not work as expected. need a way to achieve
>     outbound calls routed through kamailio from internal application servers
> 
>     any hint/help into the right direction is appreciated
> 
>     Best Regards
>     Christoph Russow
> 
>     -- 
>     ________________________________________________________________
> 
>     EMTEX GmbH
>     Christoph Russow
>     Software Engineer
> 
>     Bischof-Otto-Weg 9
>     D-91086 Aurachtal
>                                  Geschäftsführer:       Markus Enzinger
>     Tel. +49 9132 7490 0      Sitz der Gesellschaft: 91086 Aurachtal
>     Fax. +49 9132 7490 900    Amtsgericht Fürth:     HRB6804
>     __________________________________________________________________________________________________________________________
>     Kamailio - Users Mailing List - Non Commercial Discussions
>        * sr-users at lists.kamailio.org <mailto:sr-users at lists.kamailio.org>
>     Important: keep the mailing list in the recipients, do not reply
>     only to the sender!
>     Edit mailing list options or unsubscribe:
>        * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>     <https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users>
> 
> 
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions
>    * sr-users at lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the sender!
> Edit mailing list options or unsubscribe:
>    * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> 

-- 
________________________________________________________________

EMTEX GmbH
Christoph Russow
Software Engineer

Bischof-Otto-Weg 9
D-91086 Aurachtal
                           Geschäftsführer:       Markus Enzinger
Tel. +49 9132 7490 0      Sitz der Gesellschaft: 91086 Aurachtal
Fax. +49 9132 7490 900    Amtsgericht Fürth:     HRB6804
________________________________________________________________



More information about the sr-users mailing list