[asterisk-bugs] [JIRA] (ASTERISK-23630) WARNING[7205] chan_sip.c: Failure to write to tcp/tls socket
Abdoul OSSENI (JIRA)
noreply at issues.asterisk.org
Tue Apr 15 16:35:18 CDT 2014
[ https://issues.asterisk.org/jira/browse/ASTERISK-23630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=217349#comment-217349 ]
Abdoul OSSENI edited comment on ASTERISK-23630 at 4/15/14 4:34 PM:
-------------------------------------------------------------------
Thank you.
The issue is : some softphones failed to be register in asterisk server.
SIP Softphone Androïd (CSipSimple) or iOS (Linphone) ====> Asterisk Server (Realtime with MySQL Server) ===> PSTN.
When Softphones try to register (INVITE SIP) : I get some warnings to asterisk server :
[Apr 15 23:17:23] WARNING[3698]: chan_sip.c:3907 __sip_xmit: sip_xmit of 0x1f37d30 (len 574) to 71.254.99.157:54347 returned -2: Success
[Apr 15 23:17:35] WARNING[3698]: chan_sip.c:3907 __sip_xmit: sip_xmit of 0x1f37d30 (len 574) to 71.254.99.157:54347 returned -2: Success
[Apr 15 23:17:47] WARNING[3698]: chan_sip.c:3907 __sip_xmit: sip_xmit of 0x1f37d30 (len 574) to 71.254.99.157:54347 returned -2: Success
[Apr 15 23:17:59] WARNING[3698]: chan_sip.c:3907 __sip_xmit: sip_xmit of 0x1dfef00 (len 574) to 71.254.99.157:54347 returned -2: Success
[Apr 15 23:18:11] WARNING[3698]: chan_sip.c:3907 __sip_xmit: sip_xmit of 0x1f37d30 (len 574) to 71.254.99.157:54347 returned -2: Success
[Apr 15 23:18:23] WARNING[3698]: chan_sip.c:3907 __sip_xmit: sip_xmit of 0x1f37d30 (len 574) to 71.254.99.157:54347 returned -2: Success
[Apr 15 23:18:35] WARNING[3698]: chan_sip.c:3907 __sip_xmit: sip_xmit of 0x1dfef00 (len 574) to 71.254.99.157:54347 returned -2: Success
[Apr 15 23:18:47] WARNING[3698]: chan_sip.c:3907 __sip_xmit: sip_xmit of 0x1dfef00 (len 574) to 71.254.99.157:54347 returned -2: Success
[Apr 15 23:18:59] WARNING[3698]: chan_sip.c:3907 __sip_xmit: sip_xmit of 0x1dfef00 (len 574) to 71.254.99.157:54347 returned -2: Success
[Apr 15 23:19:11] WARNING[3698]: chan_sip.c:3907 __sip_xmit: sip_xmit of 0x1dfef00 (len 574) to 71.254.99.157:54347 returned -2: Success
============================================================================================================================================================================================================================================
And output of sip show peer 662570273037
ACS-SRVWEB-01*CLI> sip show peer 662570273037
* Name : 662570273037
Description :
Realtime peer: Yes, cached
Secret : <Set>
MD5Secret : <Not set>
Remote Secret: <Not set>
Context : a2billing
Record On feature : automon
Record Off feature : automon
Subscr.Cont. : <Not set>
Language : fr
Tonezone : <Not set>
Accountcode : 95631815354
AMA flags : BILLING
Transfer mode: closed
CallingPres : Presentation Allowed, Not Screened
Callgroup :
Pickupgroup :
Named Callgr :
Nam. Pickupgr:
MOH Suggest :
Mailbox :
VM Extension :
LastMsgsSent : 0/0
Call limit : 2147483647
Max forwards : 0
Dynamic : Yes
Callerid : "" <>
MaxCallBR : 0 kbps
Expire : 2737
Insecure : port,invite
Force rport : Yes
Symmetric RTP: Yes
ACL : No
DirectMedACL : No
T.38 support : No
T.38 EC mode : Unknown
T.38 MaxDtgrm: -1
DirectMedia : No
PromiscRedir : No
User=Phone : No
Video Support: No
Text Support : No
Ign SDP ver : No
Trust RPID : No
Send RPID : No
Subscriptions: Yes
Overlap dial : Yes
Outb. proxy : sip.africallshop.com
DTMFmode : rfc2833
Timer T1 : 500
Timer B : 32000
ToHost :
Addr->IP : 71.254.99.157:54347
Defaddr->IP : (null)
Prim.Transp. : TCP
Allowed.Trsp : UDP,TCP,TLS,WS,WSS
Def. Username: 662570273037
SIP Options : (none)
Codecs : (gsm|alaw)
Codec Order : (gsm:20,alaw:20)
Auto-Framing : Yes
Status : UNREACHABLE
Useragent : LinphoneIPhone/1.3.1 (belle-sip/1.2.1)
Reg. Contact : sip:662570273037 at 71.254.99.157:54347;transport=tcp
Qualify Freq : 1000 ms
Keepalive : 1000 ms
Sess-Timers : Accept
Sess-Refresh : uas
Sess-Expires : 1800 secs
Min-Sess : 90 secs
RTP Engine : asterisk
Parkinglot :
Use Reason : No
Encryption : No
==================================================================================================================================================================================================================================================
sip.conf
transport=udp,tcp
alwaysauthreject=yes
context=public
allowguest=no
srvlookup=yes
compactheaders=yes
udpbindaddr=0.0.0.0
nat=force_rport,comedia
tcpenable=yes
subscribe_network_change_event=yes
language=fr
dtmfmode=rfc2833
callcounter=yes
directmedia=no
rtcachefriends=yes
rtautoclear=yes
rtsavesysname=yes
rtupdate=yes
ignoreregexpire=yes
rtpkeepalive=1
rtptimeout=30
rtpholdtimeout=100
==================================================================================================================================================================================================================================================
Database :
mysql> desc cc_sip_buddies;
+-------------------+--------------------------------------------------------------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------------------+--------------------------------------------------------------------------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| id_cc_card | int(11) | NO | | 0 | |
| name | varchar(80) | NO | UNI | NULL | |
| accountcode | varchar(20) | NO | | NULL | |
| regexten | varchar(20) | NO | | NULL | |
| amaflags | char(7) | YES | | NULL | |
| callgroup | char(10) | YES | | NULL | |
| callerid | varchar(80) | NO | | NULL | |
| canreinvite | varchar(20) | NO | | YES | |
| context | varchar(80) | NO | | NULL | |
| DEFAULTip | char(15) | YES | | NULL | |
| dtmfmode | char(7) | NO | | RFC2833 | |
| fromuser | varchar(80) | NO | | NULL | |
| fromdomain | varchar(80) | NO | | NULL | |
| host | varchar(31) | NO | MUL | NULL | |
| insecure | varchar(20) | NO | | NULL | |
| language | char(2) | YES | | NULL | |
| mailbox | varchar(50) | NO | | NULL | |
| md5secret | varchar(80) | NO | | NULL | |
| nat | char(20) | YES | | NULL | |
| deny | varchar(95) | NO | | NULL | |
| permit | varchar(95) | YES | | NULL | |
| mask | varchar(95) | NO | | NULL | |
| pickupgroup | char(10) | YES | | NULL | |
| port | char(5) | NO | MUL | | |
| qualify | char(7) | YES | | yes | |
| restrictcid | char(1) | YES | | NULL | |
| rtptimeout | char(3) | YES | | NULL | |
| rtpholdtimeout | char(3) | YES | | NULL | |
| secret | varchar(80) | NO | | NULL | |
| type | char(6) | NO | | friend | |
| username | varchar(80) | NO | | NULL | |
| disallow | varchar(100) | NO | | ALL | |
| allow | varchar(100) | NO | | NULL | |
| musiconhold | varchar(100) | NO | | NULL | |
| regseconds | int(11) | NO | | 0 | |
| ipaddr | char(15) | NO | MUL | | |
| cancallforward | char(3) | YES | | yes | |
| fullcontact | varchar(80) | NO | | NULL | |
| setvar | varchar(100) | NO | | NULL | |
| regserver | varchar(20) | YES | | NULL | |
| lastms | varchar(11) | YES | | NULL | |
| defaultuser | varchar(40) | NO | | | |
| auth | varchar(10) | NO | | | |
| subscribemwi | varchar(10) | NO | | | |
| vmexten | varchar(20) | NO | | | |
| cid_number | varchar(40) | NO | | | |
| callingpres | varchar(20) | NO | | | |
| usereqphone | varchar(10) | NO | | | |
| incominglimit | varchar(10) | NO | | | |
| subscribecontext | varchar(40) | NO | | | |
| musicclass | varchar(20) | NO | | | |
| mohsuggest | varchar(20) | NO | | | |
| allowtransfer | varchar(20) | NO | | | |
| autoframing | varchar(10) | NO | | | |
| maxcallbitrate | varchar(15) | NO | | | |
| outboundproxy | varchar(40) | NO | | | |
| rtpkeepalive | varchar(15) | NO | | 0 | |
| useragent | varchar(80) | YES | | NULL | |
| transport | enum('udp','tcp','udp,tcp','tcp,udp','udp,tcp,tls','udp,tcp,tls,ws,wss') | YES | | NULL | |
| directmedia | enum('yes','no','nonat','update') | YES | | NULL | |
| keepalive | int(5) | YES | | NULL | |
| qualifyfreq | int(11) | YES | | 1 | |
| callbackextension | varchar(40) | YES | | NULL | |
| icesupport | varchar(5) | NO | | yes | |
+-------------------+--------------------------------------------------------------------------+------+-----+---------+----------------+
==================================================================================================================================================================================================================================================
was (Author: abdasty):
Thank you.
I think the issue some softphones fail to be register in asterisk server.
SIP Softphone Androïd (CSipSimple) or iOS (Linphone) ====> Asterisk Server (Realtime with MySQL Server) ===> PSTN
============================================================================================================================================================================================================================================
Some warnings :
[Apr 15 23:17:23] WARNING[3698]: chan_sip.c:3907 __sip_xmit: sip_xmit of 0x1f37d30 (len 574) to 71.254.99.157:54347 returned -2: Success
[Apr 15 23:17:35] WARNING[3698]: chan_sip.c:3907 __sip_xmit: sip_xmit of 0x1f37d30 (len 574) to 71.254.99.157:54347 returned -2: Success
[Apr 15 23:17:47] WARNING[3698]: chan_sip.c:3907 __sip_xmit: sip_xmit of 0x1f37d30 (len 574) to 71.254.99.157:54347 returned -2: Success
[Apr 15 23:17:59] WARNING[3698]: chan_sip.c:3907 __sip_xmit: sip_xmit of 0x1dfef00 (len 574) to 71.254.99.157:54347 returned -2: Success
[Apr 15 23:18:11] WARNING[3698]: chan_sip.c:3907 __sip_xmit: sip_xmit of 0x1f37d30 (len 574) to 71.254.99.157:54347 returned -2: Success
[Apr 15 23:18:23] WARNING[3698]: chan_sip.c:3907 __sip_xmit: sip_xmit of 0x1f37d30 (len 574) to 71.254.99.157:54347 returned -2: Success
[Apr 15 23:18:35] WARNING[3698]: chan_sip.c:3907 __sip_xmit: sip_xmit of 0x1dfef00 (len 574) to 71.254.99.157:54347 returned -2: Success
[Apr 15 23:18:47] WARNING[3698]: chan_sip.c:3907 __sip_xmit: sip_xmit of 0x1dfef00 (len 574) to 71.254.99.157:54347 returned -2: Success
[Apr 15 23:18:59] WARNING[3698]: chan_sip.c:3907 __sip_xmit: sip_xmit of 0x1dfef00 (len 574) to 71.254.99.157:54347 returned -2: Success
[Apr 15 23:19:11] WARNING[3698]: chan_sip.c:3907 __sip_xmit: sip_xmit of 0x1dfef00 (len 574) to 71.254.99.157:54347 returned -2: Success
============================================================================================================================================================================================================================================
And output of sip show peer 662570273037
ACS-SRVWEB-01*CLI> sip show peer 662570273037
* Name : 662570273037
Description :
Realtime peer: Yes, cached
Secret : <Set>
MD5Secret : <Not set>
Remote Secret: <Not set>
Context : a2billing
Record On feature : automon
Record Off feature : automon
Subscr.Cont. : <Not set>
Language : fr
Tonezone : <Not set>
Accountcode : 95631815354
AMA flags : BILLING
Transfer mode: closed
CallingPres : Presentation Allowed, Not Screened
Callgroup :
Pickupgroup :
Named Callgr :
Nam. Pickupgr:
MOH Suggest :
Mailbox :
VM Extension :
LastMsgsSent : 0/0
Call limit : 2147483647
Max forwards : 0
Dynamic : Yes
Callerid : "" <>
MaxCallBR : 0 kbps
Expire : 2737
Insecure : port,invite
Force rport : Yes
Symmetric RTP: Yes
ACL : No
DirectMedACL : No
T.38 support : No
T.38 EC mode : Unknown
T.38 MaxDtgrm: -1
DirectMedia : No
PromiscRedir : No
User=Phone : No
Video Support: No
Text Support : No
Ign SDP ver : No
Trust RPID : No
Send RPID : No
Subscriptions: Yes
Overlap dial : Yes
Outb. proxy : sip.africallshop.com
DTMFmode : rfc2833
Timer T1 : 500
Timer B : 32000
ToHost :
Addr->IP : 71.254.99.157:54347
Defaddr->IP : (null)
Prim.Transp. : TCP
Allowed.Trsp : UDP,TCP,TLS,WS,WSS
Def. Username: 662570273037
SIP Options : (none)
Codecs : (gsm|alaw)
Codec Order : (gsm:20,alaw:20)
Auto-Framing : Yes
Status : UNREACHABLE
Useragent : LinphoneIPhone/1.3.1 (belle-sip/1.2.1)
Reg. Contact : sip:662570273037 at 71.254.99.157:54347;transport=tcp
Qualify Freq : 1000 ms
Keepalive : 1000 ms
Sess-Timers : Accept
Sess-Refresh : uas
Sess-Expires : 1800 secs
Min-Sess : 90 secs
RTP Engine : asterisk
Parkinglot :
Use Reason : No
Encryption : No
==================================================================================================================================================================================================================================================
sip.conf
transport=udp,tcp
alwaysauthreject=yes
context=public
allowguest=no
srvlookup=yes
compactheaders=yes
udpbindaddr=0.0.0.0
nat=force_rport,comedia
tcpenable=yes
subscribe_network_change_event=yes
language=fr
dtmfmode=rfc2833
callcounter=yes
directmedia=no
rtcachefriends=yes
rtautoclear=yes
rtsavesysname=yes
rtupdate=yes
ignoreregexpire=yes
rtpkeepalive=1
rtptimeout=30
rtpholdtimeout=100
==================================================================================================================================================================================================================================================
Database :
mysql> desc cc_sip_buddies;
+-------------------+--------------------------------------------------------------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------------------+--------------------------------------------------------------------------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| id_cc_card | int(11) | NO | | 0 | |
| name | varchar(80) | NO | UNI | NULL | |
| accountcode | varchar(20) | NO | | NULL | |
| regexten | varchar(20) | NO | | NULL | |
| amaflags | char(7) | YES | | NULL | |
| callgroup | char(10) | YES | | NULL | |
| callerid | varchar(80) | NO | | NULL | |
| canreinvite | varchar(20) | NO | | YES | |
| context | varchar(80) | NO | | NULL | |
| DEFAULTip | char(15) | YES | | NULL | |
| dtmfmode | char(7) | NO | | RFC2833 | |
| fromuser | varchar(80) | NO | | NULL | |
| fromdomain | varchar(80) | NO | | NULL | |
| host | varchar(31) | NO | MUL | NULL | |
| insecure | varchar(20) | NO | | NULL | |
| language | char(2) | YES | | NULL | |
| mailbox | varchar(50) | NO | | NULL | |
| md5secret | varchar(80) | NO | | NULL | |
| nat | char(20) | YES | | NULL | |
| deny | varchar(95) | NO | | NULL | |
| permit | varchar(95) | YES | | NULL | |
| mask | varchar(95) | NO | | NULL | |
| pickupgroup | char(10) | YES | | NULL | |
| port | char(5) | NO | MUL | | |
| qualify | char(7) | YES | | yes | |
| restrictcid | char(1) | YES | | NULL | |
| rtptimeout | char(3) | YES | | NULL | |
| rtpholdtimeout | char(3) | YES | | NULL | |
| secret | varchar(80) | NO | | NULL | |
| type | char(6) | NO | | friend | |
| username | varchar(80) | NO | | NULL | |
| disallow | varchar(100) | NO | | ALL | |
| allow | varchar(100) | NO | | NULL | |
| musiconhold | varchar(100) | NO | | NULL | |
| regseconds | int(11) | NO | | 0 | |
| ipaddr | char(15) | NO | MUL | | |
| cancallforward | char(3) | YES | | yes | |
| fullcontact | varchar(80) | NO | | NULL | |
| setvar | varchar(100) | NO | | NULL | |
| regserver | varchar(20) | YES | | NULL | |
| lastms | varchar(11) | YES | | NULL | |
| defaultuser | varchar(40) | NO | | | |
| auth | varchar(10) | NO | | | |
| subscribemwi | varchar(10) | NO | | | |
| vmexten | varchar(20) | NO | | | |
| cid_number | varchar(40) | NO | | | |
| callingpres | varchar(20) | NO | | | |
| usereqphone | varchar(10) | NO | | | |
| incominglimit | varchar(10) | NO | | | |
| subscribecontext | varchar(40) | NO | | | |
| musicclass | varchar(20) | NO | | | |
| mohsuggest | varchar(20) | NO | | | |
| allowtransfer | varchar(20) | NO | | | |
| autoframing | varchar(10) | NO | | | |
| maxcallbitrate | varchar(15) | NO | | | |
| outboundproxy | varchar(40) | NO | | | |
| rtpkeepalive | varchar(15) | NO | | 0 | |
| useragent | varchar(80) | YES | | NULL | |
| transport | enum('udp','tcp','udp,tcp','tcp,udp','udp,tcp,tls','udp,tcp,tls,ws,wss') | YES | | NULL | |
| directmedia | enum('yes','no','nonat','update') | YES | | NULL | |
| keepalive | int(5) | YES | | NULL | |
| qualifyfreq | int(11) | YES | | 1 | |
| callbackextension | varchar(40) | YES | | NULL | |
| icesupport | varchar(5) | NO | | yes | |
+-------------------+--------------------------------------------------------------------------+------+-----+---------+----------------+
==================================================================================================================================================================================================================================================
> WARNING[7205] chan_sip.c: Failure to write to tcp/tls socket
> ------------------------------------------------------------
>
> Key: ASTERISK-23630
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-23630
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Affects Versions: 11.8.1
> Environment: Asterisk 11.8.1 built by root @ ACS-SRVWEB-01 on a x86_64 running Linux on 2014-03-28 19:54:49 UTC
> Reporter: Abdoul OSSENI
> Assignee: Abdoul OSSENI
> Severity: Critical
> Attachments: myDebugLog.zip
>
>
> Hello,
> Somes warning about sip module :
> [Apr 14 16:58:32] WARNING[7205] chan_sip.c: Failure to write to tcp/tls socket
> [Apr 14 16:58:44] WARNING[7205] chan_sip.c: Failure to write to tcp/tls socket
> [Apr 14 16:58:56] WARNING[7205] chan_sip.c: Failure to write to tcp/tls socket
> In attachement complete debug.
> Regards.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list