[Users] Hijack 'Move Temporarily'

Howard Tang howard615 at gmail.com
Mon Jan 29 12:09:52 CET 2007


Hi Sam,

I am not sure, but this may be useful

 uac_replace_from ();

Regards,
Howard


On 1/29/07, Sam Lee <sam.lee at super.net.sg> wrote:
> Sad thing is , I do the billing via the PSTN gateway.
> So I definitely have to make the subscriber show up on the
> callingpartynumber.
> Any way of manipulating the calling party number ?
>
> -----Original Message-----
> From: Howard Tang [mailto:howard615 at gmail.com]
> Sent: Monday, January 29, 2007 5:16 PM
> To: Sam Lee
> Cc: Atle Samuelsen; users at openser.org
> Subject: Re: [Users] Hijack 'Move Temporarily'
>
> Hi Sam
>
> I have similar setup , you need muilt call leg accounting in order to do
> proper billing.
>
> Regards,
> Howard
>
>
> On 1/29/07, Sam Lee <sam.lee at super.net.sg> wrote:
> > Hey Guys,
> >
> > Will I be able to manipulate the FROM header inside the failure route
> ?
> > I tried to use UAC_replace_from() but seems like there's an error.
> >
> > Yes, the call forwarding is causing problem. Now it appears as though
> > the initial caller (PSTN) called the final called party (PSTN) and I
> > can't bill the subscriber !
> >
> > Regards,
> > Sam
> >
> > -----Original Message-----
> > From: Atle Samuelsen [mailto:clona at cyberhouse.no]
> > Sent: Monday, January 29, 2007 3:00 PM
> > To: Sam Lee
> > Cc: Carsten Bock; users at openser.org
> > Subject: Re: [Users] Hijack 'Move Temporarily'
> >
> > Did you do a append_branch();
> >
> > -atle
> >
> > * Sam Lee <sam.lee at super.net.sg> [070129 04:57]:
> > > Hey Carsten,
> > >
> > > Thanks for the info.
> > > The example you've provided shows t_relay , which will generate a
> > > INVITE and relays it back to the UA.
> > > How do I get it to relay to the gateway I wanted ?
> > > I've tried rewritehostport("x.x.x.x:5060") before t_relay but
> > > doesn't help.
> > >
> > > Any clue ?
> > >
> > > Regards,
> > > Sam
> > >
> > > -----Original Message-----
> > > From: Carsten Bock [mailto:lists at bock.info]
> > > Sent: Friday, January 26, 2007 5:35 PM
> > > To: Sam Lee
> > > Cc: users at openser.org
> > > Subject: Re: [Users] Hijack 'Move Temporarily'
> > >
> > > Hi Sam,
> > >
> > > Take a look at the uac_redirect-Module. This does exactly, what you
> > > want to.
> > > Here are the docs:
> > > http://openser.org/docs/modules/1.1.x/uac_redirect.html
> > >
> > > In the routing-logic, you just have to define the following
> > > failure-route:
> > >
> > > failure_route[1] {
> > >       if (t_check_status("3[0-9][0-9]")) {
> > >               get_redirects("*");
> > >               t_relay();
> > >               exit;
> > >       }
> > > }
> > >
> > > An of course, in the route to the forwarder a "t_on_failure("1");".
> > >
> > > Carsten
> > >
> > > Am Freitag, den 26.01.2007, 12:02 +0800 schrieb Sam Lee:
> > > > Hey Guys,
> > > >
> > > > Normally if the SIP-UA is call-forwarded to a different number ,
> > > > it will send a 'Move Temporarily' to the proxy , which in turn
> > > > relay this
> > >
> > > > message to the originating gateway.
> > > >
> > > > The problem is , if they call forward to a number which the
> > > > originating gateway doesn't know what to do with it , it will just
>
> > > > kill the call.
> > > >
> > > > Can i hijack 'Move Temporarily' directly in the proxy and sending
> > > > this
> > >
> > > > call to a different gateway rather than relaying it to the
> > > > originating
> > >
> > > > gateway ?
> > > >
> > > > Please let me know if you can't understand me.
> > > > Thanks!
> > > >
> > > > Regards,
> > > > Sam
> > > > _______________________________________________
> > > > Users mailing list
> > > > Users at openser.org
> > > > http://openser.org/cgi-bin/mailman/listinfo/users
> > >
> > >
> > > _______________________________________________
> > > Users mailing list
> > > Users at openser.org
> > > http://openser.org/cgi-bin/mailman/listinfo/users
> >
> > _______________________________________________
> > Users mailing list
> > Users at openser.org
> > http://openser.org/cgi-bin/mailman/listinfo/users
> >
>
>
> --
> Howard Tang
> ICQ : 259083
> MSN : howard615 at hotmail.com
>


-- 
Howard Tang
ICQ : 259083
MSN : howard615 at hotmail.com




More information about the Users mailing list