Hey!
I'm testing the logic below, for now, it looks very promising.
It seems like there is access to dialog variables.
/*
SIP-UA (Snom) <--> Kamailio (w/o topos) <--> FreeSWITCH
SIP-UA (Yealink) <--> Kamailio (with topos) <--> FreeSWITCH
2 - execute event_route[topos:msg-sending]
8 - execute event_route[topos:msg-receiving]
*/
modparam("topos", "event_mode", 10)
request_route {
...
if ( is_method("INVITE") && !has_totag() && $ua =~ "snom" ) {
$dlg_var(no_topos) = "true";
}
...
}
event_route[topos:msg-receiving] {
if ( $dlg_var(no_topos) == "true" ) {
drop;
}
}
event_route[topos:msg-sending] {
if ( $dlg_var(no_topos) == "true" ) {
drop;
}
}
пт, 6 сент. 2024 г. в 09:08, Benoît Panizzon via sr-users <
[email protected]>:
> Hey!
>
> > I'm still trying to figure out how to implement an exception from
> > topos processing for a specific type of SIP device (IP is not fixed)
> > based on User-Agent.
> > If anyone has any ideas, I'd appreciate some help!
>
> I have been in the same situation. I have a registrar that handles UAs
> and has a connection to our core routing instance. It also handles call
> forwarding.
>
> So when a call is directed to a registered UAs I want to engage topos,
> but when the UAs times out or is unreachable and CFW is engaged
> (sending the call back to the core to route to the CFW destination), I
> wanted to revert engaged topos.
>
> => I found no way to do that. Further more, if the call is looped back
> from the core to another customer on the same registrar, topos is
> getting confused and breaks.
>
> If you find a solution, I would be very happy to hear how you solved
> reverting topos for a specific ip or for specific situations after it
> was engaged.
>
> --
> Mit freundlichen Grüssen
>
> -Benoît Panizzon- @ HomeOffice und normal erreichbar
> --
> I m p r o W a r e A G - Leiter Commerce Kunden
> ______________________________________________________
>
> Zurlindenstrasse 29 Tel +41 61 826 93 00
> CH-4133 Pratteln Fax +41 61 826 93 01
> Schweiz Web http://www.imp.ch
> ______________________________________________________
> __________________________________________________________
> 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:
>
--
BR,
Denys Pozniak
__________________________________________________________
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: