2010/6/27 Geoffrey Mina geoffreymina@gmail.com:
Asterisk --> INVITE --> KAMAILIO --> (next_gw()/to_gw_grp("1")/force_send_socket() --> INVITE --> ITSP Asterisk --> BYE --> KAMAILIO --> (if(loose_route(){t_relay();}) -- BYE --> ITSP
How would I call the to_gw_grp("1") in this scenario? Would I just call it after calling loose_route(), but before calling t_relay()?
Yes, why not? an in-dialog request (as BYE) has a RURI pointing to the server address (the Contact URI of the 200 OK fot the initial INVITE).