Hi Rizwan,
there can be more ways of implementing your scenario.
Here are two of most popular ones:
1. Using rewritehost("IP_OF_YOUR_PROVIDER") and then call t_relay() to
send the request out.
2. Using directly t_relay("IP_OF_YOUR_PROVIDER") without rewriting the
RURI host.
The difference between the two approaches is that in the case of
rewritehost() function u will alter the domain of RURI forcing it to
be the ip address of your provider.
In the second case, u will no longer alter the domain, but instruct
t_relay() not to find the route by itself (no dns lookup or any other
way) but send the request as it is to the IP which u specify specify.
For more info, please consult the documentation of the two functions:
http://openser.org/dokuwiki/doku.php/core-cookbook:1.2.x#rewritehost_sethost
http://www.openser.org/docs/modules/1.2.x/tm.html#AEN345
Hope that helps,
DanB
On 7/4/07, Rizwan Hisham <rizwanhasham(a)gmail.com> wrote:
Hi all,
i tried to throw all my INVITE messages to an external IP address by using
the rewritehost function. but calls from my openser dont passthru. i need
to implement a sip trunk and throw my calls thru sip trunk to an external
ip. how should i do this? I am a new user, so whatever your answer is, plz
try to elaborate a little more. thanx
--
Best Regards
Rizwan Hisham
Software Engineer
AXVOICE Inc.
www.axvoice.com
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users