<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><base href="x-msg://1164/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>17 jan 2013 kl. 18:07 skrev "Scott, Matt" &lt;<a href="mailto:mscott@homeadvisor.com">mscott@homeadvisor.com</a>&gt;:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div lang="EN-US" link="blue" vlink="purple" style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="Section1" style="page: Section1; "><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 9pt; font-family: Verdana, sans-serif; ">Pstn-&gt;Kamailio-&gt;dispatcher-&gt;asterisk<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 9pt; font-family: Verdana, sans-serif; ">&nbsp;</span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 9pt; font-family: Verdana, sans-serif; ">&nbsp;</span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 9pt; font-family: Verdana, sans-serif; ">When calls come in, they are sent to asterisk, and the peer is negotiated as Kamailio.<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 9pt; font-family: Verdana, sans-serif; ">How can I have different peer settings, for example dtmf?</span></div></div></div></blockquote>I have an Asterisk branch that separates peers beyond the proxy (pinetree-1.4) based on the via received headers.</div><div>I have it in production for Asterisk 1.4 in multiple places, but don't know the current state in relationship to</div><div>latest source code.</div><div><br><blockquote type="cite"><div lang="EN-US" link="blue" vlink="purple" style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="Section1" style="page: Section1; "><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 9pt; font-family: Verdana, sans-serif; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 9pt; font-family: Verdana, sans-serif; ">&nbsp;</span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 9pt; font-family: Verdana, sans-serif; ">I’m thinking I want the call to come in, then when the invite is sent to asterisk, the invite should be from the pstn-peer and not Kamailio, make sense?<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 9pt; font-family: Verdana, sans-serif; ">Then I can have separate peers, with their own dtmf/audio settings, but I see the invite as:</span></div></div></div></blockquote><div><br></div>Remember that Asterisk first match incoming calls on users with the FROM header. You can separate based on the From header. But for PSTN, that doesn't really help...</div><div><br></div><div>If you have a limited set of profiles you can add port numbers to Asterisk peers, like have a peer on port 5060 and another on the kamailio IP on 5065. Have kamailio open both sockets and use force_socket to send from the proper one.</div><div><br></div><div>/O</div><div><br><blockquote type="cite"><div lang="EN-US" link="blue" vlink="purple" style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="Section1" style="page: Section1; "><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 9pt; font-family: Verdana, sans-serif; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 9pt; font-family: Verdana, sans-serif; ">&nbsp;</span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 9pt; font-family: Verdana, sans-serif; ">INVITE<span class="Apple-converted-space">&nbsp;</span><a href="sip:+1866NXXNXXX@%3ckamailio" style="color: purple; text-decoration: underline; ">sip:+1866NXXNXXX@&lt;kamailio</a><span class="Apple-converted-space">&nbsp;</span>ip&gt;:5060 SIP/2.0<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 9pt; font-family: Verdana, sans-serif; ">Via: SIP/2.0/UDP &lt;Kamailio ip&gt;;branch=z9hG4bKc087.12db3c91.0<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 9pt; font-family: Verdana, sans-serif; ">Via: SIP/2.0/UDP &lt;pstn-peer ip&gt;:5060;branch=z9hG4bK0cB824c55100a4f2b8b<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 9pt; font-family: Verdana, sans-serif; ">From: &lt;sip:+1NXXNXXXXXXXX@&lt;pstn-peer ip&gt;:5060;isup-oli=0&gt;;tag=gK0c731df8<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 9pt; font-family: Verdana, sans-serif; ">To: &lt;sip:+1NXXNXXNXXX@&lt;kamailio ip&gt;:5060&gt;<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 9pt; font-family: Verdana, sans-serif; ">Call-ID: 1024240378_131584110@&lt;pstn-peer ip&gt;<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 9pt; font-family: Verdana, sans-serif; ">&nbsp;</span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 9pt; font-family: Verdana, sans-serif; ">Any help or suggestions are very welcome..<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 9pt; font-family: Verdana, sans-serif; ">&nbsp;</span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 9pt; font-family: Verdana, sans-serif; ">&nbsp;</span></div><table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0"><tbody><tr><td style="padding: 0in; "><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><b><span style="font-size: 8.5pt; font-family: Helvetica, sans-serif; color: rgb(51, 51, 51); ">Matt Scott</span></b><b><span style="font-size: 8.5pt; font-family: Helvetica, sans-serif; color: rgb(51, 51, 51); "><o:p></o:p></span></b></div></td></tr><tr><td style="padding: 0in; "></td></tr><tr><td style="padding: 15pt 0in 3.75pt; "></td></tr><tr style="height: 1.5pt; "><td style="background-color: rgb(153, 153, 153); padding: 0in; height: 1.5pt; background-position: initial initial; background-repeat: initial initial; "></td></tr><tr><td style="padding: 0in; "></td></tr><tr><td style="padding: 3.75pt 0in 0in; "></td></tr></tbody></table><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><o:p>&nbsp;</o:p></div></div>_______________________________________________<br>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br><a href="mailto:sr-users@lists.sip-router.org" style="color: purple; text-decoration: underline; ">sr-users@lists.sip-router.org</a><br><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" style="color: purple; text-decoration: underline; ">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br></div></blockquote></div><br></body></html>