Hi, I'm very new to this list. In my setup I use openser as proxy an asterisk as pstn gateway. I want to implement a 'follow-me' service, i.e. I want users to dial a particular number and then they can enter a phone number where receive their incoming calls. So which is the best solution: use asterisk to perform a lookup in the DB and decide to which number route the call, ore use openser maybe with the 'exec_dset' command? Or there is a command that I'm missing that can implement this function?
Thanks in advance,
Cosimo
Cosimo Fadda wrote:
Hi, I'm very new to this list. In my setup I use openser as proxy an asterisk as pstn gateway. I want to implement a 'follow-me' service, i.e. I want users to dial a particular number and then they can enter a phone number where receive their incoming calls. So which is the best solution: use asterisk to perform a lookup in the DB and decide to which number route the call, ore use openser maybe with the 'exec_dset' command? Or there is a command that I'm missing that can implement this function?
Thanks in advance,
Cosimo
You probably want to use Asterisk or some other back-to-back user agent for this, because many PSTN gateways will not take kindly to having call legs looped back into them with the same corresponding IDs and tags that characterise the outgoing SIP leg to OpenSER built to broker the transaction.
Unless you use different PSTN gateways for inbound and outbound, of course. In that case, you can use OpenSER and just do a database lookup and rewrite the SIP destination URI with the new number.
Hello Cosimo,
I have successfully developed such Follow-Me systems with only using openser, not sure if my scenarios fits you so I will depict it bellow: 1. User sets his follow me number via a web interface, sms, email, ivr, etc (in case of ivrs you need to write your own module in one of the media servers - I prefer sems to do that). 2. User has assigned an incoming global number(DDI). 3. When the user receives a call to his global number, the call will hit openser. 4. Openser checks the ddi inside aliases (dbalias) and replace it with the number set on step 1. 5. Openser sends out the call to pstn gateway with the new number (or in any other location, even to mediaserver in case of voicemail or inband announcements).
An important point will be here setting up proper accounting (you cannot have control on external user so you can bill him for the second leg pstn call), therefore you need to use some tricks: 1. Replace the billing-party with the username called in step 3. 2. Use openser multi-accounting capability in order to get the second leg billing.
Hope the info helps.
With regards, DanB
On Feb 12, 2008 5:32 PM, Cosimo Fadda cosimo.fadda@klarya.it wrote:
Hi, I'm very new to this list. In my setup I use openser as proxy an asterisk as pstn gateway. I want to implement a 'follow-me' service, i.e. I want users to dial a particular number and then they can enter a phone number where receive their incoming calls. So which is the best solution: use asterisk to perform a lookup in the DB and decide to which number route the call, ore use openser maybe with the 'exec_dset' command? Or there is a command that I'm missing that can implement this function?
Thanks in advance,
Cosimo
*Ing. Cosimo Fadda System Engineer
Klarya s.r.l.*
Sede Operativa: Via Agnini 47 - 41037 Mirandola (MO)
Tel +39 0535 27325
Fax +39 0535 610050
Mob +39 3316907200
Sede Legale: Via Salgari, 17 - 41100 Modena
Tel +39 059 821332 Fax +39 059 821492
email: cosimo.fadda@klarya.it
web: www.klarya.it
**Open Source IP Communications* __________________________________________________
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users