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@cyberhouse.no]
Sent: Monday, January 29, 2007 3:00 PM
To: Sam Lee
Cc: Carsten Bock; users(a)openser.org
Subject: Re: [Users] Hijack 'Move Temporarily'
Did you do a append_branch();
-atle
* Sam Lee <sam.lee(a)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@bock.info]
Sent: Friday, January 26, 2007 5:35 PM
To: Sam Lee
Cc: users(a)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(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
Users(a)openser.org