Asterisk extension code

Job ID: 35016904

Budget: $10 – $30 USD

I need to modify an existing extension from :

exten => 5512345,1,Answer
same => n,AGI(cmp-time-v2.php)
same => n,Playback(/var/lib/asterisk/sounds/time/${TimeFile})
same => n,AGI(cmp-weather-v2.php,"KMIA")
same => n,Playback(/var/lib/asterisk/sounds/weather/KMIA-weather)
same => n,Hangup

To something that if the number dialed matches 305NXXXXXX, then to use (cmp-weather-v2.php,"KMIA"), but if the number dialed matches 954NXXXXXX, then to use (cmp-weather-v2.php,"KFLL").

Thanks,
Related categories: Software Architecture Asterisk PBX