call and connect two external numbers.. how i can?

Discussion in 'General' started by RobiGo, Aug 24, 2009.

  1. RobiGo

    Joined:
    Aug 24, 2009
    Messages:
    2
    Likes Received:
    0
    I implemented a click to call web application, it's work fine, but it call an internal number (SIP/1234) and an external number (0040745171302) and make a connection between.

    fputs($socket, "Action: originate\r\n");
    fputs($socket, "Channel: SIP/1234\r\n");
    fputs($socket, "WaitTime: 30\r\n");
    fputs($socket, "CallerId: anyone\r\n");
    fputs($socket, "Exten: 0040745171302\r\n");
    fputs($socket, "Context: from-internal\r\n");
    fputs($socket, "Async: true\r\n");
    fputs($socket, "Priority: 1\r\n\r\n");


    I want to call and connect 2 external numbers, anyone have any idea, how i can make this?
    the external numbers i want to specify dinamicaly (form a web form, or database) i know how i specify dinamicaly, i need help only for change the channel from SIP channel to an external phone number.

    i tryed to dial with:

    action: originate
    channel: Local/0040359101186@from-internal
    waittime: 30
    callerid: 1112222
    exten: 0040745171302
    context: from-internal
    async: true
    priority: 1

    1. the number 0040359101186 start to ring.. (this is an external PSTN phone (not connected to voip server) i answer,
    2. the number 0040745171302 start to ring.. (this is a mobile phone) when i answer i don't hear anything... the connection is theoretically ok, the mobile phone count the seconds... .


    after

    i tryed with:

    action: originate
    channel: Local/0040359101186@from-pstn
    waittime: 30
    callerid: 1112222
    exten: 0040745171302
    context: from-internal
    async: true
    priority: 1

    after 20 seconds, the mobile phone (0040745171302) start to ring.. it ring for 5seconds and self hang up.

    Any idea?
     

Share This Page