<div id="geary-body" dir="auto"><div>Hello Everyone,</div><div>Which way will be correct to replace From with alias.</div><div><br></div><div>Code </div><div><br></div><div><div> # Check valid DID is present</div><div> alias_db_find("dbaliases", $fu, $avp(from_alias), "r");</div><div> xlog("Found DID ~> $avp(from_alias)\r");</div><div> if($avp(from_alias)) {</div><div> uac_replace_from( , $avp(from_alias));</div><div> } else {</div><div> sl_send_reply(404, "Assigned did is required\n\r");</div><div> exit;</div><div> }</div></div><div><br></div><div>I see in log</div><div><br></div><div><div>Nov 13 01:13:18 dev1-fr /usr/sbin/opensips[5217]: Found DID ~>
sip:4384783197@dev-sip.networklab.tld</div><div>Nov 13 01:13:18 dev1-fr /usr/sbin/opensips[5217]: DBG:uac:w_replace_from: dsp=(nil) (len=0) , uri=0x7ffde612a6c0 (len=37)</div><div>Nov 13 01:13:18 dev1-fr /usr/sbin/opensips[5217]: DBG:uac:replace_uri: uri to replace [sip:452390@dev-sip.networklab.tld], replacement is [sip:4384783197@dev-sip.networklab.tld], enclosed=0</div><div>Nov 13 01:13:18 dev1-fr /usr/sbin/opensips[5217]: DBG:uac:replace_uri: encode is=<AAAAAAAGCgcOCHNVXEFtFwwGAx0MBFkBFx8bDhBFGA0GLnRsZA--> len=52</div><div>Nov 13 01:13:18 dev1-fr /usr/sbin/opensips[5217]: DBG:rr:add_rr_param: adding (;vsf=AAAAAAAGCgcOCHNVXEFtFwwGAx0MBFkBFx8bDhBFGA0GLnRsZA--)</div></div><div><br></div><div><div>But original from still in place </div><div><br></div><div><div>Nov 13 01:13:18 dev1-fr /usr/sbin/opensips[5217]: DBG:proto_smpp:send_submit_or_deliver_request: sending submit_sm</div><div>Nov 13 01:13:18 dev1-fr /usr/sbin/opensips[5217]: DBG:proto_smpp:send_submit_or_del
iver_request: <b>FROM: 452390</b></div><div>Nov 13 01:13:18 dev1-fr /usr/sbin/opensips[5217]: DBG:proto_smpp:send_submit_or_deliver_request: TO: destination number</div><div>Nov 13 01:13:18 dev1-fr /usr/sbin/opensips[5217]: DBG:proto_smpp:send_submit_or_deliver_request: MESSAGE: Hello type = 65537</div></div></div><div><br></div><div>Any help thank you.</div><div><br></div><div>volga629</div></div>