Diaplan logic based on sip message ringing

Hi,

Is it possible to have in the dialplan a logic where after executing dial(), one can monitor the incoming sip messages and add logic to the dialplan based on these messages. As a concrete example I would like to cancel the dialling once I get the 180 sip message (i.e. ringing) back from the peer. Is this even possible?

Thanks for your replies.

Michel.

You have already asked this

viewtopic.php?f=13&t=82069

and David gave you a very good reason why implementing this could fall foul of the laws in Many countries

Personally the only reason I can see for this is number harvesting, And no self respecting company would want to involved in that.