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