I’ve been setting up a SIP-based asterisk system with a SIP trunk dialing into a provider’s server, but I have been having some issues with hanging up calls.
My dial plan is simple - I am attaching the relevant part below. I have also tried adding another line with the Hangup() command below, but this did not help
exten => phonenumber1,1,Dial(SIP/phonenumber2/phonenumber1,,f(phonenumber2))
(basically, if phone number 1 is dialed, it proxys that call through another SIP connection with the caller ID being the second phone number from the trunk)
The dialing works, and I am able to answer the call on the called party and talk from one party of the call to the other and everything works great, including hanging up. However, if I dial this number from my SIP phone and then hang up on the calling phone, the called party keeps ringing. If I let the call time out, I get another call from the trunk number, and this repeats until I hang up the call on the called side.
Could I get a hint on how to possibly fix this?
Thanks in advance,