<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Ciao Mauro,<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>first, you can manipulate messages from WeSIP itselft before you send them out. Once they are sent out you can manipulate them in OpenSIPs script if you configure WeSIP to work in spiral mode. When working in spiral mode outgoing messages from WeSIP loop through OpenSIPs script in a new transaction before leaving. You can recognize them, and work accordingly if you look for the particular a header that is added by WeSIP. The header is X-WeSIP-SPIRAL</div><div><br></div><div>NON-SPIRAL-MODE (Default)</div><div><br></div><div>Origin [OpenSIPS WeSIP] Destination</div><div> | ----t1----->| ----------->|------t2-----> </div><div> <span class="Apple-tab-span" style="white-space:pre">                        </span>Internal</div><div><span class="Apple-tab-span" style="white-space:pre">                </span> Delivery</div><div><span class="Apple-tab-span" style="white-space:pre">        </span></div><div><br></div><div>SPIRAL-MODE</div><div><br></div><div>Origin<span class="Apple-tab-span" style="white-space:pre">        </span>[OpenSIPS WeSIP] OpenSIPS Destination</div><div> | ----t1-----> | ----------->|-----------t2------->| ----t3---> | </div><div> <span class="Apple-tab-span" style="white-space:pre">                        </span> Internal X-WeSIP-Spiral </div><div><span class="Apple-tab-span" style="white-space:pre">                </span> Delivery </div><div><span class="Apple-tab-span" style="white-space:pre">                        </span><br></div><div>More on this kind of configuration at <a href="http://www.wesip.com/mediawiki/index.php/Configuration#com.voztele.javax.sip.SPIRAL_HDR">http://www.wesip.com/mediawiki/index.php/Configuration#com.voztele.javax.sip.SPIRAL_HDR</a></div><div><br></div><div>Hope that helps</div><div><br></div><div>Regards</div><div><br></div><div>Ginés</div><div><br></div><div><br></div><div><div><br class="Apple-interchange-newline"><blockquote type="cite"><div lang="IT" link="blue" vlink="purple"><div class="Section1"><div style="margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; margin-top: 0cm; margin-bottom: 0.0001pt; "><font size="2" face="Arial"><span lang="EN-GB" style="font-size: 10pt; font-family: Arial; ">Hi All,<o:p></o:p></span></font></div><div style="margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; margin-top: 0cm; margin-bottom: 0.0001pt; "><font size="2" face="Arial"><span lang="EN-GB" style="font-size: 10pt; font-family: Arial; "><o:p> </o:p></span></font></div><div style="margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; margin-top: 0cm; margin-bottom: 0.0001pt; "><font size="2" face="Arial"><span lang="EN-GB" style="font-size: 10pt; font-family: Arial; ">I’m setting up the Click2Dial wesip application, and I’m trying to use it.<o:p></o:p></span></font></div><div style="margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; margin-top: 0cm; margin-bottom: 0.0001pt; "><font size="2" face="Arial"><span lang="EN-GB" style="font-size: 10pt; font-family: Arial; "><o:p> </o:p></span></font></div><div style="margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; margin-top: 0cm; margin-bottom: 0.0001pt; "><font size="2" face="Arial"><span lang="EN-GB" style="font-size: 10pt; font-family: Arial; ">When I start the call in the opensips script I need to manipulate it.<o:p></o:p></span></font></div><div style="margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; margin-top: 0cm; margin-bottom: 0.0001pt; "><font size="2" face="Arial"><span lang="EN-GB" style="font-size: 10pt; font-family: Arial; "><o:p> </o:p></span></font></div><div style="margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; margin-top: 0cm; margin-bottom: 0.0001pt; "><font size="2" face="Arial"><span lang="EN-GB" style="font-size: 10pt; font-family: Arial; ">So in the local_route branch I try to see if the To party is an alias but I can’t use alias_db_lookup function in the local_route branch…<o:p></o:p></span></font></div><div style="margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; margin-top: 0cm; margin-bottom: 0.0001pt; "><font size="2" face="Arial"><span lang="EN-GB" style="font-size: 10pt; font-family: Arial; "><o:p> </o:p></span></font></div><div style="margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; margin-top: 0cm; margin-bottom: 0.0001pt; "><font size="2" face="Arial"><span lang="EN-GB" style="font-size: 10pt; font-family: Arial; ">Is this correct? How I can manipulate the messages generated by wesip ?<o:p></o:p></span></font></div><div style="margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; margin-top: 0cm; margin-bottom: 0.0001pt; "><font size="2" face="Arial"><span lang="EN-GB" style="font-size: 10pt; font-family: Arial; "><o:p> </o:p></span></font></div><div style="margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; margin-top: 0cm; margin-bottom: 0.0001pt; "><font size="2" face="Arial"><span lang="EN-GB" style="font-size: 10pt; font-family: Arial; ">Thanks in advance<o:p></o:p></span></font></div><div style="margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; margin-top: 0cm; margin-bottom: 0.0001pt; "><font size="2" face="Arial"><span lang="EN-GB" style="font-size: 10pt; font-family: Arial; "> MD<o:p></o:p></span></font></div></div>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org" style="color: blue; text-decoration: underline; ">Users@lists.opensips.org</a><br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" style="color: blue; text-decoration: underline; ">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br></div></blockquote></div><br></div></body></html>