<div dir="ltr"><div><div><div>I really want to use top hide using dialog module but having very difficult time..<br><br></div>[UA]------[Opensips]-----[Asterisk] <br><br></div>I want to hide UA so Asterisk doesn't know its IP. I have following config, Please correct me if anything wrong in my config, Problem is if callee whoever connected to asterisk hangup call it doesn't not know where to send BYE because of top hiding remove all return routes.. i am surprise how it is working with other folks? something must be wrong in my config then.. <br>
<br><br>if (loose_route() || match_dialog()) {<br>                        if ($DLG_status==NULL) {<br>                        xlog(" cannot match request to a dialog \n");<br>                        # something wrong - might want to drop such requests<br>
                        }<br><br>                        if (is_method("BYE") {<br>                                setflag(ACC_DO); # do accounting ...<br>                                setflag(ACC_FAILED); # ... even if the transaction fails<br>
                                acc_aaa_request("Internally generated BYE");<br>                                end_media_session();<br>                        } else if (is_method("INVITE")) {<br>                                # even if in most of the cases is useless, do RR for<br>
                                # re-INVITEs alos, as some buggy clients do change route set<br>                                # during the dialog.<br>                                 record_route();<br>                        }<br>
<br><br></div>....<br>....<br>if  ( uri=~"^sip:[0-9]*@.*") {<br>        uac_replace_from("sip:4545@65.xxx.xxx.xxx");<br>        t_on_failure("3");<br>        resetflag(7);<br>        topology_hiding();<br>
        t_relay( "udp:65.xxx.xxx.xxx" );<br><br><br><br><div><br><br></div></div>