chan-sccp / PAMI

Fork of PHP Asterisk Manager Interface ( AMI ) supports synchronous command ( action )/ responses and asynchronous events using the pattern observer-listener. Supports commands with responses with multiple events. Very suitable for development of operator consoles and / or asterisk / channels / peers monitoring through SOA, etc
http://marcelog.github.com/PAMI
Apache License 2.0
26 stars 21 forks source link

Return message values as string if there's a leading zero #5

Closed passcod closed 4 years ago

passcod commented 4 years ago

Avoids losing information e.g. with extensions that have leading zeroes.

dkgroot commented 4 years ago

Making a small change to your code so that it compiles on php 5.6 as well. I think the '?? null' check can be removed

dkgroot commented 4 years ago

I was doing the same thing, but you beat me :-)

passcod commented 4 years ago

Easier for me; I had the code open already

dkgroot commented 4 years ago

Thanks a lot Félix

dkgroot commented 4 years ago

I made some small chan-sccp additions, you might want to pull these from upstream master (If you like)

passcod commented 4 years ago

I'll just revert the consuming repos to point to yours on monday and delete this fork once that's done

dkgroot commented 4 years ago

Also an option :+1: If you have any future contributions, just drop me a PR or if there are multiple i join you into the project.