Show a call log of this and a sip capture. And I’m not sure how your configuration makes Follow Me work. I don’t see anything checking or using Follow Me in your solution.
I left the following configuration in extensions_custom.conf
:
[set-connectedline]
exten => start,1,NoOp(Setting CONNECTEDLINE globally)
exten => start,n,Set(CONNECTEDLINE(name,i)=${DB(AMPUSER/${ARG1}/cidname)})
exten => start,n,Set(CONNECTEDLINE(number,i)=${ARG1})
exten => start,n,NoOp(Ringing started)
exten => start,n,Dial(${ARG2},${ARG3},${ARG4})
exten => start,n,Return()
[from-internal-custom]
exten => _.,1,Gosub(set-connectedline,start,1(${EXTEN},PJSIP/${EXTEN},30,tr))
I tested it, and this configuration works even with the Follow Me option enabled on the extension. In Follow Me, I specified that the call goes to the Queue, which is why I added #
. I don’t believe there is an issue with the Follow Me option. Even when I disable the Follow Me option, the name of the person I’m calling doesn’t show up on the screen during the ring phase, only the extension is shown. But with this configuration in extensions_custom.conf
, everything works fine.
Over the weekend, I will generate a PCAP file with pjsip set logger pcap /home/asterisk/call.pcap
and forward it.
What I’ve noticed is that when using the standard dial plan (without this configuration in extensions_custom.conf
), sometimes the name appears on the screen, e.g., A. Topalovic (Available). I figured out that it pulls this information from the UCP. However, there’s no clear rule about when the name will show up during the call—it only happens occasionally, very rarely, but it does happen… ???
Again, I think the OpenStage phone is causing some issue here… If I remember correctly, during the testing phase we used Grandstream phones, and it worked fine there. Unfortunately, I’m no longer able to get those phones and test them. At another location, we use Cisco phones with FreePBX, and everything works normally there, showing the name of the person being called during the call.
Once again, thanks to everyone!
[set-connectedline]
exten => start,1,NoOp(Setting CONNECTEDLINE globally)
exten => start,n,Set(CONNECTEDLINE(name)=${DB(AMPUSER/${ARG1}/cidname)})
exten => start,n,Set(CONNECTEDLINE(number)=${ARG1})
exten => start,n,NoOp(Ringing started)
exten => start,n,Return()
[from-internal-custom]
exten => _,1,Gosub(set-connectedline,start,1(${EXTEN},PJSIP/${EXTEN},30,tr))
This is the configuration that has worked best for me. I had an issue with directly picking up calls that come from internal extensions. If the call was external, the direct pickup worked fine.
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.