[ previous ] [ next ] [ threads ]
 To :  "yate@v..." <yate@v...>
 From :  Gamaliel Bedolla <gbf@t...>
 Subject :  Help with SPID
 Date :  Wed, 7 Nov 2012 19:34:51 -0700
Hello all,

I'm looking for help about, how can I catch the value for service provider
ID (SPID) and make a selection based on the returned value?

The following it's a LNP query, sending an INVITE to the correspondent
server with the information about a call, as shown below(IPs are not the
real):

U 101.114.7.31:5060 -> 14.40.57.173:5060
  INVITE sip:19563185001@1... SIP/2.0..Max-Forwards: 20..Via:
SIP/2.0/UDP 101.114.7.31:5060;branch=z9hG4bK1595158965..From: ;tag=45535375..To:
..Call-ID:
1301532364@1...: 239202 INVITE..Con
  tact: ..Content-Length: 0....

And the server answers with the following info:

U 14.40.57.173:5060 -> 101.114.7.31:5060
  SIP/2.0 302 Moved Temporarily..Via: SIP/2.0/UDP
101.114.7.31:5060;branch=z9hG4bK1595158965..To:
;tag=5964
  5592C1F1EC6930586A4B58BF334D..From:
;tag=45535375..Call-ID:
1301532364@1...: 239202 INVITE
  ..Contact: ;q=0.98..Content-Length:
0....

There I can see a value spid=9533, but I don't know how I can catch this
value and make a selection based on it's value.
I can see there's something similar with npdi as shown in my
regexroute.conf because when I test a number, this line shows me the value,
so this is true:
${npdi}^true$=echo NPDI performed for '${called}', RN='${routing}'

It shows in the yate console:

NPDI performed for '19563185001', RN=''

Can anybody give me a clue?

Any help is really appreciated!



Hello all,

I'm looking for help about, how can I catch the value for service provider ID (SPID) and make a selection based on the returned value?

The following it's a LNP query, sending an INVITE to the correspondent server with the information about a call, as shown below(IPs are not the real):

  INVITE sip:19563185001@1... SIP/2.0..Max-Forwards: 20..Via: SIP/2.0/UDP 101.114.7.31:5060;branch=z9hG4bK1595158965..From: <sip:
  +17512222101@1...>;tag=45535375..To: <sip:19563185001@1...>..Call-ID: 1301532364@1...: 239202 INVITE..Con
  tact: <sip:+17512222101@1...:5060>..Content-Length: 0....

And the server answers with the following info:

  SIP/2.0 302 Moved Temporarily..Via: SIP/2.0/UDP 101.114.7.31:5060;branch=z9hG4bK1595158965..To: <sip:19563185001@1...>;tag=5964
  5592C1F1EC6930586A4B58BF334D..From: <sip:+17512222101@1...>;tag=45535375..Call-ID: 1301532364@1...: 239202 INVITE
  ..Contact: <sip:19563185001;spid=9533;npdi@1...>;q=0.98..Content-Length: 0....

There I can see a value spid=9533, but I don't know how I can catch this value and make a selection based on it's value.
I can see there's something similar with npdi as shown in my regexroute.conf because when I test a number, this line shows me the value, so this is true:
${npdi}^true$=echo NPDI performed for '${called}', RN='${routing}'

It shows in the yate console:

NPDI performed for '19563185001', RN=''

Can anybody give me a clue?

Any help is really appreciated!