Viewing 2 posts - 1 through 2 (of 2 total)
  • Migrated from old forum
    Participant
    Post count: 327
    #5954 |

    As I’m not sure if the end user will dial a number with/without 1+ and with or without the locale area code (needs to be striped off if there) I started using the Set component with the equation CalledNumber=”${EXTEN:1}” and then a Set with EXTEN = “${CalledNumber}” to put it back any time I found a 1+. To see what happened I did a Log with “${EXTEN}”/”${CalledNumber}”. I used CalledNumber just to get an intermediate variable I could observe. The output from the Set’s looks ok but the Log gave “1209XXXYYYY/209XXXYYYY” as though it didn’t replace the value back into EXTEN. Any ideas?

    Migrated from old forum
    Participant
    Post count: 327
    #5955 |

    Jim,

    Asterisk defined varibale EXTEN can not be modified with the set command, you should create and use some other variable for this purposes.

    Hermann

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.