Asterisk - Macro not available [on hold]
up vote
-2
down vote
favorite
i need some help here.
I try to configure dolibarr's plugin "Calling" on my asterisk.
I need to configure my extensions.conf so that all incoming calls on my asterisk return information to my dolibarr in order to have call notifications...
When I call from outside my softphone rings correctly, but as soon as I get off I get the following error message:
WARNING[3314][C-0000000d]: app.c:326 ast_app_exec_macro: Cannot run 'Macro(dolinotif)'. The application is not available.
Here my Extensions.conf
:
[Entrant] exten => s,1,Goto(dolibarr_notification,s,1) ;Redirection
exten => _X.,1,NoOp()
exten => _X.,n,Set(__DOLI_CALLER=${CUT(CUT(SIP_HEADER(From),@,1),:, 2)})
exten => _X.,n,Set(__DOLI_CALLE=${CUT(CUT(SIP_HEADER(To),@,1),:, 2)})
[macro-dolinotif]
exten => s,1,SET(${CURL(https://url.com/htdocs/custom/calling/calling.php?account=${EXTEN}&caller=${DOLI_CALLER}&callee=${DOLI_CALLE}&type=CONNECT&callref=${DOLI_CALLER}&version=1)})
[dolibarr_notification]
exten => s,1,SET(CALLERID(name)=${CURL(https://url.com/htdocs/custom/calling/calling.php?account=${USERNAME}&caller=${DOLI_CALLER}&callee=${DOLI_CALLE}&type=SETUP&callref=${DOLI_CALLER}&version=1)})
exten => s,n,Answer()
exten => s,n,Dial(SIP/MY_NUMBER,60,etTrM(dolinotif))
exten => h,1,SET(CALLERID(name)=${CURL(https://url.com/htdocs/custom/calling/calling.php?account=${USERNAME}&caller=${DOLI_CALLER}&callee=${DOLI_CALLE}&type=RELEASE&callref=${DOLI_CALLER}&version=1)})
exten => h,2,Hangup(16)
I'm a begineer on Asterisk, maybe it's just a dumb problem... If you need more informations ask me.
Thank a lot.
Edit : The question is related to Asterisk on Ubuntu Server 18.04.
asterisk
New contributor
put on hold as off-topic by Melebius, Soren A, Tom Brossman, Eric Carvalho, Thomas 2 days ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – Melebius, Soren A, Tom Brossman, Eric Carvalho, Thomas
If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
up vote
-2
down vote
favorite
i need some help here.
I try to configure dolibarr's plugin "Calling" on my asterisk.
I need to configure my extensions.conf so that all incoming calls on my asterisk return information to my dolibarr in order to have call notifications...
When I call from outside my softphone rings correctly, but as soon as I get off I get the following error message:
WARNING[3314][C-0000000d]: app.c:326 ast_app_exec_macro: Cannot run 'Macro(dolinotif)'. The application is not available.
Here my Extensions.conf
:
[Entrant] exten => s,1,Goto(dolibarr_notification,s,1) ;Redirection
exten => _X.,1,NoOp()
exten => _X.,n,Set(__DOLI_CALLER=${CUT(CUT(SIP_HEADER(From),@,1),:, 2)})
exten => _X.,n,Set(__DOLI_CALLE=${CUT(CUT(SIP_HEADER(To),@,1),:, 2)})
[macro-dolinotif]
exten => s,1,SET(${CURL(https://url.com/htdocs/custom/calling/calling.php?account=${EXTEN}&caller=${DOLI_CALLER}&callee=${DOLI_CALLE}&type=CONNECT&callref=${DOLI_CALLER}&version=1)})
[dolibarr_notification]
exten => s,1,SET(CALLERID(name)=${CURL(https://url.com/htdocs/custom/calling/calling.php?account=${USERNAME}&caller=${DOLI_CALLER}&callee=${DOLI_CALLE}&type=SETUP&callref=${DOLI_CALLER}&version=1)})
exten => s,n,Answer()
exten => s,n,Dial(SIP/MY_NUMBER,60,etTrM(dolinotif))
exten => h,1,SET(CALLERID(name)=${CURL(https://url.com/htdocs/custom/calling/calling.php?account=${USERNAME}&caller=${DOLI_CALLER}&callee=${DOLI_CALLE}&type=RELEASE&callref=${DOLI_CALLER}&version=1)})
exten => h,2,Hangup(16)
I'm a begineer on Asterisk, maybe it's just a dumb problem... If you need more informations ask me.
Thank a lot.
Edit : The question is related to Asterisk on Ubuntu Server 18.04.
asterisk
New contributor
put on hold as off-topic by Melebius, Soren A, Tom Brossman, Eric Carvalho, Thomas 2 days ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – Melebius, Soren A, Tom Brossman, Eric Carvalho, Thomas
If this question can be reworded to fit the rules in the help center, please edit the question.
2
Is this question related to Ubuntu?
– DK Bose
Nov 21 at 10:30
Although the question might be on-topic, you could get better results when you posted your question in a community of Asterisk users since it doesn’t seem to contain any Ubuntu-specific issue.
– Melebius
Nov 21 at 14:34
add a comment |
up vote
-2
down vote
favorite
up vote
-2
down vote
favorite
i need some help here.
I try to configure dolibarr's plugin "Calling" on my asterisk.
I need to configure my extensions.conf so that all incoming calls on my asterisk return information to my dolibarr in order to have call notifications...
When I call from outside my softphone rings correctly, but as soon as I get off I get the following error message:
WARNING[3314][C-0000000d]: app.c:326 ast_app_exec_macro: Cannot run 'Macro(dolinotif)'. The application is not available.
Here my Extensions.conf
:
[Entrant] exten => s,1,Goto(dolibarr_notification,s,1) ;Redirection
exten => _X.,1,NoOp()
exten => _X.,n,Set(__DOLI_CALLER=${CUT(CUT(SIP_HEADER(From),@,1),:, 2)})
exten => _X.,n,Set(__DOLI_CALLE=${CUT(CUT(SIP_HEADER(To),@,1),:, 2)})
[macro-dolinotif]
exten => s,1,SET(${CURL(https://url.com/htdocs/custom/calling/calling.php?account=${EXTEN}&caller=${DOLI_CALLER}&callee=${DOLI_CALLE}&type=CONNECT&callref=${DOLI_CALLER}&version=1)})
[dolibarr_notification]
exten => s,1,SET(CALLERID(name)=${CURL(https://url.com/htdocs/custom/calling/calling.php?account=${USERNAME}&caller=${DOLI_CALLER}&callee=${DOLI_CALLE}&type=SETUP&callref=${DOLI_CALLER}&version=1)})
exten => s,n,Answer()
exten => s,n,Dial(SIP/MY_NUMBER,60,etTrM(dolinotif))
exten => h,1,SET(CALLERID(name)=${CURL(https://url.com/htdocs/custom/calling/calling.php?account=${USERNAME}&caller=${DOLI_CALLER}&callee=${DOLI_CALLE}&type=RELEASE&callref=${DOLI_CALLER}&version=1)})
exten => h,2,Hangup(16)
I'm a begineer on Asterisk, maybe it's just a dumb problem... If you need more informations ask me.
Thank a lot.
Edit : The question is related to Asterisk on Ubuntu Server 18.04.
asterisk
New contributor
i need some help here.
I try to configure dolibarr's plugin "Calling" on my asterisk.
I need to configure my extensions.conf so that all incoming calls on my asterisk return information to my dolibarr in order to have call notifications...
When I call from outside my softphone rings correctly, but as soon as I get off I get the following error message:
WARNING[3314][C-0000000d]: app.c:326 ast_app_exec_macro: Cannot run 'Macro(dolinotif)'. The application is not available.
Here my Extensions.conf
:
[Entrant] exten => s,1,Goto(dolibarr_notification,s,1) ;Redirection
exten => _X.,1,NoOp()
exten => _X.,n,Set(__DOLI_CALLER=${CUT(CUT(SIP_HEADER(From),@,1),:, 2)})
exten => _X.,n,Set(__DOLI_CALLE=${CUT(CUT(SIP_HEADER(To),@,1),:, 2)})
[macro-dolinotif]
exten => s,1,SET(${CURL(https://url.com/htdocs/custom/calling/calling.php?account=${EXTEN}&caller=${DOLI_CALLER}&callee=${DOLI_CALLE}&type=CONNECT&callref=${DOLI_CALLER}&version=1)})
[dolibarr_notification]
exten => s,1,SET(CALLERID(name)=${CURL(https://url.com/htdocs/custom/calling/calling.php?account=${USERNAME}&caller=${DOLI_CALLER}&callee=${DOLI_CALLE}&type=SETUP&callref=${DOLI_CALLER}&version=1)})
exten => s,n,Answer()
exten => s,n,Dial(SIP/MY_NUMBER,60,etTrM(dolinotif))
exten => h,1,SET(CALLERID(name)=${CURL(https://url.com/htdocs/custom/calling/calling.php?account=${USERNAME}&caller=${DOLI_CALLER}&callee=${DOLI_CALLE}&type=RELEASE&callref=${DOLI_CALLER}&version=1)})
exten => h,2,Hangup(16)
I'm a begineer on Asterisk, maybe it's just a dumb problem... If you need more informations ask me.
Thank a lot.
Edit : The question is related to Asterisk on Ubuntu Server 18.04.
asterisk
asterisk
New contributor
New contributor
edited Nov 21 at 14:28
New contributor
asked Nov 21 at 10:25
Kahji
61
61
New contributor
New contributor
put on hold as off-topic by Melebius, Soren A, Tom Brossman, Eric Carvalho, Thomas 2 days ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – Melebius, Soren A, Tom Brossman, Eric Carvalho, Thomas
If this question can be reworded to fit the rules in the help center, please edit the question.
put on hold as off-topic by Melebius, Soren A, Tom Brossman, Eric Carvalho, Thomas 2 days ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – Melebius, Soren A, Tom Brossman, Eric Carvalho, Thomas
If this question can be reworded to fit the rules in the help center, please edit the question.
2
Is this question related to Ubuntu?
– DK Bose
Nov 21 at 10:30
Although the question might be on-topic, you could get better results when you posted your question in a community of Asterisk users since it doesn’t seem to contain any Ubuntu-specific issue.
– Melebius
Nov 21 at 14:34
add a comment |
2
Is this question related to Ubuntu?
– DK Bose
Nov 21 at 10:30
Although the question might be on-topic, you could get better results when you posted your question in a community of Asterisk users since it doesn’t seem to contain any Ubuntu-specific issue.
– Melebius
Nov 21 at 14:34
2
2
Is this question related to Ubuntu?
– DK Bose
Nov 21 at 10:30
Is this question related to Ubuntu?
– DK Bose
Nov 21 at 10:30
Although the question might be on-topic, you could get better results when you posted your question in a community of Asterisk users since it doesn’t seem to contain any Ubuntu-specific issue.
– Melebius
Nov 21 at 14:34
Although the question might be on-topic, you could get better results when you posted your question in a community of Asterisk users since it doesn’t seem to contain any Ubuntu-specific issue.
– Melebius
Nov 21 at 14:34
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
2
Is this question related to Ubuntu?
– DK Bose
Nov 21 at 10:30
Although the question might be on-topic, you could get better results when you posted your question in a community of Asterisk users since it doesn’t seem to contain any Ubuntu-specific issue.
– Melebius
Nov 21 at 14:34