Daniel hi,<br>
<br>
My first need to implement this was early media message on queue 182
sip message, in order to inform caller that he is on hold. After that I
see many mobile companies use these kind of features (ring tones etc..)
and make a fortune from that.<br>
In any case I understand what you are saying but I don't understand
technically how and if possible for this to be implemented since i
tried both ways.<br>
<br>
Cheers<br>
Alex<br>
<br><br><br><div class="gmail_quote">On Tue, Nov 17, 2009 at 5:34 PM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<div><br>
<br>
On 17.11.2009 14:22 Uhr, alex pappas wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi.<br>
<br>
So the idea is when i get in my proxy an 180 Ringing message , to play Early media on the one that initiated the INVITE in the first place. The 180 ringing is passing my onreply_route. In this case how can I extract the related session of caller and send him the Early media?<br>
Also Daniel what is the difference of playing media to the UAC or the UAS? who is who?<br>
</blockquote>
<br></div>
in sip terminology, UAC is the one that sends the request and UAS is the one that sends the reply. However, some people do a mixture and consider uac being the callerand uac being the callee. Not using the funtion, I thought it might be easier to test both variants instead of checking the code.<br>
<br>
Cheers,<br><font color="#888888">
Daniel<br>
<br>
</font><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>
<br>
Thank you in advance<br>
<br>
Alex<br>
<br>
<br>
<br>
<br></div><div>
On Tue, Nov 17, 2009 at 3:05 PM, Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a> <mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>>> wrote:<br>
<br>
Hello,<br>
<br></div><div>
the idea is to send the audio to the one that sent the INVITE, not<br>
the one that sends the reply. So the respective SDP is not in<br>
current processed reply, but in the request.<br>
<br>
Not sure if is possible, though, I thought it is since you can<br>
stream either to uac or uas.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<br>
<br>
On 17.11.2009 14:02 Uhr, Uriel Rozenbaum wrote:<br>
<br>
Guys,<br>
<br>
I agree with Edson, maybe you are using the function on a<br>
message that does not have an SDP. Print the METHOD and<br>
RESPONSE to be sure you are not passing all messages through<br>
the function.<br>
<br>
Uriel<br>
<br>
On Tue, Nov 17, 2009 at 9:53 AM, Edson - Lists<br>
<<a href="mailto:4lists@gmail.com" target="_blank">4lists@gmail.com</a> <mailto:<a href="mailto:4lists@gmail.com" target="_blank">4lists@gmail.com</a>><br></div><div><div></div><div>
<mailto:<a href="mailto:4lists@gmail.com" target="_blank">4lists@gmail.com</a> <mailto:<a href="mailto:4lists@gmail.com" target="_blank">4lists@gmail.com</a>>>> wrote:<br>
<br>
It seems like a report/information and not a problem...<br>
<br>
To be sure, could You please paste one call exchanged messages<br>
captured with NGREP? Don`t forget to hide relevant IPs end<br>
tell us<br>
who is who... ;)<br>
<br>
Edson.<br>
<br>
alex pappas escreveu:<br>
<br>
Daniel Hi,<br>
<br>
I tried that in the first place but I had the following<br>
ERRORS:<br>
<br>
Nov 17 14:18:42 YGOR /usr/local/sbin/kamailio[4862]:<br>
WARNING:core:run_actions: null action list (rec_level=2)<br>
Nov 17 14:18:47 YGOR /usr/local/sbin/kamailio[4862]:<br>
ERROR:nathelper:extract_body: message body has length zero<br>
Nov 17 14:18:47 YGOR /usr/local/sbin/kamailio[4862]:<br>
ERROR:nathelper:force_rtp_proxy: can't extract body<br>
from the<br>
message<br>
Nov 17 14:18:47 YGOR /usr/local/sbin/kamailio[4862]:<br>
ERROR:nathelper:select_rtpp_node: script error -no<br>
valid set<br>
selected<br>
Nov 17 14:18:47 YGOR /usr/local/sbin/kamailio[4862]:<br>
ERROR:nathelper:rtpproxy_stream: no available proxies<br>
<br>
<br>
Thanks<br>
<br>
Alex<br>
<br>
<br>
<br>
On Tue, Nov 17, 2009 at 2:17 PM, Daniel-Constantin Mierla<br>
<<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a> <mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>><br>
<mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a> <mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>>><br>
<mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a> <mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>><br>
<mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a> <mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>>>>> wrote:<br>
<br>
Hello,<br>
<br>
<br>
On 17.11.2009 13:14 Uhr, alex pappas wrote:<br>
<br>
Dear all,<br>
<br>
I'm trying to play Early Media instead of<br>
Ringing WHEN<br>
an 180<br>
Ringing OR 182 Call Queue message is received<br>
from the<br>
destination UAC. In the onreply_route[1] I added the<br>
following<br>
lines in bold:<br>
<br>
I use kamailio 1.5 and I have NAT enabled.<br>
<br>
onreply_route[1] {<br>
xdbg("incoming reply\n");<br>
if ((isflagset(5) || isbflagset(6)) &&<br>
status=~"*(180)|*(183)|(2[0-9][0-9])") {<br>
force_rtp_proxy();<br>
}<br>
* if (status=~"(180)") {<br>
rtpproxy_stream2uac("/usr/local/etc/rtpproxy/ast-ivr.alaw","");<br>
} else {<br>
rtpproxy_stop_stream2uac();<br>
}*<br>
if (isbflagset(6)) {<br>
fix_nated_contact();<br>
}<br>
}<br>
<br>
<br>
try rtpproxy_stream2uas(...) instead of stream to<br>
uac function.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<br>
When I get from a UAC an 180 Ringing does not<br>
play the<br>
media and<br>
also in the syslog I see the following ERRORs:<br>
<br>
Nov 17 14:11:29 YGOR /usr/local/sbin/kamailio[4681]:<br>
ERROR:nathelper:extract_body: message body has<br>
length zero<br>
Nov 17 14:11:29 YGOR /usr/local/sbin/kamailio[4681]:<br>
ERROR:nathelper:force_rtp_proxy: can't extract body<br>
from the message<br>
Nov 17 14:11:29 YGOR /usr/local/sbin/kamailio[4681]:<br>
ERROR:nathelper:select_rtpp_node: script error -no<br>
valid set<br>
selected<br>
Nov 17 14:11:29 YGOR /usr/local/sbin/kamailio[4681]:<br>
ERROR:nathelper:rtpproxy_stream: no available<br>
proxies<br>
<br>
<br>
Thanks in advance for any help<br>
<br>
Alex<br>
<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Kamailio (OpenSER) - Users mailing list<br>
<a href="mailto:Users@lists.kamailio.org" target="_blank">Users@lists.kamailio.org</a><br>
<mailto:<a href="mailto:Users@lists.kamailio.org" target="_blank">Users@lists.kamailio.org</a>><br>
<mailto:<a href="mailto:Users@lists.kamailio.org" target="_blank">Users@lists.kamailio.org</a><br>
<mailto:<a href="mailto:Users@lists.kamailio.org" target="_blank">Users@lists.kamailio.org</a>>><br>
<mailto:<a href="mailto:Users@lists.kamailio.org" target="_blank">Users@lists.kamailio.org</a><br>
<mailto:<a href="mailto:Users@lists.kamailio.org" target="_blank">Users@lists.kamailio.org</a>><br>
<mailto:<a href="mailto:Users@lists.kamailio.org" target="_blank">Users@lists.kamailio.org</a><br>
<mailto:<a href="mailto:Users@lists.kamailio.org" target="_blank">Users@lists.kamailio.org</a>>>><br>
<br>
<a href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
<a href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<br>
-- Daniel-Constantin Mierla<br>
* <a href="http://www.asipto.com/" target="_blank">http://www.asipto.com/</a><br>
<br>
<br>
<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Kamailio (OpenSER) - Users mailing list<br>
<a href="mailto:Users@lists.kamailio.org" target="_blank">Users@lists.kamailio.org</a><br>
<mailto:<a href="mailto:Users@lists.kamailio.org" target="_blank">Users@lists.kamailio.org</a>><br>
<mailto:<a href="mailto:Users@lists.kamailio.org" target="_blank">Users@lists.kamailio.org</a><br>
<mailto:<a href="mailto:Users@lists.kamailio.org" target="_blank">Users@lists.kamailio.org</a>>><br>
<a href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
<a href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<br>
_______________________________________________<br>
Kamailio (OpenSER) - Users mailing list<br>
<a href="mailto:Users@lists.kamailio.org" target="_blank">Users@lists.kamailio.org</a> <mailto:<a href="mailto:Users@lists.kamailio.org" target="_blank">Users@lists.kamailio.org</a>><br>
<mailto:<a href="mailto:Users@lists.kamailio.org" target="_blank">Users@lists.kamailio.org</a><br>
<mailto:<a href="mailto:Users@lists.kamailio.org" target="_blank">Users@lists.kamailio.org</a>>><br>
<a href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
<a href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<br></div></div><div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Kamailio (OpenSER) - Users mailing list<br>
<a href="mailto:Users@lists.kamailio.org" target="_blank">Users@lists.kamailio.org</a> <mailto:<a href="mailto:Users@lists.kamailio.org" target="_blank">Users@lists.kamailio.org</a>><br>
<a href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
<a href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<br>
-- Daniel-Constantin Mierla<br>
* <a href="http://www.asipto.com/" target="_blank">http://www.asipto.com/</a><br>
<br>
<br>
_______________________________________________<br>
Kamailio (OpenSER) - Users mailing list<br>
<a href="mailto:Users@lists.kamailio.org" target="_blank">Users@lists.kamailio.org</a> <mailto:<a href="mailto:Users@lists.kamailio.org" target="_blank">Users@lists.kamailio.org</a>><br>
<a href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
<a href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Kamailio (OpenSER) - Users mailing list<br>
<a href="mailto:Users@lists.kamailio.org" target="_blank">Users@lists.kamailio.org</a><br>
<a href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
<a href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a><br>
</div></blockquote><div><div></div><div>
<br>
-- <br>
Daniel-Constantin Mierla<br>
* <a href="http://www.asipto.com/" target="_blank">http://www.asipto.com/</a><br>
<br>
</div></div></blockquote></div><br>