<div dir="ltr"><div>I'll look at the auth_db, as I'm not routing to any media-relay on simple calls between subscribers.<br></div>Only for voicemail and such do I route the calls to my FreeSWITCH.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 30, 2015 at 9:50 PM, Alexandru Covalschi <span dir="ltr"><<a href="mailto:568691@gmail.com" target="_blank">568691@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Or well, if you don't use any media-relay you just need <a href="http://kamailio.org/docs/modules/4.4.x/modules/auth_db.html#idp15567480" target="_blank">http://kamailio.org/docs/modules/4.4.x/modules/auth_db.html#idp15567480</a><br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2015-08-30 22:41 GMT+03:00 Alexandru Covalschi <span dir="ltr"><<a href="mailto:568691@gmail.com" target="_blank">568691@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>it depends on which PBX you use for media relay and which codes when no user available does it return. <br></div>What I'd suggest is to check if call is coming not from PSTN (if it comes from PSTN - it's for sure must be routed to PBX) and if TRUE, then first send call to PBX and if answer is not 180/183 200 etc. (you can catch that in a specific failure_route) route calls back to PSTN. <br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>2015-08-30 12:04 GMT+03:00 Michael Nielsen <span dir="ltr"><<a href="mailto:mic.niel84@gmail.com" target="_blank">mic.niel84@gmail.com</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">I have Kamailio running and connected to a PSTN gateway.<div><br></div><div>My subscribers are named ex. <a href="tel:%2B442071234567" value="+442071234567" target="_blank">+442071234567</a> - same as their real GSM number from my PSTN gateway.</div><div><br></div><div>I'm using the standard kamailio.cfg which ships with version 4.3.</div><div><br></div><div>When I'm trying to dial SIP client to SIP client I would like to have Kamailio route the call internally if a subscriber exists with ex. <a href="tel:%2B442071234567" value="+442071234567" target="_blank">+442071234567</a>.</div><div>If no subscriber exists with ex. <a href="tel:%2B442071234567" value="+442071234567" target="_blank">+442071234567</a> it should send it to my PSTN gateway.</div><div><br></div><div>As it is now it seems as if it are trying to both call "internally" and via the PSTN gateway.</div><div><br></div><div>How should one fix this issue the best way?</div></div>
<br></div></div>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><br>-- <br><div><div dir="ltr">Alexandru Covalschi<br>ABRISS-Solutions<div>VoIP engineer and system administrator<br>phone: <a href="tel:%2B37367398493" value="+37367398493" target="_blank">+37367398493</a><br>web: <a href="http://abs-telecom.com/" target="_blank">http://abs-telecom.com/</a></div></div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><div><div dir="ltr">Alexandru Covalschi<br>ABRISS-Solutions<div>VoIP engineer and system administrator<br>phone: <a href="tel:%2B37367398493" value="+37367398493" target="_blank">+37367398493</a><br>web: <a href="http://abs-telecom.com/" target="_blank">http://abs-telecom.com/</a></div></div></div>
</div>
</div></div><br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>