<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Ok, thanks for an answer. That solution works.<div><div><br><div><div>On 02 Sep 2014, at 22:36, Rainer Piper <<a href="mailto:rainer.piper@soho-piper.de">rainer.piper@soho-piper.de</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
  
    <meta content="text/html; charset=windows-1252" http-equiv="Content-Type">
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">contact_user in pjsip.conf has to point
      to the filter or to an agi in the extentions.conf<br>
      like:<br>
      <br>
      pjsip.conf<br>
      contact_user=<b>blablabla<br>
        <br>
        extensions.conf<br>
      </b><b>exten => blablabla, 1,NoOp(*** ${PJSIP_HEADER(read,To)}
        *** ${CALLERID(num)} ***)<br>
      </b><br>
      <br>
      Am 02.09.2014 um 20:11 schrieb Rainer Piper:<br>
    </div>
    <blockquote cite="mid:5406084E.8030407@soho-piper.de" type="cite">
      <meta content="text/html; charset=windows-1252" http-equiv="Content-Type">
      <div class="moz-cite-prefix">contact_user can be anything and
        calling an agi is no problem <br>
        <br>
        <br>
        Am 02.09.2014 um 19:49 schrieb Nick Awesome:<br>
      </div>
      <blockquote cite="mid:EF5BF8CA-ED37-4D71-AB7C-A99BE1BCF992@me.com" type="cite">
        <meta http-equiv="Content-Type" content="text/html;
          charset=windows-1252">
        Okay, contact_user seems like do the job. Thanks
        <div>is contact_user can be anything, or it should be same as
          username ?</div>
        <div>I would like to use contact_user for transmitting trunk
          name into agi script</div>
        <div><br>
          <div>
            <div>On Sep 2, 2014, at 7:04 PM, Rainer Piper <<a moz-do-not-send="true" href="mailto:rainer.piper@soho-piper.de">rainer.piper@soho-piper.de</a>>

              wrote:</div>
            <br class="Apple-interchange-newline">
            <blockquote type="cite">
              <meta content="text/html; charset=windows-1252" http-equiv="Content-Type">
              <div bgcolor="#FFFFFF" text="#000000">
                <div class="moz-cite-prefix">I use in <b>pjsip.conf </b><br>
                  [sipgate1]<br>
                  type=registration<br>
                  transport=transport-udp<br>
                  outbound_auth=sipgate1_auth<br>
                  server_uri=<a moz-do-not-send="true" class="moz-txt-link-freetext" href="sip:sipgate.de">sip:sipgate.de</a><br>
                  client_uri=<a moz-do-not-send="true" class="moz-txt-link-freetext" href="sip:555123456@sipgate.de">sip:555123456@sipgate.de</a><br>
                  contact_user=<b>sipgatefilter</b> ; <b>goto the
                    filter in extensions.conf</b><br>
                  retry_interval=60<br>
                  forbidden_retry_interval=600<br>
                  expiration=3600<br>
                  <br>
                  <b>extensions.conf</b> ; i'm cutting the dialed number
                  out of the invite Header and goto/jump to the
                  extensions<br>
                  ; incoming VOIP 9716716x SIPGATE<br>
                  exten => sipgatefilter,1,NoOp(***
                  ${PJSIP_HEADER(read,To)} *** ${CALLERID(num)} ***)<br>
                      same =>
                  n,Set(gotoadr=${CUT(PJSIP_HEADER(read,To),@,1)})<br>
                      same => n,NoOp(**** 49${gotoadr:-11} ****)<br>
                      same => n,<b>Goto(49${gotoadr:-11},1)</b><br>
                  <br>
                  ; the filter is jumping to the extensions ...<br>
                  <br>
                  ; incoming VOIP 97167160 SIPGATE -> MENU<br>
                  exten => 4922897167160,1,Dial(PJSIP/<a moz-do-not-send="true" class="moz-txt-link-freetext" href="sip:$">sip:$</a>{<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:EXTEN%7D@sip.soho-piper.de&PJSIP/7000&PJSIP/7004&PJSIP/7003&PJSIP/7005,,r">EXTEN}@sip.soho-piper.de&PJSIP/7000&PJSIP/7004&PJSIP/7003&PJSIP/7005,,r</a>)<br>
                  ; incoming VOIP 97167161 SIPGATE<br>
                  exten =>
4922897167161,1,Dial(PJSIP/7000&PJSIP/7001&PJSIP/7003&PJSIP/7004,,r)<br>
                  ; incoming VOIP 97167162 SIPGATE ECHO TEST<br>
                  exten => 4922897167162,1,Dial(PJSIP/<a moz-do-not-send="true" class="moz-txt-link-freetext" href="sip:$">sip:$</a>{<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:EXTEN%7D@sip.soho-piper.de&PJSIP/7000,,r">EXTEN}@sip.soho-piper.de&PJSIP/7000,,r</a>)<br>
                  ; incoming VOIP 97167163 SIPGATE<br>
                  exten => 4922897167163,1,Dial(PJSIP/<a moz-do-not-send="true" class="moz-txt-link-freetext" href="sip:$">sip:$</a>{<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:EXTEN%7D@sip.soho-piper.de&PJSIP/7000,,r">EXTEN}@sip.soho-piper.de&PJSIP/7000,,r</a>)<br>
                  ; incoming VOIP 97167164 SIPGATE<br>
                  exten => 4922897167164,1,Dial(PJSIP/<a moz-do-not-send="true" class="moz-txt-link-freetext" href="sip:$">sip:$</a>{<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:EXTEN%7D@sip.soho-piper.de&PJSIP/7000,,r">EXTEN}@sip.soho-piper.de&PJSIP/7000,,r</a>)<br>
                  ; incoming VOIP 97167165 SIPGATE<br>
                  exten => 4922897167165,1,Dial(PJSIP/<a moz-do-not-send="true" class="moz-txt-link-freetext" href="sip:$">sip:$</a>{<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:EXTEN%7D@sip.soho-piper.de&PJSIP/7000,,r">EXTEN}@sip.soho-piper.de&PJSIP/7000,,r</a>)<br>
                  ; incncoming VOIP 97167166 Mailbox<br>
                  exten => 4922897167166,1,Dial(PJSIP/<a moz-do-not-send="true" class="moz-txt-link-freetext" href="sip:$">sip:$</a>{<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:EXTEN%7D@sip.soho-piper.de&PJSIP/7000,,r">EXTEN}@sip.soho-piper.de&PJSIP/7000,,r</a>)<br>
                  ; incoming VOIP 97167167 CONF. 1<br>
                  exten => 4922897167167,1,Dial(PJSIP/<a moz-do-not-send="true" class="moz-txt-link-freetext" href="sip:$">sip:$</a>{<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:EXTEN%7D@sip.soho-piper.de&PJSIP/7000,,r">EXTEN}@sip.soho-piper.de&PJSIP/7000,,r</a>)<br>
                  ; incoming VOIP 97167168 CONF. 2<br>
                  ;exten => 4922897167168,1,Dial(PJSIP/<a moz-do-not-send="true" class="moz-txt-link-freetext" href="sip:$">sip:$</a>{<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:EXTEN%7D@sip.soho-piper.de&PJSIP/7000,,r">EXTEN}@sip.soho-piper.de&PJSIP/7000,,r</a>)<br>
                  exten => 4922897167168,1,Answer<br>
                          same => n,echo()<br>
                          same => n,Hangup()<br>
                  ; incoming VOIP 97167169 FAX<br>
                  ;exten => 4922897167169,1,Dial(PJSIP/${<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:EXTEN%7D@sip.soho-piper.de&PJSIP/7000,,r">EXTEN}@sip.soho-piper.de&PJSIP/7000,,r</a>)<br>
                  <br>
                  <br>
                  Regards<br>
                  Rainer<br>
                  <br>
                  Am 02.09.2014 um 15:08 schrieb Joshua Colp:<br>
                </div>
                <blockquote cite="mid:5405C13B.2070701@digium.com" type="cite">Nick Awesome wrote: <br>
                  <blockquote type="cite">register => 
                    73432260005:pass@10001 <br>
                    register =>  73432260050:pass@10002 <br>
                    <br>
                    [10001] <br>
                    type=peer <br>
                    host=80.75.132.66 <br>
                    context=dialmap <br>
                    [10002] <br>
                    type=peer <br>
                    host=80.75.132.66 <br>
                    context=dialmap <br>
                  </blockquote>
                  <br>
                  Can you provide a sip debug of calls to both of these?
                  I'm confused how that... works... <br>
                  <br>
                </blockquote>
                <br>
                <br>
                <div class="moz-signature">-- <br>
                  <b>Rainer Piper</b> <br>
                  Integration engineer <br>
                  Koeslinstr. 56 <br>
                  53123 BONN <br>
                  GERMANY <br>
                  Phone: +49 228 97167161 <br>
                  P2P: <a moz-do-not-send="true" class="moz-txt-link-freetext" href="sip:7000@sip.soho-piper.de:5072">sip:7000@sip.soho-piper.de:5072</a>
                  (pjsip-test)</div>
              </div>
              -- <br>
_____________________________________________________________________<br>
              -- Bandwidth and Colocation Provided by <a moz-do-not-send="true" href="http://www.api-digital.com/">http://www.api-digital.com</a>
              --<br>
              New to Asterisk? Join us for a live introductory webinar
              every Thurs:<br>
                            <a moz-do-not-send="true" href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a><br>
              <br>
              asterisk-users mailing list<br>
              To UNSUBSCRIBE or update options visit:<br>
                <a moz-do-not-send="true" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
            </blockquote>
          </div>
          <br>
        </div>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
      </blockquote>
      <br>
      <br>
      <div class="moz-signature">-- <br>
        <b>Rainer Piper</b> <br>
        Integration engineer <br>
        Koeslinstr. 56 <br>
        53123 BONN <br>
        GERMANY <br>
        Phone: +49 228 97167161 <br>
        P2P: <a moz-do-not-send="true" class="moz-txt-link-freetext" href="sip:7000@sip.soho-piper.de:5072">sip:7000@sip.soho-piper.de:5072</a>
        (pjsip-test)</div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <br>
    <br>
    <div class="moz-signature">-- <br>
      <b>Rainer Piper</b>
      <br>
      Integration engineer
      <br>
      Koeslinstr. 56
      <br>
      53123 BONN <br>
      GERMANY
      <br>
      Phone: +49 228 97167161
      <br>
      P2P: <a class="moz-txt-link-freetext" href="sip:7000@sip.soho-piper.de:5072">sip:7000@sip.soho-piper.de:5072</a> (pjsip-test)</div>
  </div>

-- <br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">http://www.api-digital.com</a> --<br>New to Asterisk? Join us for a live introductory webinar every Thurs:<br>               <a href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br>   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br></div></div></body></html>