Hi Daniel,<br>
<br>
I was using:<br>
$ru = $(ru{re.subst,/[KAMAILIO]/[IP-PBX ]/});<br>
t_relay_to_udp("[IP-PBX ]", "5060");<br>
but your way looks better.<br>
<br>
This works fine in this direction:<br>
[UA] --> [KAMAILIO] --> [IP-PBX ]<br>
<br>
but not in this:<br>
[UA] <-- [KAMAILIO] <-- [IP-PBX ]<br>because Kamailio is not keeping the location of the UA.<br><br>I want to register UA's on Kamailio, but the authentication is done by [IP-PBX]...<br>So Kamailio as Outbound Proxy + Location Server ... any idea on how I can achieve this configuration?<br>
<br>Thanks,<br>Sunny<br><br><br><br><div class="gmail_quote">On 8 July 2011 09:38, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello,<div><div></div><div class="h5"><br>
<br>
On 7/5/11 8:46 PM, Sunny wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi list,<br>
<br>
I'm trying to configure kamailio to work as a OBP (Outbound Proxy).<br>
<br>
Basically KAMAILIO receive requests from UAs, after that it acts like a client and send those requests to the IP-PBX.<br>
On the same way the responses are forwarded from IP-PBX to the UAs.<br>
<br>
<br>
[UA] --> [KAMAILIO] --> [IP-PBX ]<br>
[UA] <-- [KAMAILIO] <-- [IP-PBX ]<br>
<br>
Following possible call flow:<br>
<br>
[UA ] -> [KAMAILIO] SIP/SDP Request: INVITE sip:12345678909@[KAMAILIO], with session description<br>
[KAMAILIO] -> [UA ] SIP Status: 100 Trying<br>
[KAMAILIO] -> [IP-PBX ] SIP/SDP Request: INVITE sip:12345678909@[IP-PBX ], with session description<br>
[IP-PBX ] -> [KAMAILIO] SIP Status: 100 Trying<br>
[IP-PBX ] -> [KAMAILIO] SIP Status: 407 Proxy Authentication Required<br>
[KAMAILIO] -> [IP-PBX ] SIP Request: ACK sip:12345678909@[IP-PBX ]<br>
[KAMAILIO] -> [UA ] SIP Status: 407 Proxy Authentication Required<br>
[UA ] -> [KAMAILIO] SIP Request: ACK sip:12345678909@[KAMAILIO]<br>
[UA ] -> [KAMAILIO] SIP/SDP Request: INVITE sip:12345678909@[KAMAILIO], with session description<br>
[KAMAILIO] -> [UA ] SIP Status: 100 Trying<br>
[KAMAILIO] -> [IP-PBX ] SIP/SDP Request: INVITE sip:12345678909@[IP-PBX ], with session description<br>
[IP-PBX ] -> [KAMAILIO] SIP Status: 100 Trying<br>
[IP-PBX ] -> [KAMAILIO] SIP/SDP Status: 183 Session Progress, with session description<br>
[KAMAILIO] -> [UA ] SIP/SDP Status: 183 Session Progress, with session description<br>
[IP-PBX ] -> [KAMAILIO] SIP/SDP Status: 180 Ringing, with session description<br>
[KAMAILIO] -> [UA ] SIP/SDP Status: 180 Ringing, with session description<br>
(...)<br>
[UA ] -> [KAMAILIO] SIP Request: CANCEL sip:12345678909@[KAMAILIO]<br>
[KAMAILIO] -> [UA ] SIP Status: 200 OK<br>
[KAMAILIO] -> [IP-PBX ] SIP Request: CANCEL sip:12345678909@[IP-PBX ]<br>
[IP-PBX ] -> [KAMAILIO] SIP Status: 200 OK<br>
[IP-PBX ] -> [KAMAILIO] SIP Status: 487 Request Terminated<br>
[KAMAILIO] -> [IP-PBX ] SIP Request: ACK sip:12345678909@[IP-PBX ]<br>
[KAMAILIO] -> [UA ] SIP Status: 487 Request Terminated<br>
[UA ] -> [KAMAILIO] SIP Request: ACK sip:12345678909@[KAMAILIO]<br>
<br>
Wondering if anyone could help to make this configuration work?<br>
</blockquote>
<br></div></div>
what I understood from above is that you need to update the domain in R-URI from [kamailio] to [ip-pbx]. This is easy to do:<br>
<br>
$rd = [ip-pbx];<br>
<br>
You have to do this for initial requests (register, invite).<br>
<br>
If you need to update From header URI, look at uac module, uac_replace_from().<br>
<br>
Cheers,<br>
Daniel<br><font color="#888888">
<br>
-- <br>
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
Kamailio Advanced Training, Oct 10-13, Berlin: <a href="http://asipto.com/u/kat" target="_blank">http://asipto.com/u/kat</a><br>
<a href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a> -- <a href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a><br>
<br>
</font></blockquote></div><br>