Hello,
i need a "success_route" which does the same as "failure_route", but only for positiv 2xx reply. Is something like this available?
Background: i forward REGISTER to external registrar server, and only what to save the location on positiv reply to REGISTER. Without doing the authentication myself.
I tried to save the location in onreply_route, but then the contact of the external registrar server is saved. So i need a status check in the REQUEST_ROUTE.
Best Kristijan
Are you sure an onreply_route isn't what you need?
On October 2, 2017 6:33:31 AM EDT, Kristijan Vrban vrban.lkml@gmail.com wrote:
Hello,
i need a "success_route" which does the same as "failure_route", but only for positiv 2xx reply. Is something like this available?
Background: i forward REGISTER to external registrar server, and only what to save the location on positiv reply to REGISTER. Without doing the authentication myself.
I tried to save the location in onreply_route, but then the contact of the external registrar server is saved. So i need a status check in the REQUEST_ROUTE.
Best Kristijan
-- Alex
-- Sent via mobile, please forgive typos and brevity.
2017-10-02 13:14 GMT+02:00 Alex Balashov abalashov@evaristesys.com:
Are you sure an onreply_route isn't what you need?
Yes, it was obvious to try a "save("location", "0x02");" ("0x02" for save only location and keep going) in onreply_route. I tried it, and as said: then the location from the external registrar server is saved. Not the contact from the requesting UA.
On October 2, 2017 6:33:31 AM EDT, Kristijan Vrban vrban.lkml@gmail.com wrote:
Hello,
i need a "success_route" which does the same as "failure_route", but only for positiv 2xx reply. Is something like this available?
Background: i forward REGISTER to external registrar server, and only what to save the location on positiv reply to REGISTER. Without doing the authentication myself.
I tried to save the location in onreply_route, but then the contact of the external registrar server is saved. So i need a status check in the REQUEST_ROUTE.
Best Kristijan
-- Alex
-- Sent via mobile, please forgive typos and brevity.
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Store what you want in AVPs save that instead?
On October 2, 2017 8:05:05 AM EDT, Kristijan Vrban vrban.lkml@gmail.com wrote:
2017-10-02 13:14 GMT+02:00 Alex Balashov abalashov@evaristesys.com:
Are you sure an onreply_route isn't what you need?
Yes, it was obvious to try a "save("location", "0x02");" ("0x02" for save only location and keep going) in onreply_route. I tried it, and as said: then the location from the external registrar server is saved. Not the contact from the requesting UA.
On October 2, 2017 6:33:31 AM EDT, Kristijan Vrban
wrote:
Hello,
i need a "success_route" which does the same as "failure_route", but only for positiv 2xx reply. Is something like this available?
Background: i forward REGISTER to external registrar server, and
only
what to save the location on positiv reply to REGISTER. Without doing the authentication myself.
I tried to save the location in onreply_route, but then the contact
of
the external registrar server is saved. So i need a status check in the REQUEST_ROUTE.
Best Kristijan
-- Alex
-- Sent via mobile, please forgive typos and brevity.
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Alex
-- Sent via mobile, please forgive typos and brevity.
Check / try the flag to send no reply
On Mon, Oct 2, 2017 at 5:07 AM Alex Balashov abalashov@evaristesys.com wrote:
Store what you want in AVPs save that instead?
On October 2, 2017 8:05:05 AM EDT, Kristijan Vrban vrban.lkml@gmail.com wrote:
2017-10-02 13:14 GMT+02:00 Alex Balashov abalashov@evaristesys.com:
Are you sure an onreply_route isn't what you need?
Yes, it was obvious to try a "save("location", "0x02");" ("0x02" for save only location and keep going) in onreply_route. I tried it, and as said: then the location from the external registrar server is saved. Not the contact from the requesting UA.
On October 2, 2017 6:33:31 AM EDT, Kristijan Vrban
wrote:
Hello,
i need a "success_route" which does the same as "failure_route", but only for positiv 2xx reply. Is something like this available?
Background: i forward REGISTER to external registrar server, and
only
what to save the location on positiv reply to REGISTER. Without doing the authentication myself.
I tried to save the location in onreply_route, but then the contact
of
the external registrar server is saved. So i need a status check in the REQUEST_ROUTE.
Best Kristijan
-- Alex
-- Sent via mobile, please forgive typos and brevity.
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Alex
-- Sent via mobile, please forgive typos and brevity.
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Also t_check_status(“200”){
In onreply_route{
And handle there, looks like you have corrrct flag already
On Mon, Oct 2, 2017 at 10:08 AM Brandon Armstead brandon@cryy.com wrote:
Check / try the flag to send no reply
On Mon, Oct 2, 2017 at 5:07 AM Alex Balashov abalashov@evaristesys.com wrote:
Store what you want in AVPs save that instead?
On October 2, 2017 8:05:05 AM EDT, Kristijan Vrban vrban.lkml@gmail.com wrote:
2017-10-02 13:14 GMT+02:00 Alex Balashov abalashov@evaristesys.com:
Are you sure an onreply_route isn't what you need?
Yes, it was obvious to try a "save("location", "0x02");" ("0x02" for save only location and keep going) in onreply_route. I tried it, and as said: then the location from the external registrar server is saved. Not the contact from the requesting UA.
On October 2, 2017 6:33:31 AM EDT, Kristijan Vrban
wrote:
Hello,
i need a "success_route" which does the same as "failure_route", but only for positiv 2xx reply. Is something like this available?
Background: i forward REGISTER to external registrar server, and
only
what to save the location on positiv reply to REGISTER. Without doing the authentication myself.
I tried to save the location in onreply_route, but then the contact
of
the external registrar server is saved. So i need a status check in the REQUEST_ROUTE.
Best Kristijan
-- Alex
-- Sent via mobile, please forgive typos and brevity.
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Alex
-- Sent via mobile, please forgive typos and brevity.
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Sent from Gmail Mobile
Finaly found the solution. Was already discussed in 2013. See: https://lists.kamailio.org/pipermail/sr-users/2013-September/079765.html
Thanks for the input. Kristijan
2017-10-02 12:33 GMT+02:00 Kristijan Vrban vrban.lkml@gmail.com:
Hello,
i need a "success_route" which does the same as "failure_route", but only for positiv 2xx reply. Is something like this available?
Background: i forward REGISTER to external registrar server, and only what to save the location on positiv reply to REGISTER. Without doing the authentication myself.
I tried to save the location in onreply_route, but then the contact of the external registrar server is saved. So i need a status check in the REQUEST_ROUTE.
Best Kristijan