[SR-Users] sip forward with manipulations

Daniel-Constantin Mierla miconda at gmail.com
Mon May 25 10:10:07 CEST 2020


Hello,

what do you mean with:

"Both SIP trunks are IP registration only"

Does it mean that you do not know the IPs upfront (they are not static
values, they can change)? So the trunk sends REGISTER requests in order
to let the proxy know where to send traffic to it?

If you know the IP addresses upfront, then dispatcher should help (like
the others recommended).

Use ds_select_domain() to pick up round-robin sip-server2x, then use
script operations to add the number in front of domain $rd and then to
update the user part $rU

If it is the case with registrations, then let us know and we can
provide hints how to solve that one as well.

Cheers,
Daniel

On 23.05.20 23:33, christian (cx labs) wrote:
> Hi,
>
> I'm trying to set up a Kamailio server as a proxy to forward SIP
> messages between two trunks, where I manipulate only the INVITE in the
> following manner:
>
> incoming call:
> INVITEĀ +4969123456 at server1
>
> outgoing call:
> round robin to
> INVITE user at 4969123456-sip-server2a
> INVITE user at 4969123456-sip-server2b
> INVITE user at 4969123456-sip-server2c
>
> Can anyone point me in the right direction? Both SIP trunks are IP
> registration only. Also, I am aware how strange this is, but the
> upstream service has decided to interpret SIP in a novel way.
>
> Cheers,
> Chris
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Funding: https://www.paypal.me/dcmierla

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200525/eed851a1/attachment.html>


More information about the sr-users mailing list