SIP URI Calling

VitalPBX Community Support General Discussion SIP URI Calling

  • Post
    Steve
    Participant
    Up
    0
    Down
    Is it possible to “dial” a URI in the form of number@domain?  Maybe use speed dialing.  Open to suggestions on how to accomplish this.
    0
Viewing 13 replies - 1 through 13 (of 13 total)
  • Replies
    Up
    0
    Down
    The SIP protocol allows calls between URIs, however when one calls between URIs it does not go through VitalPBX.
    also the URI has to be public or be on the same phone network
    0
    Steve
    Participant
    Up
    0
    Down
    So are you saying there is no way to call using a sip uri from VitalPBX like:

    sip:xxxxxxxxxxx@in.callcentric.com

    I am not asking for incoming sip uri only outgoing sip uri calls.

    Thank you.

     

    0
    PitzKey
    Participant
    US
    Up
    0
    Down
    You can create a custom Trunk and set the dial string.
    0
    Steve
    Participant
    Up
    0
    Down
    I tried it with a dial string of “sip:17778064299101@in.callcentric.com “, didn’t work.

    — Executing [55555@cos-all:1] NoOp(“PJSIP/5201_1-00000048”, “More than on digit pattern”) in new stack
    — Executing [55555@cos-all:2] Gosub(“PJSIP/5201_1-00000048”, “s,1(55555)”) in new stack
    — Executing [s@cos-all:1] Set(“PJSIP/5201_1-00000048”, “EXTENSION=55555”) in new stack
    — Executing [s@cos-all:2] NoOp(“PJSIP/5201_1-00000048”, “Dialing 55555 from 5201”) in new stack
    — Executing [s@cos-all:3] Gosub(“PJSIP/5201_1-00000048”, “sub-set-global-vars,s,1(2e5f364e172efdcc,55555,parking-1)”) in new stack
    — Executing [s@sub-set-global-vars:1] NoOp(“PJSIP/5201_1-00000048”, “Setting Global Vars”) in new stack
    — Executing [s@sub-set-global-vars:2] Set(“PJSIP/5201_1-00000048”, “TENANT_PATH=2e5f364e172efdcc”) in new stack
    — Executing [s@sub-set-global-vars:3] Set(“PJSIP/5201_1-00000048”, “PREFIX=”) in new stack
    — Executing [s@sub-set-global-vars:4] Set(“PJSIP/5201_1-00000048”, “__PICKUPMARK=55555”) in new stack
    — Executing [s@sub-set-global-vars:5] Set(“PJSIP/5201_1-00000048”, “__PARKINGLOT=parking-1”) in new stack
    — Executing [s@sub-set-global-vars:6] Set(“PJSIP/5201_1-00000048”, “__DYNAMIC_FEATURES=custom-features”) in new stack
    — Executing [s@sub-set-global-vars:7] Set(“PJSIP/5201_1-00000048”, “ICALL=no”) in new stack
    — Executing [s@sub-set-global-vars:8] Return(“PJSIP/5201_1-00000048”, “”) in new stack
    — Executing [s@cos-all:4] Gosub(“PJSIP/5201_1-00000048”, “sub-set-call-vars,s,1(2e5f364e172efdcc,55555,1,cos-all,ARS-all)”) in new stack
    — Executing [s@sub-set-call-vars:1] NoOp(“PJSIP/5201_1-00000048”, “Setting Call Vars”) in new stack
    — Executing [s@sub-set-call-vars:2] Set(“PJSIP/5201_1-00000048”, “_TENANT=2e5f364e172efdcc”) in new stack
    — Executing [s@sub-set-call-vars:3] Set(“PJSIP/5201_1-00000048”, “_CALL_DESTINATION=55555”) in new stack
    — Executing [s@sub-set-call-vars:4] Set(“PJSIP/5201_1-00000048”, “_COS_ID=1”) in new stack
    — Executing [s@sub-set-call-vars:5] Set(“PJSIP/5201_1-00000048”, “_COS_NAME=cos-all”) in new stack
    — Executing [s@sub-set-call-vars:6] Set(“PJSIP/5201_1-00000048”, “__TRANSFER_CONTEXT=cos-all”) in new stack
    — Executing [s@sub-set-call-vars:7] Set(“PJSIP/5201_1-00000048”, “_ARS=ARS-all”) in new stack
    — Executing [s@sub-set-call-vars:8] Set(“PJSIP/5201_1-00000048”, “CDR(tenant)=vitalpbx”) in new stack
    — Executing [s@sub-set-call-vars:9] Set(“PJSIP/5201_1-00000048”, “CDR(destination)=55555”) in new stack
    — Executing [s@sub-set-call-vars:10] Set(“PJSIP/5201_1-00000048”, “CDR(trunk)=”) in new stack
    — Executing [s@sub-set-call-vars:11] Set(“PJSIP/5201_1-00000048”, “CDR(did)=”) in new stack
    — Executing [s@sub-set-call-vars:12] Set(“PJSIP/5201_1-00000048”, “__CALLID=1623009206.251”) in new stack
    — Executing [s@sub-set-call-vars:13] ExecIf(“PJSIP/5201_1-00000048”, “0?Set(CHANNEL(language)=)”) in new stack
    — Executing [s@sub-set-call-vars:14] Return(“PJSIP/5201_1-00000048”, “”) in new stack
    — Executing [s@cos-all:5] Gosub(“PJSIP/5201_1-00000048”, “sub-construct-cid,s,1”) in new stack
    — Executing [s@sub-construct-cid:1] NoOp(“PJSIP/5201_1-00000048”, “Building CID”) in new stack
    — Executing [s@sub-construct-cid:2] Set(“PJSIP/5201_1-00000048”, “_CALL_SOURCE=5201”) in new stack
    — Executing [s@sub-construct-cid:3] Set(“PJSIP/5201_1-00000048”, “_CS=5201”) in new stack
    — Executing [s@sub-construct-cid:4] GotoIf(“PJSIP/5201_1-00000048”, “0?return”) in new stack
    — Executing [s@sub-construct-cid:5] Gosub(“PJSIP/5201_1-00000048”, “sub-get-device-tree,s,1”) in new stack
    — Executing [s@sub-get-device-tree:1] NoOp(“PJSIP/5201_1-00000048”, “Configuring Device Tree”) in new stack
    — Executing [s@sub-get-device-tree:2] Set(“PJSIP/5201_1-00000048”, “DEV_TECHNOLOGY=PJSIP”) in new stack
    — Executing [s@sub-get-device-tree:3] GosubIf(“PJSIP/5201_1-00000048”, “0?s-local,1”) in new stack
    — Executing [s@sub-get-device-tree:4] GotoIf(“PJSIP/5201_1-00000048”, “0?return”) in new stack
    — Executing [s@sub-get-device-tree:5] GotoIf(“PJSIP/5201_1-00000048”, “1?pjsip”) in new stack
    — Goto (sub-get-device-tree,s,9)
    — Executing [s@sub-get-device-tree:9] NoOp(“PJSIP/5201_1-00000048”, “A PJSIP”) in new stack
    — Executing [s@sub-get-device-tree:10] Set(“PJSIP/5201_1-00000048”, “DEV_USER=5201_1”) in new stack
    — Executing [s@sub-get-device-tree:11] Goto(“PJSIP/5201_1-00000048”, “build_interface”) in new stack
    — Goto (sub-get-device-tree,s,13)
    — Executing [s@sub-get-device-tree:13] Set(“PJSIP/5201_1-00000048”, “INTERFACE=PJSIP/5201_1”) in new stack
    — Executing [s@sub-get-device-tree:14] Set(“PJSIP/5201_1-00000048”, “DEV_TREE=devices/PJSIP/5201_1”) in new stack
    — Executing [s@sub-get-device-tree:15] Return(“PJSIP/5201_1-00000048”, “”) in new stack
    — Executing [s@sub-construct-cid:6] GotoIf(“PJSIP/5201_1-00000048”, “0?return”) in new stack
    — Executing [s@sub-construct-cid:7] Set(“PJSIP/5201_1-00000048”, “_CALL_SOURCE=5201”) in new stack
    — Executing [s@sub-construct-cid:8] Set(“PJSIP/5201_1-00000048”, “_CS=5201”) in new stack
    — Executing [s@sub-construct-cid:9] ExecIf(“PJSIP/5201_1-00000048”, “1?Set(CALLERID(all)=”Office” <5201>)”) in new stack
    — Executing [s@sub-construct-cid:10] Set(“PJSIP/5201_1-00000048”, “_CID_CONSTRUCTED=yes”) in new stack
    — Executing [s@sub-construct-cid:11] NoOp(“PJSIP/5201_1-00000048”, “”) in new stack
    — Executing [s@sub-construct-cid:12] Set(“PJSIP/5201_1-00000048”, “CDR(source)=5201”) in new stack
    — Executing [s@sub-construct-cid:13] Return(“PJSIP/5201_1-00000048”, “”) in new stack
    — Executing [s@cos-all:6] Gosub(“PJSIP/5201_1-00000048”, “set-global-tenant-vars,s,1”) in new stack
    — Executing [s@set-global-tenant-vars:1] NoOp(“PJSIP/5201_1-00000048”, “Setting Global Vars for vitalpbx Tenant”) in new stack
    — Executing [s@set-global-tenant-vars:2] Set(“PJSIP/5201_1-00000048”, “__TENANT_PATH=2e5f364e172efdcc”) in new stack
    — Executing [s@set-global-tenant-vars:3] Set(“PJSIP/5201_1-00000048”, “__TENANT_PREFIX=”) in new stack
    — Executing [s@set-global-tenant-vars:4] Set(“PJSIP/5201_1-00000048”, “__QUEUE_AGENTS_CONTEXT=queue-call-to-agents”) in new stack
    — Executing [s@set-global-tenant-vars:5] Set(“PJSIP/5201_1-00000048”, “__FOLLOWME_CONTEXT=ext-followme”) in new stack
    — Executing [s@set-global-tenant-vars:6] Set(“PJSIP/5201_1-00000048”, “__HINTS_CONTEXT=extension-hints”) in new stack
    — Executing [s@set-global-tenant-vars:7] Set(“PJSIP/5201_1-00000048”, “__DEFAULT_COS=cos-all”) in new stack
    — Executing [s@set-global-tenant-vars:8] Return(“PJSIP/5201_1-00000048”, “”) in new stack
    — Executing [s@cos-all:7] GotoIf(“PJSIP/5201_1-00000048”, “0?local-dialing”) in new stack
    — Executing [s@cos-all:8] NoOp(“PJSIP/5201_1-00000048”, “Check if is an Emergency Call”) in new stack
    — Executing [s@cos-all:9] GotoIf(“PJSIP/5201_1-00000048”, “0?emergency-calls,55555,1”) in new stack
    — Executing [s@cos-all:10] Gosub(“PJSIP/5201_1-00000048”, “sub-lockphone-check,s,1”) in new stack
    — Executing [s@sub-lockphone-check:1] NoOp(“PJSIP/5201_1-00000048”, “SUB: LOCK PHONE CHECK”) in new stack
    — Executing [s@sub-lockphone-check:2] GotoIf(“PJSIP/5201_1-00000048”, “0?unlock”) in new stack
    — Executing [s@sub-lockphone-check:3] GotoIf(“PJSIP/5201_1-00000048”, “0?unlock”) in new stack
    — Executing [s@sub-lockphone-check:4] GotoIf(“PJSIP/5201_1-00000048”, “0?unlock”) in new stack
    — Executing [s@sub-lockphone-check:5] GotoIf(“PJSIP/5201_1-00000048”, “0?unlock”) in new stack
    — Executing [s@sub-lockphone-check:6] GotoIf(“PJSIP/5201_1-00000048”, “0?:unlock”) in new stack
    — Goto (sub-lockphone-check,s,12)
    — Executing [s@sub-lockphone-check:12] Return(“PJSIP/5201_1-00000048”, “”) in new stack
    — Executing [s@cos-all:11] Gosub(“PJSIP/5201_1-00000048”, “sub-local-dialing,s,1”) in new stack
    — Executing [s@sub-local-dialing:1] NoOp(“PJSIP/5201_1-00000048”, “Trying to determine if is a local extension”) in new stack
    — Executing [s@sub-local-dialing:2] GotoIf(“PJSIP/5201_1-00000048”, “0?:return”) in new stack
    — Goto (sub-local-dialing,s,5)
    — Executing [s@sub-local-dialing:5] Return(“PJSIP/5201_1-00000048”, “”) in new stack
    — Executing [s@cos-all:12] GotoIf(“PJSIP/5201_1-00000048”, “0?end-call”) in new stack
    — Executing [s@cos-all:13] Goto(“PJSIP/5201_1-00000048”, “cos-all-post,55555,1”) in new stack
    — Goto (cos-all-post,55555,1)
    — Executing [55555@cos-all-post:1] NoOp(“PJSIP/5201_1-00000048”, “No valid number found”) in new stack
    — Executing [55555@cos-all-post:2] ExecIf(“PJSIP/5201_1-00000048”, “0?Hangup()”) in new stack
    — Executing [55555@cos-all-post:3] ForkCDR(“PJSIP/5201_1-00000048”, “e”) in new stack
    — Executing [55555@cos-all-post:4] Goto(“PJSIP/5201_1-00000048”, “invalid-dest-cos,s,1”) in new stack
    — Goto (invalid-dest-cos,s,1)
    — Executing [s@invalid-dest-cos:1] NoOp(“PJSIP/5201_1-00000048”, “Invalid Route Dialed in COS”) in new stack
    — Executing [s@invalid-dest-cos:2] GotoIf(“PJSIP/5201_1-00000048”, “0?end”) in new stack
    — Executing [s@invalid-dest-cos:3] GotoIf(“PJSIP/5201_1-00000048”, “0?end”) in new stack
    — Executing [s@invalid-dest-cos:4] Playback(“PJSIP/5201_1-00000048”, “silence/1&cannot-complete-as-dialed&check-number-dial-again”) in new stack
    > 0x7f5048045970 — Strict RTP learning after remote address set to: 10.8.0.2:12404
    > 0x7f5048045970 — Strict RTP qualifying stream type: audio
    > 0x7f5048045970 — Strict RTP switching source address to 192.152.48.219:20839
    — <PJSIP/5201_1-00000048> Playing ‘silence/1.ulaw’ (language ‘en’)
    — <PJSIP/5201_1-00000048> Playing ‘cannot-complete-as-dialed.ulaw’ (language ‘en’)
    — <PJSIP/5201_1-00000048> Playing ‘check-number-dial-again.ulaw’ (language ‘en’)

    0
    PitzKey
    Participant
    US
    Up
    0
    Down
    You dialed 55555, but you don’t have an outbound route that matches this pattern which points to that custom trunk.

    Also, please post logs using pastebin, it’s hard to read logs pasted like this in the forum.

    0
    Steve
    Participant
    Up
    0
    Down
    I set up an outgoing route and tried it but still failed.  What do you mean by pastebin?  Do you mean attaching the file to the post?  If so, I have attached the file.  Thanks.
    0
    Steve
    Participant
    Up
    0
    Down
    Wouldn’t allow me until I changed the file name to .txt

     

    Attachments:
    You must be logged in to view attached files.
    0
    PitzKey
    Participant
    US
    Up
    0
    Down
    pastebin.com
    0
    PitzKey
    Participant
    US
    Up
    0
    Down
    You don’t have an outbound route that matches 617778064299101. Please post a screenshot of your outbound route.
    0
    Steve
    Participant
    Up
    0
    Down
    Sure, see attached.

     

    Attachments:
    You must be logged in to view attached files.
    0
    PitzKey
    Participant
    US
    Up
    0
    Down
    The picture you posted allows 10 and 11 digits numbers with an additional prefix of the number 6, in the call trace you posted, the number you call is 15 digits.
    0
    Steve
    Participant
    Up
    0
    Down
    Thanks very much.  I forgot that I am able to include a 3 digit extension number on there.  I am used to 10 or 11 digit dialing and didn’t realize I made that huge of a mistake.  Thanks very much.  I am able to hit the trunk as expected, thanks for all of your help.  I recall appreciate it and I apologize for being somewhat stupid.  I fixed the outbound route.
    Attachments:
    You must be logged in to view attached files.
    0
    PitzKey
    Participant
    US
    Up
    0
    Down
    If your want, instead of hardcoding the number, you can replace it with a variable. Probably ${EXTEN}
    0
Viewing 13 replies - 1 through 13 (of 13 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.