Antonio Reale writes:
Scenario 2: local user --> local user --> PSTN
(call forwarding)
Apr 22 17:46:23 sipsvr1 /usr/sbin/kamailio[10623]: gw_uri_avp before
load_gws: '<null>'
Apr 22 17:46:23 sipsvr1 /usr/sbin/kamailio[10623]: ruri_user_avp
before load_gws: '<null>'
Apr 22 17:46:23 sipsvr1 /usr/sbin/kamailio[10623]: gw_uri_avp before
next_gw: '0sip:|0@10.10.45.228:5060;transport=udp'
Apr 22 17:46:23 sipsvr1 /usr/sbin/kamailio[10623]: ruri_user_avp
before next_gw: '<null>'
Apr 22 17:46:23 sipsvr1 /usr/sbin/kamailio[10623]: ERROR:lcr:next_gw:
No ruri_user AVP
antonio,
i read 1.4 code and saw that request uri user is saved to ruri_user_avp
only if next_gw() is called from request route. so if you call it from
failure_route, it will not be saved, which could explain the above
error.
so if you do local user -> local user -> pstn forwarding, you need to
either route the request back to your proxy and then to pstn, or you
need to call next_gw() in route block before you enter failure route
even when the request is not yet going to a local user.
in 1.5 the implementation is different in that it is possible to call
load_gws() and next_gw() also first time in failure route.
-- juha