[Serusers] call forwarding and *21
sip
sip at arcdiv.com
Wed Nov 16 16:53:25 CET 2005
THAT'S not too bad.
Basically, what they dial will be the RURI.
So if they dial *21*1*5551212 your SIP RURI becomes sip:*21*1*5551212 at your.server
All you'd need is a check for the URI and then strip out the unnecessary bits
and use something like an AVPop to store the db info... something like:
(note, I'm just tossing stuff out for an idea... this syntax may be completely
wrong)
if(uri =~ "^sip:\*21\*1")
{
strip(6);
avp_write("$ruri","i:19");
....
avp_db_store("$from/username", "i:19/usr_preferences");
};
Or some such (as I say, I'm playing loose and fast with syntax here)...
N.
On Wed, 16 Nov 2005 17:30:16 +0200, Kyriakos Mavromichalis wrote
> Hi,
> actually I was thinking that users would press *21*1*number to
> forward to , number would be stored to database. For disabling it
> could be something like *21*2 , which in that case , the record in
> db with the call forwarding option for the user who sent the message
> would be deleted. The problem is how do i write and delete in the
> usr_preferences table from the ser.cfg file? Of course the users
> will also have the option of enabling call forwarding from a web
> interface but adding this its much more practical.
>
> K.
>
> On Wednesday 16 November 2005 16:47, you wrote:
> > If you do a search on the list, I THINK I posted a way to do call
> > forwarding (the way I was doing it anyway)... there are likely other ways.
> > How are you going to take input for the forwarding, though?
> >
> > Will they dial *21 and it will forward to something they've predefined on a
> > website somewhere? Will they dial *21 and then the number to which they
> > want to forward? How do you turn it off? Etc, etc.
> >
> > N.
> >
> >
> > On Wed, 16 Nov 2005 16:44:15 +0200, Kyriakos Mavromichalis wrote
> >
> > > Can someone point me to any resources on how to implement services
> > > like callforwarding by pressing *21 through the users' UA?
> > > Basically I need my users to be able to activate different services
> > > via the phone's keys.
> > >
> > > thank you
> > > --
> > > Kyriakos Mavromichalis
> > > Otenet Telecom
> > >
> > > _______________________________________________
> > > Serusers mailing list
> > > serusers at lists.iptel.org
> > > http://lists.iptel.org/mailman/listinfo/serusers
>
> --
> Kyriakos Mavromichalis
> Otenet Telecom
More information about the sr-users
mailing list