Hi
In the usr_prefrences table for callfwd I need to be able to write sip addresses and pstn numbers.
Problemis when I callforward using
if (avp_db_load("$ruri/username", "s:callfwd")) {
avp_pushto("$ruri/username", "s:callfwd"); append_branch(); route(11); break; };
we get success if the pstn number is entered as 12124234@sip.domain and the sip address is entered as iqbal@sip.domain
However when I look at the Contact header it displays
Contact: sip:12124234@sip.domain@sip.domain, sip:12124234@sip.domain@sip.domain.
But the calls goes through, similaryly if the forward is to a sip address I get
Contact: sip:iqbal@sip.domain@sip.domain, sip:iqbal@sip.domain@sip.domain.
Agai with a successful call....now this doesnt seem write even though it works.
If I replace
avp_pushto("$ruri/username", "s:callfwd");
with
avp_pushto("$ruri", "s:callfwd");
then the sip.domain part does not display, and the call fails.
I need to store all values with the domain, since I might need to relay a call to a different domain eg fwd..
Whats the best way of doing this...
Iqbal