<div dir="ltr">Ok David, will give feedback soon.<div>rgds,</div><div>Lu.<br><br><div class="gmail_quote">On Thu, Oct 9, 2008 at 11:53 AM, <span dir="ltr"><<a href="mailto:users-request@lists.kamailio.org">users-request@lists.kamailio.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Send Users mailing list submissions to<br>
<a href="mailto:users@lists.kamailio.org">users@lists.kamailio.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<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>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:users-request@lists.kamailio.org">users-request@lists.kamailio.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:users-owner@lists.kamailio.org">users-owner@lists.kamailio.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: No audio both ways. (David Villasmil)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 9 Oct 2008 11:07:12 +0200<br>
From: "David Villasmil" <<a href="mailto:david.villasmil.work@gmail.com">david.villasmil.work@gmail.com</a>><br>
Subject: Re: [Kamailio-Users] No audio both ways.<br>
Cc: <a href="mailto:users@lists.kamailio.org">users@lists.kamailio.org</a><br>
Message-ID:<br>
<<a href="mailto:9853f4ff0810090207p11d15bddt8dca8f57370c83c9@mail.gmail.com">9853f4ff0810090207p11d15bddt8dca8f57370c83c9@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Try adding a:<br>
<br>
nat=yes<br>
<br>
to the kamailio/openser peer definition and test<br>
<br>
dvg<br>
<br>
On Thu, Oct 9, 2008 at 10:58 AM, luzango mfupe <<a href="mailto:luzango.mfupe@gmail.com">luzango.mfupe@gmail.com</a>>wrote:<br>
<br>
><br>
> Hi mates,I have this setup:<br>
> Xlite---->Openser---->Asterisk------>VoIP to PTSN Provider<br>
><br>
> I use kamailio 1.3.3(port5060), MediaProxy and Asterisk 1.4 (port 5065) on<br>
> the same Debian Box in Realtime with no NAT. Asterisk connects calls to the<br>
> VoIP to PSTN provider. I am able to establish calls towards the PSTN<br>
> side(Landline & Mobiles) but with no audio. I can hear the ringing tone but<br>
> when the call connects and the conversation begin i hear nothing so as the<br>
> Callee side.<br>
><br>
> Below are my configs,the ngrep captured packets and codecs.<br>
><br>
> ####################################################################################<br>
> route[4] {<br>
> # routing to the public network<br>
> rewritehostport("xx.xxx.xxx.xx:5065");<br>
> t_on_failure("2");<br>
> if (!t_relay()) {<br>
> sl_reply_error();<br>
> };<br>
> exit;<br>
> }<br>
><br>
> route[6] {<br>
> #<br>
> # -- NAT handling --<br>
> #<br>
> if (isbflagset(6) || isbflagset(7)) {<br>
> append_hf("P-hint: Route[6]: mediaproxy \r\n");<br>
> use_media_proxy();<br>
> };<br>
> }<br>
><br>
> route[10] {<br>
> #from an internal domain -> inbound<br>
> #Native SIP destinations are handled using the location table<br>
> #Gateway destinations are handled by regular expressions<br>
> append_hf("P-hint: inbound->inbound \r\n");<br>
><br>
> if (uri=~"^sip:0[1-9][0-9]+@.*") {<br>
> if (is_user_in("credentials","local")) {<br>
> strip(1);<br>
> prefix("27");<br>
> route(6);<br>
> route(4);<br>
> exit;<br>
> } else {<br>
> sl_send_reply("403", "No permissions for local calls");<br>
> exit;<br>
> };<br>
> };<br>
><br>
> if (uri=~"^sip:00[1-9][0-9]+@.*") {<br>
> if (is_user_in("credentials","int")) {<br>
> strip(2);<br>
> route(6);<br>
> route(4);<br>
> exit;<br>
> } else {<br>
> sl_send_reply("403", "No permissions for international calls");<br>
> };<br>
> };<br>
><br>
><br>
> ###################################################################################<br>
> This call was from the xlite softphone 1974 towards the Landline<br>
> 0123825710.<br>
><br>
> ###################################################################################<br>
> U 2008/12/06 03:38:43.896057 <a href="http://196.212.209.18:46738" target="_blank">196.212.209.18:46738</a> -> kamailio IP:5060<br>
> INVITE sip:0123825710@KAMAILIO ip SIP/2.0..Via: SIP/2.0/UDP <a href="http://192.168.0.55" target="_blank">192.168.0.55</a><br>
> :<br>
><br>
> 46738;branch=z9hG4bK-d8754z-2d5e73428b95d262-1---d8754z-;rport..Max-Forward<br>
> s: 70..Contact: <<a href="http://sip:1974@196.212.209.18:46738" target="_blank">sip:1974@196.212.209.18:46738</a>>..To:<br>
> "0123825710"<sip:01238<br>
> 25710@kamailio IP>..From: <sip:1974@kamailio IP>;tag=353dd217..Call-ID:<br>
> MGRiNzM0ZGYxZTk1ZDI3ZjZmMTRhMDVlNTQ0NTUwZjg...CSeq: 1 INVITE..Allow:<br>
> INVIT<br>
> E, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE,<br>
> INFO..Cont<br>
> ent-Type: application/sdp..User-Agent: X-Lite release 1014k stamp<br>
> 47051..Co<br>
> ntent-Length: 237....v=0..o=- 1 2 IN IP4 192.168.0.55..s=CounterPath<br>
> X-Lite<br>
> 3.0..c=IN IP4 192.168.0.55..t=0 0..m=audio 60782 RTP/AVP 0 8 3<br>
> 101..a=fmtp<br>
> :101 0-15..a=rtpmap:101 telephone-event/8000..a=alt:1 1 : ljiQYRpD<br>
> NiMZsfdZ<br>
> <a href="http://192.168.0.55" target="_blank">192.168.0.55</a> 60782..a=sendrecv..<br>
><br>
> U 2008/12/06 03:38:43.896350 Kamailio IP:5060 -> <a href="http://196.212.209.18:46738" target="_blank">196.212.209.18:46738</a><br>
> SIP/2.0 407 Proxy Authentication Required..Via: SIP/2.0/UDP<br>
> <a href="http://192.168.0.55:46" target="_blank">192.168.0.55:46</a><br>
><br>
> 738;branch=z9hG4bK-d8754z-2d5e73428b95d262-1---d8754z-;rport=46738;received<br>
> =196.212.209.18..To: "0123825710"<sip:0123825710@kamailioIP>;tag=329cfea<br>
> a6ded039da25ff8cbb8668bd2.dcfe..From: <sip:1974@kamailioIP>;tag=353dd217<br>
> ..Call-ID: MGRiNzM0ZGYxZTk1ZDI3ZjZmMTRhMDVlNTQ0NTUwZjg...CSeq: 1<br>
> INVITE..Pr<br>
> oxy-Authenticate: Digest realm="<a href="http://41.208.212.97" target="_blank">41.208.212.97</a>",<br>
> nonce="4939d8cfeb060ab14354<br>
> 85eee811cdf644f759a2"..Content-Length: 0....<br>
><br>
> U 2008/12/06 03:38:44.086313 <a href="http://196.212.209.18:46738" target="_blank">196.212.209.18:46738</a> -> kamailio IP:5060<br>
> ACK sip:0123825710@kamailio IP SIP/2.0..Via: SIP/2.0/UDP<br>
> <a href="http://192.168.0.55:467" target="_blank">192.168.0.55:467</a><br>
> 38;branch=z9hG4bK-d8754z-2d5e73428b95d262-1---d8754z-;rport..To:<br>
> "012382571<br>
> 0"<sip:0123825710@kamailioIP>;tag=329cfeaa6ded039da25ff8cbb8668bd2.dcfe.<br>
> .From: <<a href="mailto:sip%3A1974@41.208.212.97">sip:1974@41.208.212.97</a> <<a href="mailto:sip%253A1974@41.208.212.97">sip%3A1974@41.208.212.97</a>>>;tag=353dd217..Call-ID:<br>
> MGRiNzM0ZGYxZTk1ZDI3<br>
> ZjZmMTRhMDVlNTQ0NTUwZjg...CSeq: 1 ACK..Content-Length: 0....<br>
><br>
><br>
><br>
> U 2008/12/06 03:38:44.582208 asterisk IP:5065 -> kamailio IP:5060<br>
> SIP/2.0 100 Trying..Via: SIP/2.0/UDP kamailio IP;branch=z9hG4bKd78.7bd576<br>
> 24.0;received=kamailio IP..Via: SIP/2.0/UDP <a href="http://192.168.0.55:46738" target="_blank">192.168.0.55:46738</a><br>
> ;received=1<br>
> <a href="http://96.212.209.18" target="_blank">96.212.209.18</a><br>
> ;branch=z9hG4bK-d8754z-2aedec27a8ddd96c-1---d8754z-;rport=4673<br>
> 8..Record-Route: <sip:kamailio IP;lr=on;ftag=353dd217;nat=yes>..From: <si<br>
> p:1974@kamailio IP>;tag=353dd217..To:<br>
> "0123825710"<sip:0123825710@41.208.<br>
> 212.97>..Call-ID: MGRiNzM0ZGYxZTk1ZDI3ZjZmMTRhMDVlNTQ0NTUwZjg...CSeq: 2<br>
> INV<br>
> ITE..User-Agent: Asterisk PBX..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE,<br>
> RE<br>
> FER, SUBSCRIBE, NOTIFY..Supported: replaces..Contact:<br>
> <sip:27123825710@41.2<br>
> 08.212.97:5065>..Content-Length: 0....<br>
><br>
> U 2008/12/06 03:38:44.711225 <a href="http://70.42.72.49:5060" target="_blank">70.42.72.49:5060</a> -> Asterisk IP:5065<br>
> SIP/2.0 100 Giving a try..Via: SIP/2.0/UDP Asterisk IP:5065;branch=z9hG4b<br>
> K22abec12;rport=5065..From: "1974" <sip:1974@AsteriskIP:5065>;tag=as6a7c<br>
> b89f..To: <<a href="mailto:sip%3A1214650027123825710@70.42.72.49">sip:1214650027123825710@70.42.72.49</a><<a href="mailto:sip%253A1214650027123825710@70.42.72.49">sip%3A1214650027123825710@70.42.72.49</a>>>..Call-ID:<br>
> 1934f5d443abffe07<br>
> c59d0a42215b49c@41.208.212.97..CSeq: 102 INVITE..Server: OpenSER<br>
> (1.3.2-not<br>
> ls (i386/solaris))..Content-Length: 0....<br>
><br>
> U 2008/12/06 03:38:47.206445 <a href="http://70.42.72.49:5060" target="_blank">70.42.72.49:5060</a> -> Asterisk IP:5065<br>
> SIP/2.0 183 Session Progress..Via: SIP/2.0/UDP Asterisk IP:5065;branch=z9<br>
> hG4bK22abec12;rport=5065..From: "1974" <sip:1974@AsteriskIP:5065>;tag=as<br>
> 6a7cb89f..To: <<a href="mailto:sip%3A1214650027123825710@70.42.72.49">sip:1214650027123825710@70.42.72.49</a><<a href="mailto:sip%253A1214650027123825710@70.42.72.49">sip%3A1214650027123825710@70.42.72.49</a>><br>
> >;tag=cba-1a6e-48ecbab6..<br>
> Call-ID: 1934f5d443abffe07c59d0a42215b49c@Asterisk IP..CSeq: 102<br>
> INVITE..<br>
> Contact: <<a href="mailto:sip%3A1214650027123825710@70.42.72.138">sip:1214650027123825710@70.42.72.138</a><<a href="mailto:sip%253A1214650027123825710@70.42.72.138">sip%3A1214650027123825710@70.42.72.138</a>>>..Date:<br>
> Wed, 08 Oct 2008 13:<br>
> 50:49 GMT..Server: BRSIP v2.0.1.2..Record-Route: <sip:<a href="http://70.42.72.49" target="_blank">70.42.72.49</a><br>
> ;lr=on;fta<br>
> g=as6a7cb89f>..Content-Type: application/sdp..Content-Length:<br>
> 212....v=0..o<br>
> =BRSDP 792898 792898 IN IP4 216.49.201.22..s=BRSDP Session..c=IN IP4<br>
> 216.49<br>
> .201.22..t=0 0..m=audio 27852 RTP/AVP 0 101..a=ptime:20..a=rtpmap:0<br>
> PCMU/80<br>
> 00..a=rtpmap:101 telephone-event/8000..a=fmtp:101 0-15..<br>
><br>
> U 2008/12/06 03:38:47.206891 Asterisk IP:5065 -> Kamailio IP:5060<br>
> SIP/2.0 183 Session Progress..Via: SIP/2.0/UDP kamailio IP;branch=z9hG4bK<br>
> d78.7bd57624.0;received=kamailio IP..Via: SIP/2.0/UDP <a href="http://192.168.0.55:46738" target="_blank">192.168.0.55:46738</a><br>
> ;<br>
> received=<a href="http://196.212.209.18" target="_blank">196.212.209.18</a><br>
> ;branch=z9hG4bK-d8754z-2aedec27a8ddd96c-1---d8754z-;<br>
> rport=46738..Record-Route: <sip:<a href="http://41.208.212.97" target="_blank">41.208.212.97</a><br>
> ;lr=on;ftag=353dd217;nat=yes>.<br>
> .From: <sip:1974@kamilio IP>;tag=353dd217..To: "0123825710"<sip:01238257<br>
> <a href="mailto:10@41.208.212.97">10@41.208.212.97</a>>;tag=as4377a96d..Call-ID:<br>
> MGRiNzM0ZGYxZTk1ZDI3ZjZmMTRhMDVl<br>
> NTQ0NTUwZjg...CSeq: 2 INVITE..User-Agent: Asterisk PBX..Allow: INVITE,<br>
> ACK,<br>
> CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY..Supported:<br>
> replaces..Conta<br>
> ct: <sip:27123825710@Asterisk IP:5065>..Content-Type:<br>
> application/sdp..Co<br>
> ntent-Length: 287....v=0..o=root 2664 2664 IN IP4<br>
> 41.208.212.97..s=session.<br>
> .c=IN IP4 41.208.212.97..t=0 0..m=audio 19202 RTP/AVP 8 0 3<br>
> 101..a=rtpmap:8<br>
> PCMA/8000..a=rtpmap:0 PCMU/8000..a=rtpmap:3 GSM/8000..a=rtpmap:101<br>
> telepho<br>
> ne-event/8000..a=fmtp:101 0-16..a=silenceSupp:off - - -<br>
> -..a=ptime:20..a=se<br>
> ndrecv..<br>
><br>
> U 2008/12/06 03:38:47.207106 Kamailio IP:5060 -> <a href="http://196.212.209.18:46738" target="_blank">196.212.209.18:46738</a><br>
> SIP/2.0 183 Session Progress..Via: SIP/2.0/UDP <a href="http://192.168.0.55:46738" target="_blank">192.168.0.55:46738</a><br>
> ;received=<br>
> <a href="http://196.212.209.18" target="_blank">196.212.209.18</a><br>
> ;branch=z9hG4bK-d8754z-2aedec27a8ddd96c-1---d8754z-;rport=467<br>
> 38..Record-Route: <sip:kamailio IP;lr=on;ftag=353dd217;nat=yes>..From: <s<br>
> ip:1974@Kamailio IP>;tag=353dd217..To:<br>
> "0123825710"<sip:0123825710@kamilio IP>;tag=as4377a96d..Call-ID:<br>
> MGRiNzM0ZGYxZTk1ZDI3ZjZmMTRhMDVlNTQ0NTUwZ<br>
> jg...CSeq: 2 INVITE..User-Agent: Asterisk PBX..Allow: INVITE, ACK,<br>
> CANCEL,<br>
> OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY..Supported: replaces..Contact:<br>
> <sip:<br>
> <a href="http://27123825710@41.208.212.97:5065" target="_blank">27123825710@41.208.212.97:5065</a>>..Content-Type:<br>
> application/sdp..Content-Len<br>
> gth: 287....v=0..o=root 2664 2664 IN IP4 Asterisk IP..s=session..c=IN IP4<br>
> 41.208.212.97..t=0 0..m=audio 19202 RTP/AVP 8 0 3 101..a=rtpmap:8<br>
> PCMA/800<br>
> 0..a=rtpmap:0 PCMU/8000..a=rtpmap:3 GSM/8000..a=rtpmap:101<br>
> telephone-event/<br>
> 8000..a=fmtp:101 0-16..a=silenceSupp:off - - -<br>
> -..a=ptime:20..a=sendrecv..<br>
><br>
><br>
> ########################################################################################<br>
> Sip.conf<br>
> [general]<br>
> context=from-trunk<br>
> bindport=5065<br>
> autocreatepeer=yes<br>
> bindaddr=xx.xxx.xxx.xx<br>
><br>
><br>
> disallow=all<br>
> ;allow=gsm<br>
> ;allow=amr<br>
> allow=alaw<br>
> allow=ulaw<br>
> allow=gsm<br>
> ;allow=ilbc<br>
> ;disallow=all<br>
> ;<br>
> ;useragent=Asterisk PBX<br>
> dtmfmode = rfc2833<br>
><br>
><br>
> domain=xx.xxx.xxx.xx ; Add IP address as local domain<br>
><br>
> [Provider]<br>
> disallow=all<br>
> canreinvite=no<br>
> context=from-trunk<br>
> allow=all<br>
> ;allow=ulaw<br>
> ;allow=gsm<br>
> host=xx.xx.xx.xx<br>
> insecure=port,invite<br>
> type=peer ; we only want to call out, not be<br>
> call$<br>
> dtmfmode=rfc2833<br>
><br>
> #########################################################################################<br>
> Here is my codecs<br>
><br>
> 41*CLI> core show translation<br>
> Translation times between formats (in milliseconds) for one second<br>
> of data<br>
> Source Format (Rows) Destination Format (Columns)<br>
><br>
> g723 gsm ulaw alaw g726aal2 adpcm slin lpc10 g729 speex ilbc g726<br>
> g722 amr<br>
> g723 - - - - - - - - - - - -<br>
> - -<br>
> gsm - - 2 2 2 2 1 5 - 19 - 2<br>
> - 14<br>
> ulaw - 5 - 1 2 2 1 5 - 19 - 2<br>
> - 14<br>
> alaw - 5 1 - 2 2 1 5 - 19 - 2<br>
> - 14<br>
> g726aal2 - 5 2 2 - 2 1 5 - 19 - 1<br>
> - 14<br>
> adpcm - 5 2 2 2 - 1 5 - 19 - 2<br>
> - 14<br>
> slin - 4 1 1 1 1 - 4 - 18 - 1<br>
> - 13<br>
> lpc10 - 6 3 3 3 3 2 - - 20 - 3<br>
> - 15<br>
> g729 - - - - - - - - - - - -<br>
> - -<br>
> speex - 6 3 3 3 3 2 6 - - - 3<br>
> - 15<br>
> ilbc - - - - - - - - - - - -<br>
> - -<br>
> g726 - 5 2 2 1 2 1 5 - 19 - -<br>
> - 14<br>
> g722 - - - - - - - - - - - -<br>
> - -<br>
> amr - 6 3 3 3 3 2 6 - 20 - 3<br>
> - -<br>
><br>
><br>
><br>
> With best regards,<br>
> Lu.<br>
><br>
> --<br>
> Luzango Mfupe<br>
> TUUNE MOBILE<br>
> Tel:0128440528/0123825710<br>
> Tshwane-RSA<br>
><br>
> "...Ships are safe in harbor, but they were never meant to stay<br>
> there......."<br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.kamailio.org">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>
><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://lists.kamailio.org/pipermail/users/attachments/20081009/37b9135c/attachment.htm" target="_blank">http://lists.kamailio.org/pipermail/users/attachments/20081009/37b9135c/attachment.htm</a><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.kamailio.org">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>
<br>
<br>
End of Users Digest, Vol 41, Issue 24<br>
*************************************<br>
</blockquote></div><br><br clear="all"><br>-- <br>Luzango Mfupe<br>TUUNE MOBILE<br>Tel:0128440528/0123825710<br>Tshwane-RSA<br><br>"...Ships are safe in harbor, but they were never meant to stay there......."<br>
</div></div>