[OpenSER-Users] Preserve the original number with alias_db_lookup

Morten Isaksen misak at misak.dk
Thu Mar 13 22:01:33 CET 2008


On Thu, Mar 13, 2008 at 8:26 AM, Alex <alex at speakup.nl> wrote:
> On Wednesday 12 March 2008, Morten Isaksen wrote:
> > I have a PBX that has registered 111 at xxx with my OpenSER. I want to>
> attach 222 at xxx and 333 at xxx to that registration and alias_db_lookup
> > does that fine.
> >
> > If a call comes to 111 the sip header looks like this
> >
> > INVITE 111 at xxx ....
> > To: 111 <111 at xxx> ...
> >
> > And everything works fine.
> >
> > But if a call comes to 222 the sip header looks like this:
> >
> > INVITE 111 at xxx ....
> > To: 222 <222 at xxx> ...
> >
> > But now the PBX thinks that the call is for 111 and not 222.
>
> You can save the $rU in an avp before the lookup and restore it afterwards.
> This is assuming that the pbx will accept any $rU thrown at it (Asterisk
> will).

Thanks. It is working now.


-- 
Morten Isaksen
http://www.misak.dk/blog/




More information about the Users mailing list