kombi1
(kombi1)
January 19, 2024, 10:00am
1
Trunk providers generally don’t allow to forward caller ids. I am thinking of doing that via text/sms or email so off hours support knows who to call back.
Has anyone ever done that yet? Where would one put i.e. php’s mail() command?
Cheers,
kombi
kombi1
(kombi1)
January 19, 2024, 10:16am
2
better yet, asterisk has:
SMS(name,[options,[addr,[body]]])
But then the old question emerges: How do I alter the dialplan without it being overwritten on each “apply changes”?
kombi1
(kombi1)
January 19, 2024, 10:18am
3
see
extensions_custom.conf
jcolp
(Joshua Colp)
January 19, 2024, 10:20am
4
The SMS dialplan application doesn’t do what you think it might. It’s for SMS over traditional analog landlines on some telcos.
kombi1
(kombi1)
January 19, 2024, 10:23am
5
doh!
And I thought I could configure that with an sms gateway and we’re good to go.
I believe/remember you can run external code from the dialplan though?
jcolp
(Joshua Colp)
January 19, 2024, 10:35am
6
You can execute AGIs which are external, or use System to execute something, yes.
kombi1
(kombi1)
January 19, 2024, 10:39am
7
SYSTEM it was! Thanks jcolp!
Where / in which context would I put that to fire on a call being forwarded to a misc destination?
ps coolish helmet! Is that from paragliding or road cycling?
jcolp
(Joshua Colp)
January 19, 2024, 10:51am
8
I don’t speak FreePBX so can’t comment on that.
It’s a POC Ventral MIPS helmet for road cycling.
kombi1
(kombi1)
January 19, 2024, 11:09am
9
found it, they do it like
2367 [ext-miscdests]
2368 include => ext-miscdests-custom
2369 exten => 5,1,Noop(MiscDest: Daniel Mobil)
2370 exten => 5,n,Goto(from-internal,[...],1)
2371
so I guess I just squeeze in:
exten => 5,n,System(echo "dear off hours support engineer, use " + CALLERID(num) + " to call back" | mail -s "use this to call back" "to@address")
(might not be how one concatenates in the dialplan though)
ps sounds like one that finally has little drag and sweat
system
(system)
Closed
February 19, 2024, 11:09am
10
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.