Sergio Charrua wrote:
> Why are you loading rtpengine module first :
>
> > # loadmodule for RTPENGINE
> > loadmodule "rtpengine.so"
> > and later on do this:
> > #!ifdef WITH_NAT
> > loadmodule "nathelper.so"
> > #!ifdef WITH_RTPENGINE
> > loadmodule "rtpengine.so"
> > #!else
> > loadmodule "rtpproxy.so"
> > #!endif
> > #!endif
>
> doesn't make much sense...
>
> Same here, though this is more consistent with WITH_NAT check above:
>
> > #!ifdef WITH_RTPENGINE
> > # ----- rtpengine params -----
> > modparam("rtpengine", "rtpengine_sock",
> > "udp:127.0.0.1:2223")
> > #!else
> > # ----- rtpproxy params -----
> > modparam("rtpproxy", "rtpproxy_sock",
> > "udp:127.0.0.1:7722")
> > #!endif
>
> but the following line is also unnecessary:
>
> # RTENGINE MODULE
>
> modparam("rtpengine", "rtpengine_sock",
> "udp:localhost:2223")
>
>
> > On :
> if (is_method("INVITE")) {
>
> setflag(FLT_ACC); # do accounting
> > }
>
>
>
> You should add in T_RELAY route (for example) a call to rtpengine_delete,
> to free up RTP ports once the call is cancelled or terminated
>
> if(is_method("BYE|CANCEL")) { #
> if(check_route_param("proxy_media=yes")) {
> rtpengine_delete(); xlog("L_INFO", " RTPEngine Delete from BYE|CANCEL
> message in route(RELAY)!"); # } }
>
> Add in failure_route a call to rtpengine_delete() call, to free up RTP
> ports once the call is cancelled or terminated
>
> You should also set the advertising IP address (the public IP address?? the
> VPN IP address?? not sure...)
>
> Also, the script seems too complex for your needs. Do you need REGISTER? do
> you need route PRESENCE? and route LOCATION?
>
>
>
> *Sérgio Charrua*
>
> *www.voip.pt <http://www.voip.pt/>*
> Tel.: +351 <callto:+351+91+104+12+66>91 631 11 44
>
> Email : *sergio.charrua(a)voip.pt <sergio.charrua(a)voip.pt>*
>
> This message and any files or documents attached are strictly confidential
> or otherwise legally protected.
>
> It is intended only for the individual or entity named. If you are not the
> named addressee or have received this email in error, please inform the
> sender immediately, delete it from your system and do not copy or disclose
> it or its contents or use it for any purpose. Please also note that
> transmission cannot be guaranteed to be secure or error-free.
>
>
>
>
>
>
>
>
> On Wed, May 1, 2024 at 8:49 AM christian.marinelli--- via sr-users <
> sr-users(a)lists.kamailio.org> wrote:
>
> > Sergio Charrua wrote:
> > > Please share your kamailio.cfg file, if possible. Do not forget to hide
> > any
> > > username & password that may be specified in it (i.e. db connection)
> > > > >
> > > > *Sérgio Charrua*
> > > > > *www.voip.pt
> <http://www.voip.pt/>*
> > > Tel.: +351 <callto:+351+91+104+12+66>91 631 11 44
> > > > > Email : *sergio.charrua(a)voip.pt
> <sergio.charrua(a)voip.pt>*
> > > > > This message and any files or
> documents attached are strictly
> > confidential
> > > or otherwise legally protected.
> > > > > It is intended only for the individual
> or entity named. If you are not
> > the
> > > named addressee or have received this email in error, please inform the
> > > sender immediately, delete it from your system and do not copy or
> > disclose
> > > it or its contents or use it for any purpose. Please also note that
> > > transmission cannot be guaranteed to be secure or error-free.
> > > > >
> > > > > > > >
> > > > > > > >
> > > > On Tue, Apr 30, 2024 at 8:47 PM christian.marinelli--- via sr-users <
> > > sr-users(a)lists.kamailio.org> wrote:
> > > > > > Benoit Panizzon wrote:
> > > > Hi Christian
> > > > > > >
> this is interesting but when i install the
> > > > package all
> > > > start automatically.
> > > > How can i disable this function (compilation for kernel module)?
> > > > Maybe i need to install a different packege? To disalbe kernel
> > module usage:
> > > > > > >
> rtpengine.conf
> > > > > > > ###
> for userspace forwarding only:
> > > > table = -1
> > > > > > > > > > Mit freundlichen Grüssen
> > > > > > >
> -Benoît Panizzon-
> > > > Hi @Benoit Panizzon and @Sergio Charrua,
> > > > i set up rtpengine on my SIP server and i configured it with the
> > guide you
> > > > suggested to me:
> > > > > > > >
> https://nickvsnetworking.com/kamailio-bytes-rtp-media-proxying-with-rtpengi
> > …
> > > > > > >
> Unfortunatly, there is no voice during the calls :)
> > > > This is the pcap file during the call with rtpengine configured, if
> > it can
> > > > help you:
> > > > > > > >
> https://drive.google.com/file/d/1VQVrd8w5UicAsjl095MkwN5gNUcdjfI6/view?usp=
> > …
> > > > > > > To
> make the test, i use two devices (two smartphone) connected to
> > internet
> > > > via mobile network (not in the same LAN) and as i can saw from the
> > pcap
> > > > file, it seems they want to comunicate with different ports from the
> > > > standard 5060 (i opened the 5060 on my router).
> > > > This could be the problem?
> > > > Thanks a lot in advance
> > > > Christian
> > > > __________________________________________________________
> > > > Kamailio - Users Mailing List - Non Commercial Discussions
> > > > To unsubscribe send an email to sr-users-leave(a)lists.kamailio.org
> > > > Important: keep the mailing list in the recipients, do not reply only
> > to
> > > > the sender!
> > > > Edit mailing list options or unsubscribe:
> > > > > > Hi @Sergio Charrua,
> > this is my kamailio.cfg configuration file:
> > >
> https://docs.google.com/document/d/1HH9Gn8f_31nDhvbpprwKFs535z65C995nVqels7…
> > If you will need other informations, ask me without problems...
> > Thank you so much
> > Christian
> > __________________________________________________________
> > Kamailio - Users Mailing List - Non Commercial Discussions
> > To unsubscribe send an email to sr-users-leave(a)lists.kamailio.org
> > Important: keep the mailing list in the recipients, do not reply only to
> > the sender!
> > Edit mailing list options or unsubscribe:
> >
Hi @Sergio Charrua,
i followed the guide at this link:
https://nickvsnetworking.com/kamailio-bytes-rtp-media-proxying-with-rtpengine/
i tought it was all i need for my problem, i added the rtpengine loadmodule
because i didn't see it was present.
I can remove it and the modparam instruction for rtpengine since it's already
there.
In the link above, it suggested to modify the onreply_route[MANAGE_REPLY] and
the route[RELAY] functions by adding the rtpengine_manage() call, do you think
it's wrong?
You suggested me to add a call to rtpengine_delete function on BYE|CANCEL but,
where i need to add the SIP server IP ("the advertising IP address")?
Thanks in adavnce
Christian
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the
sender!
Edit mailing list options or unsubscribe: