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.










share|improve this question









New contributor




Kahji is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











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















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.










share|improve this question









New contributor




Kahji is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











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













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.










share|improve this question









New contributor




Kahji is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











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






share|improve this question









New contributor




Kahji is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Kahji is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited Nov 21 at 14:28





















New contributor




Kahji is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Nov 21 at 10:25









Kahji

61




61




New contributor




Kahji is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Kahji is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Kahji is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




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














  • 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















active

oldest

votes






















active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

Ellipse (mathématiques)

Quarter-circle Tiles

Mont Emei