Hi all
Summary: (asterisk 16.7.0, chan_pjsip, send_rpid=yes)
- originating call from internal endpoint using Dial() application from within a macro has the channel variable “Extension: ~~s~~”
– This in turn sets the phones display tosas the number dialed and adds to the phones history so a “redial” will fail for example.
EVEN the ael macro EXAMPLE here has the same symptom.
setting send_rpid=no negates the symptom as one would expect.
But we need this on for transfers and callpark pickup etc.
Extensive testing shows this only happes when dialing within the macro
If I “goto” out of the macro (yikes)… to make the dial it will send the rpid as expected
Am i not supposed to Dial from Macro’s by design in AEL?
Home - Asterisk Documentation
“Think of a macro as a combination of a context with one nameless extension…”
Specifically
Remote-Party-ID: <sip:~~s~~@PBX-IPADDR>;party=called;privacy=off;screen=no
Via: SIP/2.0/UDP ENDPOINT-IPADDR:5060;rport=5060;received=ENDPOINT-IPADDR;branch=z9hG4bK1491402405
Call-ID: 1330286282-5060-51@BA.CA.C.IA
From: "5000" <sip:5000@PBX-IPADDR>;tag=1215047196
To: <sip:5001@PBX-IPADDR>;tag=23374986-8fd3-4273-ae6c-f45c81cb9b51
CSeq: 451 INVITE
Server: ..<>..
Contact: <sip:PBX-IPADDR:5060>
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Remote-Party-ID: <sip:~~s~~@PBX-IPADDR>;party=called;privacy=off;screen=no
Content-Length: 0
AEL MACRO
macro std-exten( ext , dev ) {
Dial(${dev}/${ext},20);
switch(${DIALSTATUS}) {
case BUSY:
Voicemail(${ext},b);
break;
default:
Voicemail(${ext},u);
}
catch a {
VoiceMailMain(${ext});
return;
}
}
context example {
_5XXX => &std-exten(${EXTEN},"PJSIP");
DumpChan();
- from inside the macro
Dumping Info For Channel: PJSIP/5001-000000a3:
==============================================================================
Extension= ~~s~~
DumpChan();
- Before calling the Macro... extension is correct.
Dumping Info For Channel: PJSIP/5001-000000a3:
==============================================================================
Extension= 5001