[asterisk-bugs] [JIRA] (ASTERISK-23294) SIPqualifypeer (over AMI) does not update status when peer is UNREACHABLE
MS (JIRA)
noreply at issues.asterisk.org
Thu Feb 13 05:49:03 CST 2014
MS created ASTERISK-23294:
-----------------------------
Summary: SIPqualifypeer (over AMI) does not update status when peer is UNREACHABLE
Key: ASTERISK-23294
URL: https://issues.asterisk.org/jira/browse/ASTERISK-23294
Project: Asterisk
Issue Type: Bug
Security Level: None
Components: Channels/chan_sip/General
Affects Versions: 11.7.0
Environment: Ubuntu 12.04
Reporter: MS
I'm using a manager (wrote in c) to execute some specific actions using AMI.
1- Register a peer to Asterisk => if you execute "sip show peers" you can see the ip of the host and the status is OK
2- Kill the peer => if you have a high value for qualifyfreq, the informations are still available (ip and status)
3- Send the action SIPqualifypeer from AMI => you will see in the console the message : __sip_xmit: sip_xmit of 0xb6d0c798 (len 1007) to 192.168.48.206:49261 returned -2: Resource temporarily unavailable
You don't have the message Peer 'mypeer' is now UNREACHABLE!
When you read the c code of chan_sip you can see that the function sip_poke_peer() call xmitres = transmit_invite(p, SIP_OPTIONS, 0, 2, NULL);
This function calls send_request() which calls
res = (reliable) ? __sip_reliable_xmit(p, seqno, 0, req->data, (reliable == XMIT_CRITICAL), req->method) : __sip_xmit(p, req->data);
In my case, the value returned by __sip_reliable_xmit is not XMIT_ERROR but AST_FAILURE then in the function sip_poke_peer() the function sip_poke_noanswer() is not called and finaly the status is not updated.
I think there is a problem. I'm new to Asterisk so I can't make the patch but I think the return should test the both cases or just not return AST_FAILURE.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the asterisk-bugs
mailing list