ok i've got my problem now:

BUSY is sometimes 21 instead of 17 too, some PBX return it aswell as analog stuffs.

when i press CANCEL on Mobile phone the cause is usually 31.

NON EXISTING number are usually cause 1 here.

I strongly suspect that this will change from country to country.


I just need to patch to add an option that disable the function to keep the channell up if there is inband data in channels/chan_misdn.c (Asterisk 1.4.17):

chan_misdn_log(3,bc->port," --> org:%d nt:%d, inbandavail:%d state:%d\n", ch->originator, bc->nt, misdn_inband_avail(bc), ch->state); if ( ch->originator==ORG_AST && !bc->nt && misdn_inband_avail(bc) && ch->state != MISDN_CONNECTED) {
                        /* If there's inband information available (e.g. a


Also i think its reasonable to add 21 below 17
                        if (ch->ast) {
                                ch->ast->hangupcause=bc->cause;
                                if (bc->cause == 17)
ast_queue_control(ch->ast, AST_CONTROL_BUSY);

i mean:
        ... ( (bc->cause == 17) || (bc->cause == 21) )  ...


This will make Dial() app return immediately and i can check the CHANNEL variables without compromising other functionality.

Where do i start to check dial options?
_______________________________________________
Misdn-asterisk mailing list
[email protected]
http://lists.beronet.com/cgi-bin/mailman/listinfo/misdn-asterisk

Reply via email to