Morning Daniel:

Thank you very much for your response!
As for the routing explanation, I am afraid, I couldn't narrate the issue.  I 
rephrase it, here below:

1: By default Kamailio listens on all interfaces (implying that it has 
knowledge of all interfaces and corresponding subnets, please correct me if 
wrong.
2: A packet arriving at say 10.10.10.1/8 will be processed by the corresponding 
module....
3: A packet destined for 192.168..1.15/24 (say our PSTN GW/ MGC) how will it be 
routed? Wil it be sent on all interfaces wlan0 (above) and eth0 with same 
subnet as eth0 or  only sent out via eth0?

Thanks again!

KR,

Zaka
________________________________________
From: sr-users-boun...@lists.sip-router.org 
[sr-users-boun...@lists.sip-router.org] on behalf of Daniel-Constantin Mierla 
[mico...@gmail.com]
Sent: Monday, September 29, 2014 9:36 AM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] Kamailio -PSTN Gateway

Hello,

On 24/09/14 08:44, Zaka Ul Isam wrote:
> Hello Folks:
>
> Please help with above, I have browsed and tried various suggestions on this 
> list without much luck!
>
> I think problem can be reduced to three questions ;)
>
> 1: Apart from DEFINE WITH PSTN directive, do I need certain modules to be 
> compiled?  (DIALPLAN, CARRIERROUTE, LCR aso) If yes, then we ought to put up 
> a list of modules required for each task/ activity.....
if you have only a pstn gateway, it is not necessary to add extra modules.

If you have more, makes sense to get lcr or an alternative, the right
place with be to replace some of the content in route PSTN with
functions from the new module.
>
> 2: How Kamailio core decides the call routing? i.e: based on dialed digits as 
> specified in dialplan .
>
> # - update the condition to match your dialing rules for PSTN routing
>          if(!($rU=~"^(\+|00355)[0][4-9]{3,20}$"))
>                  return;
Yes, in the case of default config file, but you can change that as
needed by you. Default config file was made mainly to give an example of
routing to PSTN, but can be update to match your rules for sending to PSTN.
>
> &&
>
> #!ifdef WITH_PSTN
> # PSTN GW Routing
> #
> # - pstn.gw_ip: valid IP or hostname as string value, example:
> # pstn.gw_ip = "10.0.0.101" desc "My PSTN GW Address"
> #
> # - by default is empty to avoid misrouting
> pstn.gw_ip = "10.1.6" desc "PSTN GW Address"
> pstn.gw_port = "5080" desc "PSTN GW Port"
> #!endif
>
>
> 3: If Kamailio is listening on say wlan0 interface 10.42.0.1:5060 (Ubuntu HOT 
> SPOT) can it route to PSTN Gateway/ Softswitch on P2P1 (Eth0) without 
> Bridging? Put another way, does kernel route towards the specified interface 
> or Kamailio is capable of routing based on active routing cache?
This is a matter of your routing rules in kernel. Also, if you do
natting there, the PSTN gateway must be able to do nat traversal for rtp.

Cheers,
Daniel

--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

________________________________

Albtelecom & Eagle Mobile ju ftojnë të mbrojmë së bashku Mjedisin. Lutemi të 
mos e printoni këtë komunikim elektronik nëse nuk është me të vërtetë i 
nevojshëm.

Albtelecom & Eagle Mobile invite you to protect together the Environment. 
Please do not print this e-mail unless really necessary.

________________________________

This e-mail and any files transmitted with it are confidential and intended 
solely for the use of the addressee/s. If you are not the intended recipient 
you are hereby notified that any dissemination, forwarding, copying or use of 
any of the information is strictly prohibited. If you receive this e-mail in 
error, please notify the sender immediately and delete it! Albtelecom makes no 
warranty as to the accuracy or completeness of any information contained in 
this message and hereby excludes any liability of any kind for the information 
contained therein or for the information transmission, reception, storage or 
use of such in any way whatsoever. The opinions expressed in this message may 
belong to sender alone and may not necessarily reflect the opinions of 
Albtelecom. Albtelecom shall bear no liability for any loss or damage caused by 
software or e-mail viruses.

Ky mesazh dhe çdo informacion i transmetuar në përmbajtje te këtij mesazhi 
është konfidencial dhe është i destinuar vetëm për marrësin e destinuar. Nëse 
nuk jeni marrësi i destinuar, Ju bëjmë me dije se çdo përhapje, transmetim, 
kopjim apo përdorim i çdo informacioni është i ndaluar. Nëse e merrni këtë 
mesazh gabimisht, ju lutem kontaktoni urgjentisht nisësin e tij dhe fshijeni 
atë. Albtelecom nuk jep asnjë garanci për saktësinë apo plotësinë e 
informacionit në përmbajtje të këtij mesazhi dhe nuk mban asnjë përgjegjësi për 
informacionin e përmbajtur, transmetimin, marrjen, ruajtjen apo përdorimin e 
tij në çfarëdolloj mënyre. Mendimet e shprehura në këtë mesazh mund t'i 
përkasin vetë nisësit dhe nuk mund të reflektojnë domosdoshmërisht qëndrimet e 
Albtelecom. Albtelecom nuk do të mbaje asnjë përgjegjësi për humbje ose dëme te 
shkaktuara nga programet apo viruset.

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to