Re: [SR-Users] Method Destination Variable
That is perfect. Thanks a lot. 2018-08-01 17:09 GMT+01:00 Duarte Rocha : > Greetings, > > I thought about that but i wasn't sure it would be safe. But, in this > case, the Request-URI domain will be the only place where Kamailio will > look to find out the destination right within the dialog right? I'm going > the statelless way, so that might be the correct answer. > > Thanks for your help > ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Method Destination Variable
Hello, the rule behind next hop address: if $dd is set, then it is the address of the next hop. If $dd is not set, then it is $rd. But there is a dedicated variable so you do not need to do the IFs for above, just use $nh(d). Cheers, Daniel On Wed, Aug 1, 2018 at 6:09 PM, Duarte Rocha wrote: > Greetings, > > I thought about that but i wasn't sure it would be safe. But, in this > case, the Request-URI domain will be the only place where Kamailio will > look to find out the destination right within the dialog right? I'm going > the statelless way, so that might be the correct answer. > > Thanks for your help > > ___ > Kamailio (SER) - Users Mailing List > sr-users@lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > > -- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Method Destination Variable
Greetings, I thought about that but i wasn't sure it would be safe. But, in this case, the Request-URI domain will be the only place where Kamailio will look to find out the destination right within the dialog right? I'm going the statelless way, so that might be the correct answer. Thanks for your help ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Method Destination Variable
Have you tried $rd? On Wed, Aug 01, 2018 at 04:28:38PM +0100, Duarte Rocha wrote: > Greetings, > > I have a Kamailio server set up without Registers. I'm using Dispatcher > module for balancing and selecting the destinations. I need to do some > changes in the message according to the chosen destination. If it's the > first INVITE, after Dispatcher operations, i can do it using $dd or $du > variables. However, in later messages, like a BYE, i can't seem to access > the method's destination IP. > > Is there any variable that i'm missing? I've tried $route_uri but it only > returns the kamailio's own IP, since it's the only IP in the "Route" header. > > Thanks in advance, > > Cheers > ___ > Kamailio (SER) - Users Mailing List > sr-users@lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users -- Alex Balashov | Principal | Evariste Systems LLC Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/ ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
[SR-Users] Method Destination Variable
Greetings, I have a Kamailio server set up without Registers. I'm using Dispatcher module for balancing and selecting the destinations. I need to do some changes in the message according to the chosen destination. If it's the first INVITE, after Dispatcher operations, i can do it using $dd or $du variables. However, in later messages, like a BYE, i can't seem to access the method's destination IP. Is there any variable that i'm missing? I've tried $route_uri but it only returns the kamailio's own IP, since it's the only IP in the "Route" header. Thanks in advance, Cheers ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users