Hello, I am experiencing weird problem in Asterisk 16.2, possibly a bug. Same thing works fine in Asterisk 11. Here is the situation:
I have 2 extensions on 2 phones. 4 extensions in total. phone 1: 8882 8382 phone 2: 8884 8384 And I have 2 SIP trunks for outgoing calls. I want to call via SIP1 when called via 8882 or 8884, and SIP2 when called via 8382 or 8384. And one last detail. SIP1 has caller ID spoofing enabled (used for call forwarding), so for outgoing calls, I have to explicitly set caller ID, otherwise 8882/8884 would be shown. Here is my config: exten => _0XXXXXXXX./_888[24],1,Verbose(0,EXTERNAL CALL) same => n,Macro(record) same => n,Set(CALLERID(num)=0441111111) same => n,DIAL(SIP/0441111111/${EXTEN}) same => n,Hangup() exten => _0XXXXXXXX./_838[24],1,Verbose(0,EXTERNAL CALL) same => n,Macro(record) same => n,DIAL(SIP/0442222222/${EXTEN}) same => n,Hangup() Now here the problem. The combination of /_888[24] and Set(CALLERID(num)=0441111111) causes problems: sent to invalid extension but no invalid handler: context,exten,priority=fullaccess,0793333333,4 When I comment the line Set(CALLERID, everything works. Or when i change the first line to: exten => _0XXXXXXXX.,1,Verbose(0,EXTERNAL CALL) Everything works as well. Only the combination of both /_888[24] and Set(CALLERID(num)=0441111111) causes problems: can anybody understand what is happening here ? thanks, -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users