– Kamailio SIP Server –

Hello,

          I am trying to do a force drop, using an external program. This program sends a BYE to the UA, via Unix Socket (ser.sock). The Bye looks like this:

:t_uac_dlg:jm

BYE

sip:30003035@192.168.10.100:5060;user=phone

.

From: <sip:30003060@192.168.10.79;user=phone>;tag=357a0541b4a6fc93

To: <sip:30003035@192.168.10.79;user=phone>;tag=8e1f14f59d2c1f9d

Cseq: 1243 BYE

Call-ID: 64c75c67f1c0c450@192.168.10.115

.

.

This works fine!.. But I don’t receive the response of a BYE in “jm” Unix socket.

After I send the Bye, I create the “jm” Unix Socket. Next I send the BYE. And then I read the “jm” socket, but don’t receive nothing.

I have this error

5(6782) ERROR: tsend_dgram: failed to send: (22) Invalid argument


My ser.cfg looks like

debug=5 # debug level (cmd line: -dddddddddd)

fork=yes

log_stderror=yes # (cmd line: -E)

check_via=no # (cmd. line: -v)

dns=no # (cmd. line: -r)

rev_dns=no # (cmd. line: -R)

port=5060

children=4

listen=192.168.10.79

unix_sock = “/tmp/ser.sock”

unix_sock_children = 1

unix_tx_timeout = 2000

In my ser debug I receive this

2(6779) parse_headers: flags=ffffffffffffffff

2(6779) check_via_address(192.168.10.100, 192.168.10.100, 0)

2(6779) DEBUG:destroy_avp_list: destroying list (nil)

2(6779) receive_msg: cleaning up

1(6778) get_method: method: 'BYE'

1(6778) get_ruri: 'sip:30003035@192.168.10.100:5060;user=phone'

1(6778) get_nexthop: next hop empty

1(6778) get_headers: From: <sip:30003060@192.168.10.79;user=phone>;tag=357a0541b4a6fc93

To: <sip:30003035@192.168.10.79;user=phone>;tag=8e1f14f59d2c1f9d

Cseq: 1243 BYE

Call-ID: 64c75c67f1c0c450@192.168.10.115

1(6778) parse_headers: flags=ffffffffffffffff

1(6778) DEBUG: add_param: tag=8e1f14f59d2c1f9d

1(6778) end of header reached, state=29

1(6778) DEBUG: get_hdr_field: <To> [62]; uri=[sip:30003035@192.168.10.79;user=phone]

1(6778) DEBUG: to body [<sip:30003035@192.168.10.79;user=phone>]

1(6778) get_hdr_field: cseq <Cseq>: <1243> <BYE>

1(6778) get_body_lines:

1(6778) DEBUG: add_param: tag=357a0541b4a6fc93

1(6778) end of header reached, state=29

1(6778) DEBUG:tm:t_uac: next_hop=<sip:30003035@192.168.10.100:5060;user=phone>

1(6778) DEBUG: mk_proxy: doing DNS lookup…

1(6778) DEBUG:destroy_avp_list: destroying list (nil)

1(6778) DEBUG: dlg2hash: 38378

1(6778) DEBUG: add_to_tail_of_timer[4]: 0xbd6aa390

1(6778) DEBUG: add_to_tail_of_timer[0]: 0xbd6aa3a0

5(6782) SIP Reply (status):

5(6782) version: <SIP/2.0>

5(6782) status: <481>

5(6782) reason: <No Such Call>

5(6782) parse_headers: flags=2

5(6782) Found param type 232, <branch> = <z9hG4bKae59.cab8b187.0>; state=16

5(6782) end of header reached, state=5

5(6782) parse_headers: Via found, flags=2

5(6782) parse_headers: this is the first via

5(6782) After parse_msg…

5(6782) forward_reply: found module tm, passing reply to it

5(6782) DEBUG: t_check: msg id=5 global id=0 T start=0xffffffff

5(6782) parse_headers: flags=22

5(6782) DEBUG: add_param: tag=8e1f14f59d2c1f9d

5(6782) end of header reached, state=29

5(6782) DEBUG: get_hdr_field: <To> [62]; uri=[sip:30003035@192.168.10.79;user=phone]

5(6782) DEBUG: to body [<sip:30003035@192.168.10.79;user=phone>]

5(6782) get_hdr_field: cseq <CSeq>: <1243> <BYE>

5(6782) DEBUG: t_reply_matching: hash 38378 label 2015071148 branch 0

5(6782) DEBUG: t_reply_matching: reply matched (T=0xbd6aa278)!

5(6782) DEBUG: t_check: msg id=5 global id=5 T end=0xbd6aa278

5(6782) DEBUG: reply_received: org. status uas=0, uac[0]=0 local=2 is_invite=0)

5(6782) →»»»» T_code=0, new_code=481

5(6782) Warning: run_failure_handlers: no UAC support (0, 256)

5(6782) DEBUG: local_reply: branch=0, save=0, winner=0

5(6782) DEBUG: local transaction completed

5(6782) DBG: trans=0xbd6aa278, callback type 256, id 0 entered

5(6782) ERROR: tsend_dgram: failed to send: (22) Invalid argument

5(6782) DEBUG: cleanup_uac_timers: RETR/FR timers reset

5(6782) DEBUG: add_to_tail_of_timer[2]: 0xbd6aa2c0

5(6782) DEBUG:destroy_avp_list: destroying list (nil)

5(6782) receive_msg: cleaning up

Thanks in advance

Ing. Francisco Talavera