Re: [SR-Users] Using PSTN as "fallback"

2015-09-09 Thread Daniel-Constantin Mierla
On 01/09/15 10:00, Michael Nielsen wrote: > I've added this to my kamailio.cfg (the original which comes with the > Debian package of Kamailio 4.2): > > - > > # dispatch destinations to PSTN if not a subscriber > > if (!is_subscriber("$ru", "subscriber", "3")) { > >

Re: [SR-Users] Using PSTN as "fallback"

2015-09-01 Thread Michael Nielsen
I've added this to my kamailio.cfg (the original which comes with the Debian package of Kamailio 4.2): - # dispatch destinations to PSTN if not a subscriber if (!is_subscriber("$ru", "subscriber", "3")) { route(PSTN); } # user location serv

Re: [SR-Users] Using PSTN as "fallback"

2015-08-30 Thread Michael Nielsen
I'll look at the auth_db, as I'm not routing to any media-relay on simple calls between subscribers. Only for voicemail and such do I route the calls to my FreeSWITCH. On Sun, Aug 30, 2015 at 9:50 PM, Alexandru Covalschi <568...@gmail.com> wrote: > Or well, if you don't use any media-relay you ju

Re: [SR-Users] Using PSTN as "fallback"

2015-08-30 Thread Alexandru Covalschi
it depends on which PBX you use for media relay and which codes when no user available does it return. 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