A
A
alexdora2016-11-19 21:09:13
Asterisk
alexdora, 2016-11-19 21:09:13

How do I change the displayed phone number?

Which variable should be changed to change the displayed number on Ex (SIP phone)
When calling it

[pathtest]
exten => s,1,Set(${CALLERID(name)} = "Popa")
exten => s,n,Set(${CALLERID(num)} = "7977777777")
exten => s, n,Dial(SIP/199,300,Tt))

LOG
- Executing [[email protected]:1] Set("SIP/Multifon-000003bb", "7812X = "Popa"") in new stack
[2016-11-19 22:32:32] WARNING[10630][C-00007699 ]: pbx.c:11555 pbx_builtin_setvar: Please avoid unnecessary spaces on variables as it may lead to unexpected results ('7812X ' set to ' "Popa"').
-- Executing [[email protected]:2] Set("SIP/Multifon-000003bb", "7812X = "Popa"") in new stack
[2016-11-19 22:32:32] WARNING[10630][C- 00007699]: pbx.c:11555 pbx_builtin_setvar: Please avoid unnecessary spaces on variables as it may lead to unexpected results ('7812X ' set to ' "7977777777"').
-- Executing [[email protected]:3] Dial("SIP/Multifon-000003bb", "SIP/199,300,Tt)") in new stack

Generally CallerID(name|num|all) does not work for some reason. The call goes to the trunk, the trunk turns to custom exstentions pathtest. But the original number is displayed

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
R
Rsa97, 2016-11-19
@alexdora

CALLERID(num)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question