[YMCS/YDMP Free Trial Program]Yealink would like to offer Free Trial Program of Yealink device management service for our current eligible customers. You can see the details below.
https://www.yealink.com/ydmp-freetrial-2020


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with the call pick-up function.
Author Message
benny Offline
Junior Member
**

Posts: 6
Joined: Nov 2015
Reputation: 0
Post: #5
RE: Problem with the call pick-up function.
Hello again,

I find the source of this problem. This has nothing to with the settings in Asterisk.
It is problem with the code of Asterisk.
The Admin told me, that they patched the Asterisk server, so that you can pick up calls out of a waiting loop if you are not an agent.

This is code before the patch:

Code:
if (sip_cfg.pedanticsipchecking) {
    ast_str_append(tmp, 0, "<dialog id=\"%s\" call-id=\"pickup-%s\" local-tag=\"%s\" remote-tag=\"%s\" direction=\"recipient\">\n",
            exten, p->callid, p->theirtag, p->tag);  /*Changed*/
} else {
    ast_str_append(tmp, 0, "<dialog id=\"%s\" call-id=\"pickup-%s\" direction=\"recipient\">\n",
            exten, p->callid); /*Changed*/
}
ast_str_append(tmp, 0,
        "<remote>\n"
        /* See the limitations of this above.  Luckily the phone seems to still be
           happy when these values are not correct. */
        "<identity display=\"%s\">%s</identity>\n"
        "<target uri=\"%s\"/>\n" /*Changed*/
        "</remote>\n"
        "<local>\n"
        "<identity display=\"%s\">%s</identity>\n"
        "<target uri=\"%s\"/>\n"
        "</local>\n",
        remote_display, remote_target, remote_target, local_display, local_target, local_target); /*Changed*/
} else {
    ast_str_append(tmp, 0, "<dialog id=\"%s\" direction=\"recipient\">\n", exten);
}


This is the code after the patch:

Code:
/* We create a fake call-id which the phone will send back in an INVITE
                                   Replaces header which we can grab and do some magic with. */
if (sip_cfg.pedanticsipchecking) {
    ast_str_append(tmp, 0, "<dialog id=\"%s\" direction=\"recipient\">\n",
            exten);
} else {
    ast_str_append(tmp, 0, "<dialog id=\"%s\" direction=\"recipient\">\n",
            exten);
}
ast_str_append(tmp, 0,
        "<remote>\n"
        /* See the limitations of this above.  Luckily the phone seems to still be
           happy when these values are not correct. */
        "<identity display=\"%s\">%s</identity>\n"
        "<target uri=\"sip:**%s@%s\"/>\n"
        "</remote>\n"
        "<local>\n"
        "<identity display=\"%s\">%s</identity>\n"
        "<target uri=\"%s\"/>\n"
        "</local>\n",
        remote_display, remote_target, exten, p->fromdomain, local_display, local_target, local_target);
} else {
    ast_str_append(tmp, 0, "<dialog id=\"%s\" direction=\"recipient\">\n", exten);
}

I'm trying to figure out, what exactly is causing the problem and i'm trying to find a solution with the function active.
I would be happy, if someone can help me out.

Greetings,

Benny
(This post was last modified: 12-14-2015 10:47 PM by benny.)
12-08-2015 06:09 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Problem with the call pick-up function. - benny - 12-08-2015 06:09 PM

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Multicast Paging And SIP Call nolto 1 76 09-24-2022 09:41 AM
Last Post: testlabuser2015
  Yealink loses network during a call jardelp90 2 724 08-05-2022 09:26 PM
Last Post: Chris708
  xml push beep when on call jimk4484 0 341 07-08-2022 03:39 AM
Last Post: jimk4484
  W90DM annoying hum , crackles during call reed 3 1,005 06-23-2022 09:23 PM
Last Post: reed
  Headset auto answer waiting call T43U and WH62 TravisD 3 1,243 06-21-2022 11:58 AM
Last Post: TravisD
  Problem of OpenVPN simonleung 0 666 04-26-2022 02:24 PM
Last Post: simonleung
  WH67 Headset - DOES NOT RING IN EAR ON INCOMING CALL GlasairII 1 1,280 03-31-2022 02:53 AM
Last Post: Yisroel_MongoTEL
  V83 and openvpn problem avayax 12 17,224 03-04-2022 12:10 AM
Last Post: rfrantik@rfcinc.com
Exclamation T46G TIME Calculation Problem briankelly63 5 13,991 12-06-2021 10:09 AM
Last Post: jeanpierre26
  T53 Calling from call history jake 0 1,521 10-01-2021 10:24 AM
Last Post: jake

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us   Yealink   Return to Top   Return to Content   Lite (Archive) Mode   RSS Syndication