[SR-Users] Kamailio $Rp variable showing wrong port
Shahid Hussain
shnx88 at gmail.com
Thu Jun 24 11:37:41 CEST 2021
Hi Daniel,
Attaching the filtered pcap with response for an OPTION message.
I am also attaching the all pcap with no filter having all SIP messages
being communicated, there is no data coming on port 8080.
Regards,
Shahid
On Thu, Jun 24, 2021 at 1:21 PM Daniel-Constantin Mierla <miconda at gmail.com>
wrote:
> Hello,
>
> the pcap shows only the OPTIONS requests, not the replies. Maybe you have
> to capture the traffic also on 8080 to catch it. It would important to see
> the reply and where it is sent back to kamailio.
>
> Cheers,
> Daniel
> On 24.06.21 09:24, Shahid Hussain wrote:
>
> Hi,
> I have configured the dispatcher default socket as below IP , the
> expectation here is that kamailio should send all traffic from this IP
> (port will be ephemeral) over TCP.
> modparam("dispatcher", "ds_default_socket", "tcp:172.27.45.219:5060")
>
> This system also listens on port 8080 which is meant for websocket
> communication (dispatcher communication is over non websocket).
>
> Kamailio is sending an OPTION message to dispatcher IP over TCP on 5060
> and getting 200 OK response but Kamailio considering the response is on
> websocket port 8080 ,$Rp value is 8080.
>
> onreply_route {
> if (($Rp == 8080 ) && !(proto == WS))
> {
> xlog("L_WARN", "SIP response received on $Rp
> protocol:proto RIP:$Ri SIP:$si method:$rm cid:$ci replystatus:$rs
> len:$ml\n");
> xlog("L_WARN", "SIP message received: $mb\n");
> drop;
> }
>
> .....
> ....
> }
>
> Following is the output of above logs:
> Jun 24 15:10:08 localhost /usr/sbin/kamailio[6223]: WARNING: {2 10 OPTIONS
> 1ab6573a4640823b-6209 at 172.27.45.198} <script>: SIP response received on 8080
> protocol:tcp RIP:172.27.45.219 SIP:172.27.44.125 method:OPTIONS
> cid:1ab6573a4640823b-6209 at 172.27.45.198 replystatus:200 len:416
>
> Jun 24 15:10:08 localhost /usr/sbin/kamailio[6223]: WARNING: {2 10 OPTIONS
> 1ab6573a4640823b-6209 at 172.27.45.198} <script>: SIP message received:
> SIP/2.0 200 OK#015#012Via: SIP/2.0/TCP 172.27.45.198:5060;branch=z9hG4bK4526.92b79f34000000000000000000000000.0;received=172.27.45.219#015#012From:
> <sip:dispatcher at localhost>;tag=1ae6c95d92f9ea9ce927f715de5c48c8-eb141029#015#012To:
> <sip:172.27.44.125:5060;transport=tcp>;tag=a9d542e0#015#012Call-ID:
> 1ab6573a4640823b-6209 at 172.27.45.198#015#012CSeq
> <http://1ab6573a4640823b-6209@172.27.45.198#015%23012CSeq>: 10
> OPTIONS#015#012Allow: INVITE, ACK, BYE, OPTIONS, CANCEL, INFO, UPDATE,
> NOTIFY#015#012Content-Length: 0
>
>
> Also I have attached a pcap.
>
> Dispatcher.list configuration:
> 1 sip:172.27.44.125:5060;transport=tcp 0 0 duid=sample-cas;maxload=1000
>
> Thanks,
> Shahid
>
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions
> * sr-users at lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the sender!
> Edit mailing list options or unsubscribe:
> * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
> --
> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210624/e34d935d/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SLB_OPTION_FILTERED_WITH_DISPATCHIP125.pcap
Type: application/octet-stream
Size: 2194 bytes
Desc: not available
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210624/e34d935d/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SLB_OPTION_ALL_SIP_NO_FILTER.pcap
Type: application/octet-stream
Size: 21537 bytes
Desc: not available
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210624/e34d935d/attachment-0001.obj>
More information about the sr-users
mailing list