[asterisk-bugs] [JIRA] (ASTERISK-24508) res_pjsip: REFER request from SNOM 710/8.7.3.25.5 is rejected with "400 bad request"

Rusty Newton (JIRA) noreply at issues.asterisk.org
Mon Nov 10 14:12:33 CST 2014


    [ https://issues.asterisk.org/jira/browse/ASTERISK-24508?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=223421#comment-223421 ] 

Rusty Newton edited comment on ASTERISK-24508 at 11/10/14 2:11 PM:
-------------------------------------------------------------------

yes the pjsip refer module up and running (see below for the complete list)

As I stated in the original ticket, if the attended transfer is made by the yealink phone (in other words exchanging the roles of ext 601 and ext 602 in the example) it works properly and the refer is accepted.

[Edit by Rusty - removed excessive console output and attached as moduleshow_output.txt - per the guidelines]


was (Author: beppo.it):
yes the pjsip refer module up and running (see below for the complete list)

As I stated in the original ticket, if the attended transfer is made by the yealink phone (in other words exchanging the roles of ext 601 and ext 602 in the example) it works properly and the refer is accepted.

localhost*CLI> module show like pjsip
Module                         Description                              Use Count  Status      Support Level
chan_pjsip.so                  PJSIP Channel Driver                     0          Running              core
func_pjsip_endpoint.so         Get information about a PJSIP endpoint   0          Running              core
res_hep_pjsip.so               PJSIP HEPv3 Logger                       0          Running          extended
res_pjsip.so                   Basic SIP resource                       29         Running              core
res_pjsip_acl.so               PJSIP ACL Resource                       0          Running              core
res_pjsip_authenticator_digest.so PJSIP authentication resource            0          Running              core
res_pjsip_caller_id.so         PJSIP Caller ID Support                  0          Running              core
res_pjsip_dialog_info_body_generator.so PJSIP Extension State Dialog Info+XML Pr 0          Running              core
res_pjsip_diversion.so         PJSIP Add Diversion Header Support       0          Running              core
res_pjsip_dtmf_info.so         PJSIP DTMF INFO Support                  0          Running              core
res_pjsip_endpoint_identifier_anonymous.so PJSIP Anonymous endpoint identifier      0          Running              core
res_pjsip_endpoint_identifier_ip.so PJSIP IP endpoint identifier             0          Running              core
res_pjsip_endpoint_identifier_user.so PJSIP username endpoint identifier       0          Running              core
res_pjsip_exten_state.so       PJSIP Extension State Notifications      0          Running              core
res_pjsip_header_funcs.so      PJSIP Header Functions                   0          Running              core
res_pjsip_log_forwarder.so     PJSIP Log Forwarder                      0          Running              core
res_pjsip_logger.so            PJSIP Packet Logger                      0          Running              core
res_pjsip_messaging.so         PJSIP Messaging Support                  0          Running              core
res_pjsip_multihomed.so        PJSIP Multihomed Routing Support         0          Running              core
res_pjsip_mwi.so               PJSIP MWI resource                       0          Running              core
res_pjsip_mwi_body_generator.so PJSIP MWI resource                       0          Running              core
res_pjsip_nat.so               PJSIP NAT Support                        0          Running              core
res_pjsip_notify.so            CLI/AMI PJSIP NOTIFY Support             0          Running              core
res_pjsip_one_touch_record_info.so PJSIP INFO One Touch Recording Support   0          Running              core
res_pjsip_outbound_authenticator_digest.so PJSIP authentication resource            0          Running              core
res_pjsip_outbound_publish.so  PJSIP Outbound Publish Support           2          Running           unknown
res_pjsip_outbound_registration.so PJSIP Outbound Registration Support      0          Running              core
res_pjsip_path.so              PJSIP Path Header Support                0          Running              core
res_pjsip_phoneprov_provider.so PJSIP Phoneprov Provider                 0          Not Running       unknown
res_pjsip_pidf_body_generator.so PJSIP Extension State PIDF Provider      0          Running              core
res_pjsip_pidf_digium_body_supplement.so PJSIP PIDF Digium presence supplement    0          Running              core
res_pjsip_pidf_eyebeam_body_supplement.so PJSIP PIDF Eyebeam supplement            0          Running              core
res_pjsip_publish_asterisk.so  PJSIP Asterisk Event PUBLISH Support     0          Running           unknown
res_pjsip_pubsub.so            PJSIP event resource                     5          Running              core
res_pjsip_refer.so             PJSIP Blind and Attended Transfer Suppor 0          Running              core
res_pjsip_registrar.so         PJSIP Registrar Support                  0          Running              core
res_pjsip_registrar_expire.so  PJSIP Contact Auto-Expiration            0          Running              core
res_pjsip_rfc3326.so           PJSIP RFC3326 Support                    0          Running              core
res_pjsip_sdp_rtp.so           PJSIP SDP RTP/AVP stream handler         0          Running              core
res_pjsip_send_to_voicemail.so PJSIP REFER Send to Voicemail Support    0          Running              core
res_pjsip_session.so           PJSIP Session resource                   21         Running              core
res_pjsip_t38.so               PJSIP T.38 UDPTL Support                 0          Running              core
res_pjsip_transport_websocket.so PJSIP WebSocket Transport Support        0          Not Running          core
res_pjsip_xpidf_body_generator.so PJSIP Extension State PIDF Provider      0          Running              core
44 modules loaded


> res_pjsip: REFER request from SNOM 710/8.7.3.25.5 is rejected with "400 bad request"
> ------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-24508
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24508
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip, Resources/res_pjsip_refer
>    Affects Versions: 13.0.0
>         Environment: Asterisk 13.0.0 on CentOS 6.5 
> extension 601 - SNOM 710
> extension 602 - yealink T46
> extension 603 - Jitsi
>            Reporter: Beppo mazzucato
>            Assignee: Beppo mazzucato
>         Attachments: ASTERISK-24498-13.diff, backtrace.txt, issue_24508_full_log, log2.txt, log.txt, moduleshow_output.txt, snom.pcap
>
>
> *NOTE*:
> The original issue was ASTERISK-24498. In that issue, Asterisk crashed when attempting to convert a received RTCP packet into JSON format. That crash is being fixed under ASTERISK-24498.
> After fixing the crash, the attended transfer being initiated by the SNOM was rejected with a 400 bad request. That problem is being handled under this issue.
> h3. Original Problem Description
> Asterisk crash trying to perform an attended transfer 
> ext 602 call ext 601
> ext 601 put the call on hold
> ext 601 call extension 603
> when ext 603 answers asterisk crashes
> Unattended transfer works properly
> If the attended transfer is made by the yealink phone (in other words echanging the roles of ext 601 and ext 602 above) it works properly
> Same scenario doesn't crash with asterisk 11.13.1
> I'm attaching log and backtrace
> h3. New Problem (REFER failure)
> {quote}
> I'm attaching the pcap capture for your further investigation.
> I tested the patch ... it doesn't crash anymore but the transfer doesn't complete in fact asterisk reply with a "400 Bad Request" to the REFER message from the snom phone. I'm attaching the log showing this, please let me know if you need the pcap.
> {quote}



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list