custom callerid

jinkt
Posts: 17
Member Since:
2008-01-15

hello i'am trying to edit caller id this way,
in my extensions_custom.conf

[macro-user-callerid-custom]
exten => s,n,Noop(start) ;here i tried "s,1,Noop(start)"
exten => s,n,Set(CALLERID(name)=${DB(cidname/${CALLERID(number)}) ;;jnx ;;;
exten => s,n,Set(XXXX=${DB(cidname/${CALLERID(number)}) ;;jnx ;;;
exten => s,n,Noop(id search found $XXXX )

very strange is it doesn't show noop output in debug

here is dialplan

voice4*CLI> show dialplan macro-user-callerid
[ Context 'macro-user-callerid' created by 'pbx_config' ]
  'h' =>            1. Macro(hangupcall|)                         [pbx_config]
  's' =>            1. Noop(user-callerid: ${CALLERID(name)} ${CALLERID(number)}) [pbx_config]
                    2. Set(AMPUSER=${IF($["foo${AMPUSER}" = "foo"]?${CALLERID(number)}:${AMPUSER})}) [pbx_config]
                    3. GotoIf($["${CHANNEL:0:5}" = "Local"]?report) [pbx_config]
                    4. ExecIf($["${REALCALLERIDNUM:1:2}" = ""]|Set|REALCALLERIDNUM=${CALLERID(number)}) [pbx_config]
     [start]        5. Noop(REALCALLERIDNUM is ${REALCALLERIDNUM}) [pbx_config]
                    6. Set(AMPUSER=${DB(DEVICE/${REALCALLERIDNUM}/user)}) [pbx_config]
                    7. Set(AMPUSERCIDNAME=${DB(AMPUSER/${AMPUSER}/cidname)}) [pbx_config]
                    8. GotoIf($["x${AMPUSERCIDNAME:1:2}" = "x"]?report) [pbx_config]
                    9. Set(AMPUSERCID=${IF($["${DB_EXISTS(AMPUSER/${AMPUSER}/cidnum)}" = "1"]?${DB_RESULT}:${AMPUSER})}) [pbx_config]
                    10. Set(CALLERID(all)="${AMPUSERCIDNAME}" <${AMPUSERCID}>) [pbx_config]
                    11. Set(REALCALLERIDNUM=${DB(DEVICE/${REALCALLERIDNUM}/user)}) [pbx_config]
                    12. ExecIf($["${DB(AMPUSER/${AMPUSER}/language)}" != ""]|Set|CHANNEL(language)=${DB(AMPUSER/${AMPUSER}/language)}) [pbx_config]
     [report]       13. Noop(TTL: ${TTL} ARG1: ${ARG1})           [pbx_config]
                    14. GotoIf($[ "${ARG1}" = "SKIPTTL" ]?continue) [pbx_config]
     [report2]      15. Set(__TTL=${IF($["foo${TTL}" = "foo"]?64:$[ ${TTL} - 1 ])}) [pbx_config]
                    16. GotoIf($[ ${TTL} > 0 ]?continue)          [pbx_config]
                    17. Wait(${RINGTIMER})                        [pbx_config]
                    18. Answer()                                  [pbx_config]
                    19. Wait(2)                                   [pbx_config]
                    20. Playback(im-sorry&an-error-has-occured&with&call-forwarding) [pbx_config]
                    21. Macro(hangupcall|)                        [pbx_config]
                    22. Congestion(20)                            [pbx_config]
     [continue]     23. Noop(Using CallerID ${CALLERID(all)})     [pbx_config]
  Include =>        'macro-user-callerid-custom'                  [pbx_config]

-= 2 extensions (24 priorities) in 1 context. =-
The 'show dialplan' command is deprecated and will be removed in a future release. Please use 'dialplan show' instead.
voice4*CLI> show dialplan macro-user-callerid-custom
[ Context 'macro-user-callerid-custom' created by 'pbx_config' ]
  's' =>            5. Noop( jnx search id )                      [pbx_config]
                    6. Set(CALLERID(name)=${DB(cidname/${CALLERID(number)}) [pbx_config]
                    7. Set(XXXX=${DB(cidname/${CALLERID(number)}) [pbx_config]
                    8. Noop(id search jnx $XXXX )                 [pbx_config]

-= 1 extension (4 priorities) in 1 context. =-

--

"I'll carry your books, I'll carry a tune, I'll carry on, carry over,
carry forward, Cary Grant, cash & carry, Carry Me Back To Old Virginia,
I'll even Hara Kari if you show me how, but I will *not* carry a gun."
-- Hawkeye, M*A*S*H