<div dir="ltr"><div>Hi...</div><div><br></div><div>I have integrated Asterisk with Teams using Kamailio like SBC, thanks this list..</div><div><br></div><div>I can make call from Teams to Asterisk throught Kamailio, I have not Callerid from Teams but I'm working in this..</div><div><br></div><div>The problem that I have is call from Asterisk to Teams..</div><div><br></div><div>So, I have configurated a PSTN in Kamailio to my Asterisk. In Kamailio.cfg I have:</div><div><br></div><div>* PSTN GW Routing<br> *<br> * - pstn.gw_ip: valid IP or hostname as string value, example:<br> * pstn.gw_ip = "10.0.0.101" desc "My PSTN GW Address"<br> *<br> * - by default is empty to avoid misrouting */<br>pstn.gw_ip = "IP ASERISK" desc "PSTN GW Address"<br>pstn.gw_port = "PORT ASTERISK" desc "PSTN GW Port"</div><div><br></div><div>In request_route, when I received an INVITE, I have:</div><div><br></div><div>if (is_method("INVITE|SUBSCRIBE")) {<br>                if(src_ip==IP ASTERISK) {<br>                        record_route_preset("centralita.arcanos.es:5061;transport=$<br>                        add_rr_param(";r2=on");<br>                } else {<br>                        route(PSTN);<br>                }<br>        }</div><div><br></div><div>So, If I received an INVITE from a src_ip!=IP ASTERISK, I route to PSTN and call to my Asterisk(works, without callerid, but works). I don't know if there are any best way to do that..<br></div><div><br></div><div>If I received an INVITE from a src_ip==IP ASTERISK, I set record_route_preset, but how can I send the call to Teams?</div><div><br></div><div>What is wrong? What are I doing wrong?</div><div><br></div><div>Thanks<br></div></div>